boards/openmote-cc2538/include/periph_conf.h

Peripheral MCU configuration for the OpenMote-cc2538 board.

CLOCK_CORECLOCK
1
(32000000U)     /* desired core clock frequency, 32MHz */
TIMER_NUMOF
1
(sizeof(timer_config) / sizeof(timer_config[0]))
TIMER_IRQ_PRIO
1
1
const timer_conf_t timer_config()
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
= {
    {
        .chn = 2,
        .cfg = GPTMCFG_16_BIT_TIMER, 
    },
    {
        .chn = 1,
        .cfg = GPTMCFG_32_BIT_TIMER,
    },
    {
        .chn = 2,
        .cfg = GPTMCFG_16_BIT_TIMER,
    },
    {
        .chn = 1,
        .cfg = GPTMCFG_32_BIT_TIMER,
    },
}
SOC_ADC_ADCCON3_EREF
1
SOC_ADC_ADCCON3_EREF_AVDD5
ADC_NUMOF
1
(sizeof(adc_config) / sizeof(adc_config[0]))
const adc_conf_t adc_config()
1
2
3
4
5
6
7
= {
    GPIO_PIN(0, 2), 
    GPIO_PIN(0, 3), 
    GPIO_PIN(0, 4), 
    GPIO_PIN(0, 5), 
    GPIO_PIN(0, 6), 
}
UART_0_ISR
1
isr_uart0
UART_NUMOF
1
(sizeof(uart_config) / sizeof(uart_config[0]))
const uart_conf_t uart_config()
1
2
3
4
5
6
7
8
9
= {
    {
        .dev      = UART0_BASEADDR,
        .rx_pin   = GPIO_PIN(0, 0),
        .tx_pin   = GPIO_PIN(0, 1),
        .cts_pin  = GPIO_UNDEF,
        .rts_pin  = GPIO_UNDEF
    }
}
I2C_IRQ_PRIO
1
1
I2C_NUMOF
1
(sizeof(i2c_config) / sizeof(i2c_config[0]))
const i2c_conf_t i2c_config()
1
2
3
4
5
6
7
= {
    {
        .speed = I2C_SPEED_FAST,    
        .scl_pin = GPIO_PIN(1, 3),  
        .sda_pin = GPIO_PIN(1, 4)   
    },
}
SPI_NUMOF
1
(sizeof(spi_config) / sizeof(spi_config[0]))
const spi_conf_t spi_config()
1
2
3
4
5
6
7
8
9
= {
    {
        .num      = 0,
        .mosi_pin = GPIO_PIN(0, 5),
        .miso_pin = GPIO_PIN(0, 4),
        .sck_pin  = GPIO_PIN(0, 2),
        .cs_pin   = GPIO_PIN(0, 3)
    },
}
RADIO_IRQ_PRIO
1
1