zephyr/drivers/802.15.4
Tomasz Bursztyka 3873aed032 cc2520: Reading incoming packet cannot be done under ISR context
As the GPIO callback is ran into ISR context, it's thus impossible to
start SPI transactions as these are interrupt based as well. Thus
forwarding the packet reading to an internal fiber.

If CONFIG_INIT_STACKS is set as well as debug mode, it will print out
the usage of the stack after each loop in read_packet().

CC2520 internal fiber stack size is set via Kconfig option, where the
default is set to 640 bytes. At this stage, this value cannot be fixed
so it's more flexible to be able to tweak it from a Kconfig option
rather than tweaking the source code.

Change-Id: I54138c4d1e66f6775b1ae0248574ac8eb5e44f3d
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2016-02-08 21:44:54 -05:00
..
Kconfig cc2520: Reading incoming packet cannot be done under ISR context 2016-02-08 21:44:54 -05:00
Makefile cc2520: Initial checkin for TI CC2520 802.15.4 driver 2016-02-05 20:25:23 -05:00
cc2520.c cc2520: Reading incoming packet cannot be done under ISR context 2016-02-08 21:44:54 -05:00
cc2520.h cc2520: Reworking radio on and transmission logic 2016-02-05 20:25:23 -05:00
cc2520_arch.h cc2520: Reading incoming packet cannot be done under ISR context 2016-02-08 21:44:54 -05:00