30 #include "periph_cpu.h"
32 #include "cfg_clk_default.h"
33 #include "cfg_timer_default.h"
53 #define SOC_ADC_ADCCON3_EREF SOC_ADC_ADCCON3_EREF_AVDD5
68 #define SOC_ADC_RES ADC_RES_12BIT
78 #define ADC_NUMOF ARRAY_SIZE(adc_config)
96 .dev = UART0_BASEADDR,
97 .rx_pin = GPIO_PIN(PORT_A, 0),
98 .tx_pin = GPIO_PIN(PORT_A, 1),
99 #ifdef MODULE_PERIPH_UART_HW_FC
100 .cts_pin = GPIO_UNDEF,
101 .rts_pin = GPIO_UNDEF,
106 #define UART_0_ISR isr_uart0
107 #define UART_NUMOF ARRAY_SIZE(uart_config)
114 #define I2C_IRQ_PRIO 1
130 .speed = I2C_SPEED_FAST,
131 .scl_pin = GPIO_PIN(PORT_B, 0),
132 .sda_pin = GPIO_PIN(PORT_B, 1),
135 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
154 .mosi_pin = GPIO_PIN(PORT_B, 4),
155 .miso_pin = GPIO_PIN(PORT_B, 5),
156 .sck_pin = GPIO_PIN(PORT_B, 6),
157 .cs_pin = GPIO_PIN(PORT_B, 7),
161 #define SPI_NUMOF ARRAY_SIZE(spi_config)
static const adc_conf_t adc_config[]
Available ADC lines.
static const uart_conf_t uart_config[]
Two available UART ports but only one is set as follows:
static const spi_conf_t spi_config[]
There are 2 SPI ports available but only one is set as follows:
static const i2c_conf_t i2c_config[]
There are 2 I2C ports available but only one is set as follows: