nrf51/include/periph_cpu.h File Reference

nRF51 specific definitions for handling peripherals More...

Detailed Description

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

Go to the source code of this file.

Data Structures

struct  i2c_conf_t
 I2C configuration options. More...
 

Macros

#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)
 
#define HAVE_I2C_SPEED_T
 Override I2C speed settings.
 
enum  i2c_speed_t {
  I2C_SPEED_LOW = 0x01, I2C_SPEED_NORMAL = TWI_FREQUENCY_FREQUENCY_K100, I2C_SPEED_FAST = TWI_FREQUENCY_FREQUENCY_K400, I2C_SPEED_FAST_PLUS = 0x02,
  I2C_SPEED_HIGH = 0x03, I2C_SPEED_LOW = 0, I2C_SPEED_NORMAL, I2C_SPEED_FAST,
  I2C_SPEED_FAST_PLUS, I2C_SPEED_HIGH
}
 

Enumeration Type Documentation

Enumerator
I2C_SPEED_LOW 

not supported

I2C_SPEED_NORMAL 

100kbit/s

I2C_SPEED_FAST 

400kbit/s

I2C_SPEED_FAST_PLUS 

not supported

I2C_SPEED_HIGH 

not supported

I2C_SPEED_LOW 

low speed mode: ~10kbit/s

I2C_SPEED_NORMAL 

normal mode: ~100kbit/s

I2C_SPEED_FAST 

fast mode: ~400kbit/sj

I2C_SPEED_FAST_PLUS 

fast plus mode: ~1Mbit/s

I2C_SPEED_HIGH 

high speed mode: ~3.4Mbit/s

Definition at line 43 of file nrf51/include/periph_cpu.h.