boards/acd52832/include/periph_conf.h

Peripheral configuration for the ACD52832.

CLOCK_CORECLOCK
1
(64000000U)     /* fixed for all nRF52832 */
CLOCK_HFCLK
1
2
(32U)           /* set to  0: internal RC oscillator
                                             *        32: 32MHz crystal */
CLOCK_LFCLK
1
2
3
(1)             /* set to  0: internal RC oscillator
                                             *         1: 32.768 kHz crystal
                                             *         2: derived from HFCLK */
TIMER_0_ISR
1
isr_timer1
TIMER_NUMOF
1
(sizeof(timer_config) / sizeof(timer_config[0]))
const timer_conf_t timer_config()
1
2
3
4
5
6
7
8
= {
    {
        .dev      = NRF_TIMER1,
        .channels = 3,
        .bitmode  = TIMER_BITMODE_BITMODE_32Bit,
        .irqn     = TIMER1_IRQn
    }
}
RTT_NUMOF
1
(1U)
RTT_DEV
1
(1)             /* NRF_RTC1 */
RTT_MAX_VALUE
1
(0x00ffffff)
RTT_FREQUENCY
1
(1024)
UART_NUMOF
1
(1U)
UART_PIN_RX
1
GPIO_PIN(0, 30)
UART_PIN_TX
1
GPIO_PIN(0, 31)
SPI_NUMOF
1
(sizeof(spi_config) / sizeof(spi_config[0]))
const spi_conf_t spi_config()
1
2
3
4
5
6
7
8
= {
    {
        .dev  = NRF_SPI0,
        .sclk = 4,
        .mosi = 3,
        .miso = 13
    }
}
I2C_NUMOF
1
(sizeof(i2c_config) / sizeof(i2c_config[0]))
const i2c_conf_t i2c_config()
1
2
3
4
5
6
7
8
= {
    {
        .dev = NRF_TWIM1,
        .scl = 28,
        .sda = 29,
        .speed = I2C_SPEED_NORMAL
    }
}