28 lines
659 B
C
28 lines
659 B
C
/*
|
|
* Copyright (c) 2018 Google LLC.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef __INC_BOARD_H
|
|
#define __INC_BOARD_H
|
|
|
|
#include <soc.h>
|
|
|
|
/* LED on PA10 */
|
|
#define LED0_GPIO_PORT CONFIG_GPIO_SAM0_PORTA_LABEL
|
|
#define LED0_GPIO_PIN 10
|
|
|
|
#define CONFIG_UART_SAM0_SERCOM0_PADS \
|
|
(SERCOM_USART_CTRLA_RXPO(3) | SERCOM_USART_CTRLA_TXPO(1))
|
|
#define CONFIG_UART_SAM0_SERCOM2_PADS \
|
|
(SERCOM_USART_CTRLA_RXPO(1) | SERCOM_USART_CTRLA_TXPO(0))
|
|
|
|
#define CONFIG_SPI_SAM0_SERCOM0_PADS \
|
|
(SERCOM_SPI_CTRLA_DIPO(0) | SERCOM_SPI_CTRLA_DOPO(1))
|
|
|
|
#define CONFIG_SPI_SAM0_SERCOM1_PADS \
|
|
(SERCOM_SPI_CTRLA_DIPO(2) | SERCOM_SPI_CTRLA_DOPO(0))
|
|
|
|
#endif /* __INC_BOARD_H */
|