mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/auto_init_mcp2515: fix auto_init
This commit is contained in:
parent
6959f5eb78
commit
4edf33c16d
@ -16,11 +16,10 @@
|
||||
* @}
|
||||
*/
|
||||
|
||||
#ifdef MODULE_MCP2515
|
||||
#include "can/device.h"
|
||||
#include "mcp2515_params.h"
|
||||
|
||||
#define CANDEV_MCP2515_NUMOF ((ARRAY_SIZE(candev_mcp2515_params) / ARRAY_SIZE(candev_params_t)))
|
||||
#define CANDEV_MCP2515_NUMOF (ARRAY_SIZE(candev_mcp2515_params))
|
||||
|
||||
#ifndef CANDEV_MCP2515_STACKSIZE
|
||||
#define CANDEV_MCP2515_STACKSIZE (THREAD_STACKSIZE_DEFAULT + THREAD_EXTRA_STACKSIZE_PRINTF)
|
||||
@ -55,6 +54,3 @@ void auto_init_can_mcp2515(void) {
|
||||
&candev_dev_mcp2515[i]);
|
||||
}
|
||||
}
|
||||
#else
|
||||
typedef int dont_be_pedantic;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user