Loading...
Searching...
No Matches
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 structure. More...
 
struct  spi_conf_t
 SPI device configuration. 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 SPI_SCKSEL   (dev(bus)->PSELSCK)
 Redefine some peripheral names to unify them between nRF51 and 52.
 
#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.
 

Macro Definition Documentation

◆ CLOCK_CORECLOCK

#define CLOCK_CORECLOCK   (16000000U)

System core clock speed, fixed to 16MHz for all NRF51x CPUs.

Definition at line 31 of file periph_cpu.h.

◆ PERIPH_I2C_NEED_READ_REG

#define PERIPH_I2C_NEED_READ_REG

Use read reg function from periph common.

Definition at line 63 of file periph_cpu.h.

◆ PERIPH_I2C_NEED_WRITE_REG

#define PERIPH_I2C_NEED_WRITE_REG

Use write reg function from periph common.

Definition at line 65 of file periph_cpu.h.

◆ SPI_MISOSEL

#define SPI_MISOSEL   (dev(bus)->PSELMISO)

Definition at line 39 of file periph_cpu.h.

◆ SPI_MOSISEL

#define SPI_MOSISEL   (dev(bus)->PSELMOSI)

Definition at line 38 of file periph_cpu.h.

◆ SPI_SCKSEL

#define SPI_SCKSEL   (dev(bus)->PSELSCK)

Redefine some peripheral names to unify them between nRF51 and 52.

Definition at line 37 of file periph_cpu.h.

Typedef Documentation

◆ adc_conf_t

typedef gpio_t adc_conf_t

ADC configuration wrapper.

Definition at line 88 of file periph_cpu.h.