24#include "periph_cpu_common.h"
33#define CLOCK_CORECLOCK (64000000U)
38#define PERIPH_CLOCK (16000000U)
43#ifdef SAADC_CH_PSELP_PSELP_VDDHDIV5
44#define ADC_NUMOF (10U)
62#ifdef SAADC_CH_PSELP_PSELP_VDDHDIV5
87#ifndef UART_TXBUF_SIZE
88#define UART_TXBUF_SIZE (64)
adc_res_t
Possible ADC resolution settings.
@ ADC_RES_16BIT
ADC resolution: 16 bit.
@ ADC_RES_8BIT
ADC resolution: 8 bit.
@ ADC_RES_14BIT
ADC resolution: 14 bit.
@ ADC_RES_6BIT
ADC resolution: 6 bit.
@ ADC_RES_10BIT
ADC resolution: 10 bit.
@ ADC_RES_12BIT
ADC resolution: 12 bit.
void spi_twi_irq_register_i2c(NRF_TWIM_Type *bus, spi_twi_irq_cb_t cb, void *arg)
Register a I2C IRQ handler for a shared I2C/SPI irq vector.
void nrf5x_spi_release(NRF_SPIM_Type *bus)
Acquire the shared I2C/SPI peripheral in SPI mode.
void nrf5x_spi_acquire(NRF_SPIM_Type *bus, spi_twi_irq_cb_t cb, void *arg)
Acquire the shared I2C/SPI peripheral in SPI mode.
void(* spi_twi_irq_cb_t)(void *arg)
Common SPI/I2C interrupt callback.
void spi_twi_irq_register_spi(NRF_SPIM_Type *bus, spi_twi_irq_cb_t cb, void *arg)
Register a SPI IRQ handler for a shared I2C/SPI irq vector.
@ NRF52_AIN2
Analog Input 2.
@ NRF52_AIN6
Analog Input 6.
@ NRF52_AIN0
Analog Input 0.
@ NRF52_AIN1
Analog Input 1.
@ NRF52_AIN4
Analog Input 4.
@ NRF52_AIN3
Analog Input 3.
@ NRF52_VDD
VDD, not useful if VDD is reference...
@ NRF52_AIN7
Analog Input 7.
@ NRF52_AIN5
Analog Input 5.
void nrf5x_i2c_acquire(NRF_TWIM_Type *bus, spi_twi_irq_cb_t cb, void *arg)
Acquire the shared I2C/SPI peripheral in I2C mode.
void nrf5x_i2c_release(NRF_TWIM_Type *bus)
Release the shared I2C/SPI peripheral in I2C mode.