periph_cpu.h File Reference

nRF51 specific definitions for handling peripherals More...

Detailed Description

nRF51 specific definitions for handling peripherals

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file periph_cpu.h.

#include "periph_cpu_common.h"
+ Include dependency graph for periph_cpu.h:

Go to the source code of this file.

Data Structures

struct  i2c_conf_t
 I2C configuration options. More...
 
struct  spi_conf_t
 SPI configuration structure type. More...
 

Typedefs

typedef gpio_t adc_conf_t
 ADC configuration wrapper.
 
#define CLOCK_CORECLOCK   (16000000U)
 System core clock speed, fixed to 16MHz for all NRF51x CPUs.
 
#define UART_IRQN   (UART0_IRQn)
 Redefine some peripheral names to unify them between nRF51 and 52.
 
#define SPI_SCKSEL   (dev(bus)->PSELSCK)
 
#define SPI_MOSISEL   (dev(bus)->PSELMOSI)
 
#define SPI_MISOSEL   (dev(bus)->PSELMISO)
 

Use the shared I2C functions

#define PERIPH_I2C_NEED_READ_REG
 Use read reg function from periph common.
 
#define PERIPH_I2C_NEED_WRITE_REG
 Use write reg function from periph common.