mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 10:33:49 +01:00
tests/drivers/candev: Drop SAME54-XPRO hack
Now that power management of the CAN transceiver is done by the driver, we do no longer need a per-board hack in the app.
This commit is contained in:
parent
785e2909c4
commit
a9ff36d68e
@ -19,8 +19,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <isrpipe.h>
|
#include <isrpipe.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -283,10 +281,6 @@ int main(void)
|
|||||||
puts("Initializing CAN periph device");
|
puts("Initializing CAN periph device");
|
||||||
can_init(&periph_dev, &(candev_conf[0]));
|
can_init(&periph_dev, &(candev_conf[0]));
|
||||||
candev = &(periph_dev.candev);
|
candev = &(periph_dev.candev);
|
||||||
#if defined(BOARD_SAME54_XPRO)
|
|
||||||
gpio_init(AT6561_STBY_PIN, GPIO_OUT);
|
|
||||||
gpio_clear(AT6561_STBY_PIN);
|
|
||||||
#endif
|
|
||||||
#elif defined(MODULE_MCP2515)
|
#elif defined(MODULE_MCP2515)
|
||||||
puts("Initializing MCP2515");
|
puts("Initializing MCP2515");
|
||||||
candev_mcp2515_init(&mcp2515_dev, &candev_mcp2515_conf[0]);
|
candev_mcp2515_init(&mcp2515_dev, &candev_mcp2515_conf[0]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user