Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions applications/firmware_loader/ble_mcumgr/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

if (device_disconnected == false) {
Expand Down
7 changes: 1 addition & 6 deletions applications/firmware_loader/uart_mcumgr/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ int main(void)
mgmt_callback_register(&os_mgmt_reboot_callback);

while (should_reboot == false) {
/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();

smp_uart_process_rx_queue();
}
Expand Down
7 changes: 1 addition & 6 deletions lib/bluetooth/peer_manager/modules/peer_data_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,7 @@ static void bm_zms_evt_handler(const struct bm_zms_evt *evt)
static void wait_for_init(void)
{
while (!fs.init_flags.initialized) {
/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}
}

Expand Down
7 changes: 1 addition & 6 deletions samples/bluetooth/ble_bms/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,12 +733,7 @@ int main(void)
/* Empty. */
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/bluetooth/ble_cgms/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,12 +1028,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/bluetooth/ble_hids_keyboard/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,12 +1005,7 @@ int main(void)
/* Empty. */
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/bluetooth/ble_hids_mouse/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,12 +846,7 @@ int main(void)
/* Empty. */
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/bluetooth/ble_hrs/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/bluetooth/ble_hrs_central/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,11 +664,6 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}
}
7 changes: 1 addition & 6 deletions samples/bluetooth/ble_lbs/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/bluetooth/ble_nus/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/bluetooth/ble_pwr_profiling/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,12 +722,7 @@ int main(void)
/* Empty. */
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/bluetooth/ble_radio_notification/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/bluetooth/hello_softdevice/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/boot/mcuboot_recovery_entry/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

if (device_disconnected == false) {
Expand Down
7 changes: 1 addition & 6 deletions samples/nfc/record_text_t2t/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/nfc/record_text_t4t/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
14 changes: 2 additions & 12 deletions samples/peripherals/buttons/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

err = bm_buttons_deinit();
Expand All @@ -96,12 +91,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/peripherals/lpuarte/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

/* Unreachable */
Expand Down
7 changes: 1 addition & 6 deletions samples/peripherals/pwm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/peripherals/timer/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions samples/peripherals/uarte/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,7 @@ int main(void)
while (LOG_PROCESS()) {
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
28 changes: 4 additions & 24 deletions samples/subsys/fs/bm_zms/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,38 +65,23 @@ void bm_zms_sample_handler(struct bm_zms_evt const *evt)
static void wait_for_write(void)
{
while (!write_notif) {
/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}
write_notif = false;
}

static void wait_for_mount(void)
{
while (!mount_notif) {
/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}
mount_notif = false;
}

static void wait_for_clear(void)
{
while (!clear_notif) {
/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}
clear_notif = false;
}
Expand Down Expand Up @@ -358,12 +343,7 @@ int main(void)
/* Empty. */
}

/* Wait for an event. */
__WFE();

/* Clear Event Register */
__SEV();
__WFE();
k_cpu_idle();
}

return 0;
Expand Down
Loading
Loading