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
6 changes: 2 additions & 4 deletions applications/firmware_loader/ble_mcumgr/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,7 @@ int main(void)
#endif /* CONFIG_NCS_BM_SETTINGS_BLUETOOTH_NAME */

while (notification_sent == false && device_disconnected == false) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand All @@ -322,8 +321,7 @@ int main(void)
}

while (device_disconnected == false) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions applications/installer/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ int main(void)
LOG_ERR("Clear installer header OK");
}

while (LOG_PROCESS()) {
}
log_flush();

sys_reboot(SYS_REBOOT_WARM);

Expand Down
4 changes: 1 addition & 3 deletions samples/bluetooth/ble_bms/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,7 @@ int main(void)
while (true) {
(void)nrf_ble_lesc_request_handler();

while (LOG_PROCESS()) {
/* Empty. */
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/bluetooth/ble_cgms/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,8 +1018,7 @@ int main(void)
while (true) {
(void)nrf_ble_lesc_request_handler();

while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
4 changes: 1 addition & 3 deletions samples/bluetooth/ble_hids_keyboard/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1001,9 +1001,7 @@ int main(void)
while (true) {
(void)nrf_ble_lesc_request_handler();

while (LOG_PROCESS()) {
/* Empty. */
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
4 changes: 1 addition & 3 deletions samples/bluetooth/ble_hids_mouse/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,9 +842,7 @@ int main(void)
while (true) {
(void)nrf_ble_lesc_request_handler();

while (LOG_PROCESS()) {
/* Empty. */
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/bluetooth/ble_hrs/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,7 @@ int main(void)
while (true) {
(void)nrf_ble_lesc_request_handler();

while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/bluetooth/ble_hrs_central/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,7 @@ int main(void)
(void)nrf_ble_lesc_request_handler();
#endif
idle:
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/bluetooth/ble_lbs/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ int main(void)

idle:
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/bluetooth/ble_nus/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,7 @@ int main(void)

idle:
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
7 changes: 2 additions & 5 deletions samples/bluetooth/ble_pwr_profiling/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ static uint8_t enc_scan_rsp_data[2][BLE_GAP_ADV_SET_DATA_SIZE_MAX];
static void poweroff(void)
{
LOG_INF("Power off");
while (LOG_PROCESS()) {
}
log_flush();

#if defined(CONFIG_APP_BLE_PWR_PROFILING_LED)
nrf_gpio_pin_write(BOARD_PIN_LED_0, !BOARD_LED_ACTIVE_STATE);
Expand Down Expand Up @@ -718,9 +717,7 @@ int main(void)

idle:
while (true) {
while (LOG_PROCESS()) {
/* Empty. */
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/bluetooth/ble_radio_notification/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ int main(void)

idle:
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
6 changes: 2 additions & 4 deletions samples/bluetooth/hello_softdevice/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ int main(void)

LOG_INF("Bluetooth enabled");

while (LOG_PROCESS()) {
}
log_flush();

k_busy_wait(2 * USEC_PER_SEC);

Expand All @@ -72,8 +71,7 @@ int main(void)

idle:
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
6 changes: 2 additions & 4 deletions samples/boot/mcuboot_recovery_entry/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ int main(void)
LOG_INF("Advertising as: %s", CONFIG_BLE_ADV_NAME);

while (notification_sent == false && device_disconnected == false) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand All @@ -249,8 +248,7 @@ int main(void)
}

while (device_disconnected == false) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
6 changes: 2 additions & 4 deletions samples/nfc/record_text_t2t/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ int main(void)
}

LOG_INF("SoftDevice enabled");
while (LOG_PROCESS()) {
}
log_flush();
#endif /* defined(CONFIG_SOFTDEVICE) */

/* Set up NFC */
Expand Down Expand Up @@ -208,8 +207,7 @@ int main(void)
fail:
/* Main loop */
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
6 changes: 2 additions & 4 deletions samples/nfc/record_text_t4t/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ int main(void)
}

LOG_INF("SoftDevice enabled");
while (LOG_PROCESS()) {
}
log_flush();
#endif /* defined(CONFIG_SOFTDEVICE) */

/* Set up NFC */
Expand Down Expand Up @@ -218,8 +217,7 @@ int main(void)
fail:
/* Main loop */
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
6 changes: 2 additions & 4 deletions samples/peripherals/buttons/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ int main(void)
LOG_INF("Buttons initialized, press button 3 to terminate");

while (running) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand All @@ -93,8 +92,7 @@ int main(void)

idle:
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/peripherals/leds/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ int main(void)
led_init();

while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Turn the LED on */
led_on();
Expand Down
3 changes: 1 addition & 2 deletions samples/peripherals/lpuarte/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ int main(void)

idle:
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/peripherals/pwm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ int main(void)

idle:
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/peripherals/timer/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ int main(void)

idle:
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/peripherals/uarte/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ int main(void)

idle:
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
4 changes: 1 addition & 3 deletions samples/subsys/fs/bm_zms/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,7 @@ int main(void)
idle:
/* Enter main loop. */
while (true) {
while (LOG_PROCESS()) {
/* Empty. */
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions samples/subsys/storage/bm_storage/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ int main(void)
idle:
/* Enter main loop. */
while (true) {
while (LOG_PROCESS()) {
}
log_flush();

/* Wait for an event. */
__WFE();
Expand Down
3 changes: 1 addition & 2 deletions subsys/softdevice_handler/irq_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ static void sd_enable_irq_forwarding(void)

LOG_INF("SoftDevice forward address: 0x%x", softdevice_vector_forward_address);

while (LOG_PROCESS()) {
}
log_flush();

CallSoftDeviceResetHandler();
irq_forwarding_enabled_magic_number_holder = IRQ_FORWARDING_ENABLED_MAGIC_NUMBER;
Expand Down
Loading