zephyr/drivers
Alberto Escolar Piedras 4df07224f8 drivers ieee802154_nrf5: Fix infinite loop for simulation on stop
With CSL enabled, when nrf5_stop is called,
nrf_802154_sleep_if_idle() will be called, and if the radio is
busy with another task, another IEEE802154_EVENT_RX_OFF event
will be pended right away, resulting in another call
to nrf5_stop(), effectively busy waiting until the
radio has reached idle.

In simulation, this whole operation (busy wait loop) is
done without letting the CPU sleep, in an infinite loop,
and therefore without letting any time pass
(note that in the POSIX architecture,
no time passes if the CPU does not go to sleep).
And therefore the radio will never be done with whatever
it is doing, resulting in the simulation being stuck
in this loop.

Let's add a very minor delay to this loop, which is
conditionally compiled only for the POSIX architecture.
Which effectively mimics the time it takes for the CPU
to loop thru, let's time pass, and allows the radio
to eventually be done.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-11-08 11:07:30 +01:00
..
adc drivers: adc: add driver for AD5592 2023-11-08 10:07:41 +01:00
audio drivers: audio: add Audio Codec shell commands 2023-10-30 13:51:28 -04:00
auxdisplay syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
bbram syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
bluetooth bluetooth: hci: spi: delay between header and data 2023-11-06 10:11:33 +01:00
cache syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
can drivers: can: Fix Z_SYSCALL_OBJ->K_SYSCALL_OBJ 2023-11-03 16:05:01 -05:00
charger syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
clock_control drivers: clock_control: Add Ambiq clock_control driver. 2023-11-07 09:42:25 +01:00
console kernel: move syscall_handler.h to internal include directory 2023-11-03 11:46:52 +01:00
coredump
counter drivers: counter: Update NXP LPC RTC timer 2023-11-06 10:09:33 +01:00
crypto drivers: crypto: smartbond: Support crypto accelerator 2023-10-26 09:47:23 +02:00
dac drivers: dac: add driver for AD5592 2023-11-08 10:07:41 +01:00
dai Revert "drivers: intel: ssp: Correct FIFO depth value for CAVS25 platforms" 2023-10-27 12:33:53 -05:00
disk drivers/nvme: Return an error in case of non dword-aligned data buffer 2023-09-22 09:23:18 +02:00
display drivers: display: hx8394: fix TEAR and DPHYCMD0 settings 2023-11-06 15:41:25 -06:00
dma syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
edac
eeprom drivers: eeprom_emulator: fix compile warning 2023-11-06 23:59:05 +01:00
entropy syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
espi syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
ethernet drivers: nxp_s32_netc: remove dependency to NET_TEST 2023-11-08 10:10:50 +01:00
flash drivers: flash: mcux_flexspi_nor: Remove flash reads while programming 2023-11-07 14:11:00 +01:00
fpga drivers: fpga: move to POST_KERNEL 2023-09-15 16:04:19 +02:00
fuel_gauge syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
gnss drivers: gnss: Add GNSS driver for Quectel LCX6G 2023-10-30 11:43:19 -04:00
gpio drivers: gpio: add driver for AD5592 2023-11-08 10:07:41 +01:00
hwinfo syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
hwspinlock syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
i2c ITE: drivers/i2c: Add a property for I2C located channel 2023-11-08 10:08:28 +01:00
i2s syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
i3c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
ieee802154 drivers ieee802154_nrf5: Fix infinite loop for simulation on stop 2023-11-08 11:07:30 +01:00
input input: gt911: fix reset control polarity 2023-11-06 08:50:33 +00:00
interrupt_controller intc: nxp_s32: use instance-based DT macros 2023-11-06 19:02:56 -05:00
ipm drivers: ipm: Remove CONFIG_IPM_IMX_REV2 2023-11-06 10:09:59 +01:00
kscan syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
led syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
led_strip drivers: spi: update drivers that were using spi cpol and cpha 2023-10-25 18:30:28 -07:00
lora
mbox syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
mdio drivers: mdio: mdio nxp s32 netc should depend on eth netc driver 2023-11-08 10:10:50 +01:00
memc treewide: Replace all uses of CONCAT with _CONCAT 2023-11-07 11:55:51 +01:00
mfd drivers: mfd: add AD5592 MFD driver 2023-11-08 10:07:41 +01:00
mipi_dsi drivers: mipi_dsi: dsi_mcux_2l add property to enable non-continuous hs clk 2023-10-24 11:37:41 +02:00
misc syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
mm kernel: Re-factor sys_mem_blocks definition 2023-09-30 08:04:14 +03:00
modem modem: modem_cellular: Fix build errors 2023-11-06 16:06:36 +01:00
net random: Rename random header 2023-10-10 14:23:50 +03:00
pcie drivers: pcie: add config for enable PRT 2023-10-06 10:40:14 +02:00
peci syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
pinctrl drivers: pinctrl: Add pinctrl driver for Renesas RA series 2023-11-01 10:56:46 +00:00
pm_cpu_ops
power_domain power_domain_intel_adsp.c: revert recent INIT_PRIORITY change 2023-11-02 08:33:40 +00:00
ps2 syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
ptp_clock syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
pwm syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
regulator drivers: regulator: npm1300: Add boot state detection 2023-11-07 14:48:15 +00:00
reset
retained_mem syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
rtc syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
sdhc drivers: sdhc: imx_usdhc: Initialize card clock with CMD0 2023-11-06 19:01:08 -05:00
sensor drivers: akm09918c_emul: Correct print format 2023-11-07 09:54:49 +01:00
serial serial: nxp_s32: use instance-based DT macros 2023-11-08 10:06:46 +01:00
sip_svc kernel: move syscall_handler.h to internal include directory 2023-11-03 11:46:52 +01:00
smbus syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
spi spi: nxp_s32: use instance-based DT macros 2023-11-06 19:02:32 -05:00
syscon
timer timer: cortex-m systick: add idle timer 2023-11-07 09:42:37 +01:00
usb nrf_usbd_common: Do not use USBD HAL 2023-11-07 14:06:51 +01:00
usb_c usbc: improve error handling in the ucpd_stm32 and vbus_adc 2023-10-20 14:57:32 +02:00
video
virtualization syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
w1 syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
watchdog treewide: Replace all uses of CONCAT with _CONCAT 2023-11-07 11:55:51 +01:00
wifi drivers: wifi: esp32: Fix compilation error 2023-11-05 20:05:51 +01:00
xen xen: add helper functions for Xen domain memory management 2023-09-15 11:15:00 +01:00
CMakeLists.txt drivers: Add GNSS API public header 2023-10-30 11:43:19 -04:00
Kconfig drivers: Add GNSS API public header 2023-10-30 11:43:19 -04:00