From 785e2909c43b978fa678ee8dbe4d22a2b05335bb Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 11 Mar 2025 21:24:40 +0100 Subject: [PATCH] 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 --- boards/same54-xpro/include/board.h | 7 ------- boards/same54-xpro/include/periph_conf.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/boards/same54-xpro/include/board.h b/boards/same54-xpro/include/board.h index 6f7cb8db3a..6998ca486a 100644 --- a/boards/same54-xpro/include/board.h +++ b/boards/same54-xpro/include/board.h @@ -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 * @{ diff --git a/boards/same54-xpro/include/periph_conf.h b/boards/same54-xpro/include/periph_conf.h index 8b208f8f0f..17a4f0fea8 100644 --- a/boards/same54-xpro/include/periph_conf.h +++ b/boards/same54-xpro/include/periph_conf.h @@ -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, } };