1
0
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:
Marian Buschsieweke 2025-03-11 21:24:40 +01:00
parent d9ab9585d9
commit 785e2909c4
No known key found for this signature in database
GPG Key ID: 758BD52517F79C41
2 changed files with 10 additions and 7 deletions

View File

@ -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
* @{

View File

@ -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,
}
};