mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
boards/same54-xpro: enable CAN transceiver config
This adds the CAN transceiver configuration to the CAN config for automatic power management. Co-authored-by: benpicco <benpicco@googlemail.com>
This commit is contained in:
parent
d9ab9585d9
commit
785e2909c4
@ -76,13 +76,6 @@ extern "C" {
|
||||
#define BTN0_MODE GPIO_IN_PU
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name ATA6561 STANDBY pin definition
|
||||
* @{
|
||||
*/
|
||||
#define AT6561_STBY_PIN GPIO_PIN(PC, 13)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name MTD configuration
|
||||
* @{
|
||||
|
||||
@ -106,6 +106,13 @@ static const tc32_conf_t timer_config[] = {
|
||||
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief ATA6561 STANDBY pin definition
|
||||
* @{
|
||||
*/
|
||||
#define AT6561_STBY_PIN GPIO_PIN(PC, 13)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name CAN configuration
|
||||
* @{
|
||||
@ -117,6 +124,9 @@ static const can_conf_t candev_conf[] = {
|
||||
.rx_pin = GPIO_PIN(PB, 13),
|
||||
.tx_pin = GPIO_PIN(PB, 12),
|
||||
.gclk_src = SAM0_GCLK_PERIPH,
|
||||
.enable_pin = AT6561_STBY_PIN,
|
||||
.enable_pin_mode = GPIO_OUT,
|
||||
.enable_pin_active_low = true,
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user