nrf51/include/periph_cpu.h File Reference

nRF51 specific definitions for handling peripherals More...

nRF51 specific definitions for handling peripherals

Definition in file nrf51/include/periph_cpu.h.

`#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 | 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) |

#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 } |

#define | HAVE_ADC_RES_T |

Override ADC resolution values. | |

enum | adc_res_t { ADC_RES_6BIT = (0xa00), ADC_RES_7BIT = (0 << 4), ADC_RES_8BIT = (0xb00), ADC_RES_9BIT = (1 << 4), ADC_RES_10BIT = (2 << 4), ADC_RES_12BIT = (3 << 4), ADC_RES_14BIT = (0xc00), ADC_RES_16BIT = (0xd00), ADC_RES_6BIT = 0xf0, ADC_RES_8BIT = 0x00, ADC_RES_10BIT = 0x02, ADC_RES_12BIT = 0xf1, ADC_RES_14BIT = 0xf2, ADC_RES_16BIT = 0xf3, ADC_RES_6BIT = 0xf0, ADC_RES_8BIT = 0x00, ADC_RES_10BIT = 0x01, ADC_RES_12BIT = 0x02, ADC_RES_14BIT = 0xf1, ADC_RES_16BIT = 0xf2, ADC_RES_6BIT = 0x1, ADC_RES_8BIT = 0x2, ADC_RES_10BIT = ADC_MR_LOWRES_BITS_10, ADC_RES_12BIT = ADC_MR_LOWRES_BITS_12, ADC_RES_14BIT = 0x4, ADC_RES_16BIT = 0x8, ADC_RES_6BIT = 0xff, ADC_RES_8BIT = ADC_CTRLB_RESSEL_8BIT, ADC_RES_10BIT = ADC_CTRLB_RESSEL_10BIT, ADC_RES_12BIT = ADC_CTRLB_RESSEL_12BIT, ADC_RES_14BIT = 0xfe, ADC_RES_16BIT = 0xfd, ADC_RES_6BIT = 0xff, ADC_RES_8BIT = ADC_CTRLC_RESSEL_8BIT, ADC_RES_10BIT = ADC_CTRLC_RESSEL_10BIT, ADC_RES_12BIT = ADC_CTRLC_RESSEL_12BIT, ADC_RES_14BIT = 0xfe, ADC_RES_16BIT = 0xfd, ADC_RES_6BIT = 0x03000000, ADC_RES_8BIT = 0x02000000, ADC_RES_10BIT = 0x01000000, ADC_RES_12BIT = 0x00000000, ADC_RES_14BIT = 1, ADC_RES_16BIT = 2, ADC_RES_6BIT = (0x3 << 3), ADC_RES_8BIT = (0x2 << 3), ADC_RES_10BIT = (0x1 << 3), ADC_RES_12BIT = (0x0 << 3), ADC_RES_14BIT = (0xfe), ADC_RES_16BIT = (0xff), ADC_RES_6BIT = 0, ADC_RES_8BIT, ADC_RES_10BIT, ADC_RES_12BIT, ADC_RES_14BIT, ADC_RES_16BIT } |

enum adc_res_t |

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

enum i2c_speed_t |

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