drivers: ieee802154: cc2520: Rename RX stack Kconfig option
Fibers do not exist anymore in unified kernel. Also, let's just use that option directly so removing the internal define which is then useless. Change-Id: I1179d84401934b339d3a9ccd12f6145a120bcb2f Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
386b2f9ec9
commit
589a361e53
|
@ -100,13 +100,13 @@ config TI_CC2520_SPI_SLAVE
|
|||
This option sets the SPI slave number SPI controller has to switch
|
||||
to when dealing with CC2520 chip.
|
||||
|
||||
config TI_CC2520_FIBER_STACK_SIZE
|
||||
int "Driver's internal fiber stack size"
|
||||
config TI_CC2520_RX_STACK_SIZE
|
||||
int "Driver's internal rx thread stack size"
|
||||
default 800
|
||||
help
|
||||
This option sets the driver's stack size for its internal fiber.
|
||||
The default value should be sufficient, but it case it prooves to be
|
||||
a too little, this option makes it easy to play with the size.
|
||||
This option sets the driver's stack size for its internal rx thread.
|
||||
The default value should be sufficient, but in case it prooves to be
|
||||
a too little one, this option makes it easy to play with the size.
|
||||
|
||||
config TI_CC2520_CHANNEL
|
||||
int "TI CC2520 Channel"
|
||||
|
|
|
@ -654,7 +654,7 @@ static void cc2520_rx(int arg)
|
|||
|
||||
net_analyze_stack("CC2520 Rx Fiber stack",
|
||||
(unsigned char *)cc2520->cc2520_rx_stack,
|
||||
CONFIG_CC2520_RX_STACK_SIZE);
|
||||
CONFIG_TI_CC2520_RX_STACK_SIZE);
|
||||
continue;
|
||||
flush:
|
||||
flush_rxfifo(cc2520);
|
||||
|
@ -1019,7 +1019,7 @@ static int cc2520_init(struct device *dev)
|
|||
}
|
||||
|
||||
k_thread_spawn(cc2520->cc2520_rx_stack,
|
||||
CONFIG_CC2520_RX_STACK_SIZE,
|
||||
CONFIG_TI_CC2520_RX_STACK_SIZE,
|
||||
(k_thread_entry_t)cc2520_rx,
|
||||
dev, NULL, NULL,
|
||||
K_PRIO_COOP(2), 0, 0);
|
||||
|
@ -1073,8 +1073,8 @@ NET_DEVICE_INIT(cc2520, CONFIG_TI_CC2520_DRV_NAME,
|
|||
NET_L2_GET_CTX_TYPE(IEEE802154_L2), 125);
|
||||
|
||||
NET_STACK_INFO_ADDR(RX, cc2520,
|
||||
CONFIG_CC2520_RX_STACK_SIZE,
|
||||
CONFIG_CC2520_RX_STACK_SIZE,
|
||||
CONFIG_TI_CC2520_RX_STACK_SIZE,
|
||||
CONFIG_TI_CC2520_RX_STACK_SIZE,
|
||||
((struct cc2520_context *)(&__device_cc2520))->
|
||||
cc2520_rx_stack,
|
||||
0);
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
#include <ieee802154/cc2520.h>
|
||||
|
||||
#define CONFIG_CC2520_RX_STACK_SIZE CONFIG_TI_CC2520_FIBER_STACK_SIZE
|
||||
|
||||
/* Runtime context structure
|
||||
***************************
|
||||
*/
|
||||
|
@ -52,7 +50,7 @@ struct cc2520_context {
|
|||
struct k_sem tx_sync;
|
||||
atomic_t tx;
|
||||
/************RX************/
|
||||
char __stack cc2520_rx_stack[CONFIG_CC2520_RX_STACK_SIZE];
|
||||
char __stack cc2520_rx_stack[CONFIG_TI_CC2520_RX_STACK_SIZE];
|
||||
struct k_sem rx_lock;
|
||||
bool overflow;
|
||||
uint8_t lqi;
|
||||
|
|
Loading…
Reference in a new issue