mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/same54-xpro: add CAN periph definitions
This commit is contained in:
parent
e4e5558694
commit
477f9cd82f
@ -16,6 +16,7 @@ FEATURES_PROVIDED += periph_uart_hw_fc
|
||||
FEATURES_PROVIDED += periph_adc
|
||||
FEATURES_PROVIDED += periph_usbdev
|
||||
FEATURES_PROVIDED += periph_freqm
|
||||
FEATURES_PROVIDED += periph_can
|
||||
|
||||
# Put other features for this board (in alphabetical order)
|
||||
FEATURES_PROVIDED += riotboot
|
||||
|
@ -75,6 +75,13 @@ 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,27 @@ static const tc32_conf_t timer_config[] = {
|
||||
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name CAN configuration
|
||||
* @{
|
||||
*/
|
||||
/** Available CAN interfaces */
|
||||
static const can_conf_t candev_conf[] = {
|
||||
{
|
||||
.can = CAN1,
|
||||
.rx_pin = GPIO_PIN(PB, 13),
|
||||
.tx_pin = GPIO_PIN(PB, 12),
|
||||
.gclk_src = SAM0_GCLK_PERIPH,
|
||||
}
|
||||
};
|
||||
|
||||
/** CAN 1 configuration */
|
||||
#define ISR_CAN1 isr_can1
|
||||
|
||||
/** Number of CAN interfaces */
|
||||
#define CAN_NUMOF ARRAY_SIZE(candev_conf)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name UART configuration
|
||||
* @{
|
||||
|
Loading…
Reference in New Issue
Block a user