Skip to content
Snippets Groups Projects
Commit 82d8d3d5 authored by Martine Lenders's avatar Martine Lenders
Browse files

auto_init: fix array-initializer order for gnrc_netdev2 stacks

parent 5da88f79
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
static at86rf2xx_t at86rf2xx_devs[AT86RF2XX_NUM]; static at86rf2xx_t at86rf2xx_devs[AT86RF2XX_NUM];
static gnrc_netdev2_t gnrc_adpt[AT86RF2XX_NUM]; static gnrc_netdev2_t gnrc_adpt[AT86RF2XX_NUM];
static char _at86rf2xx_stacks[AT86RF2XX_MAC_STACKSIZE][AT86RF2XX_NUM]; static char _at86rf2xx_stacks[AT86RF2XX_NUM][AT86RF2XX_MAC_STACKSIZE];
void auto_init_at86rf2xx(void) void auto_init_at86rf2xx(void)
{ {
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#define CC110X_NUM (sizeof(cc110x_params)/sizeof(cc110x_params[0])) #define CC110X_NUM (sizeof(cc110x_params)/sizeof(cc110x_params[0]))
static netdev2_cc110x_t cc110x_devs[CC110X_NUM]; static netdev2_cc110x_t cc110x_devs[CC110X_NUM];
static char _stacks[CC110X_MAC_STACKSIZE][CC110X_NUM]; static char _stacks[CC110X_NUM][CC110X_MAC_STACKSIZE];
static gnrc_netdev2_t _gnrc_netdev2_devs[CC110X_NUM]; static gnrc_netdev2_t _gnrc_netdev2_devs[CC110X_NUM];
......
...@@ -55,7 +55,7 @@ static gnrc_netdev2_t gnrc_adpt[ENC28J60_NUM]; ...@@ -55,7 +55,7 @@ static gnrc_netdev2_t gnrc_adpt[ENC28J60_NUM];
/** /**
* @brief Stacks for the MAC layer threads * @brief Stacks for the MAC layer threads
*/ */
static char stack[ENC28J60_MAC_STACKSIZE][ENC28J60_NUM]; static char stack[ENC28J60_NUM][ENC28J60_MAC_STACKSIZE];
void auto_init_enc28j60(void) void auto_init_enc28j60(void)
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#define KW2XRF_NUM (sizeof(kw2xrf_params)/sizeof(kw2xrf_params[0])) #define KW2XRF_NUM (sizeof(kw2xrf_params)/sizeof(kw2xrf_params[0]))
static kw2xrf_t kw2xrf_devs[KW2XRF_NUM]; static kw2xrf_t kw2xrf_devs[KW2XRF_NUM];
static char _nomac_stacks[KW2XRF_MAC_STACKSIZE][KW2XRF_NUM]; static char _nomac_stacks[KW2XRF_NUM][KW2XRF_MAC_STACKSIZE];
void auto_init_kw2xrf(void) void auto_init_kw2xrf(void)
{ {
......
...@@ -46,7 +46,7 @@ static gnrc_slip_dev_t slip_devs[SLIP_NUM]; ...@@ -46,7 +46,7 @@ static gnrc_slip_dev_t slip_devs[SLIP_NUM];
/** /**
* @brief Stacks for the MAC layer threads * @brief Stacks for the MAC layer threads
*/ */
static char _slip_stacks[SLIP_STACKSIZE][SLIP_NUM]; static char _slip_stacks[SLIP_NUM][SLIP_STACKSIZE];
void auto_init_slip(void) void auto_init_slip(void)
{ {
......
...@@ -51,7 +51,7 @@ static gnrc_netdev2_t gnrc_adpt[W5100_NUM]; ...@@ -51,7 +51,7 @@ static gnrc_netdev2_t gnrc_adpt[W5100_NUM];
/** /**
* @brief Stacks for the MAC layer threads * @brief Stacks for the MAC layer threads
*/ */
static char stack[MAC_STACKSIZE][W5100_NUM]; static char stack[W5100_NUM][MAC_STACKSIZE];
void auto_init_w5100(void) void auto_init_w5100(void)
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
*/ */
static xbee_t xbee_devs[XBEE_NUM]; static xbee_t xbee_devs[XBEE_NUM];
static gnrc_netdev2_t gnrc_adpt[XBEE_NUM]; static gnrc_netdev2_t gnrc_adpt[XBEE_NUM];
static char stacks[XBEE_MAC_STACKSIZE][XBEE_NUM]; static char stacks[XBEE_NUM][XBEE_MAC_STACKSIZE];
void auto_init_xbee(void) void auto_init_xbee(void)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment