Loading...
Searching...
No Matches
periph_cpu.h File Reference

nRF9160 specific definitions for handling peripherals More...

Detailed Description

nRF9160 specific definitions for handling peripherals

Author
Dylan Laduranty dylan.nosp@m..lad.nosp@m.urant.nosp@m.y@me.nosp@m.sotic.nosp@m..com

Definition in file periph_cpu.h.

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

Go to the source code of this file.

Macros

#define PERIPH_CLOCK   MHZ(16)
 Peripheral clock speed (fixed to 16MHz for nRF9160 based CPUs)
 
#define CLOCK_CORECLOCK   MHZ(64)
 System core clock speed, fixed to 64MHz for all NRF9160 CPUs.
 

Peripheral aliases for the secure and the non-secure world

The nRF9160 exposes every peripheral twice, once for each security state.

Board configuration refers to the neutral name, which resolves to the alias matching the image that is being built.

#define NRF_P0   NRF_P0_S
 GPIO port 0.
 
#define NRF_PWM0   NRF_PWM0_S
 PWM 0.
 
#define NRF_SPIM2   NRF_SPIM2_S
 SPI master 2.
 
#define NRF_TIMER0   NRF_TIMER0_S
 Timer 0.
 
#define NRF_TIMER1   NRF_TIMER1_S
 Timer 1.
 
#define NRF_TWIM3   NRF_TWIM3_S
 I2C master 3.
 
#define NRF_UARTE0   NRF_UARTE0_S
 UART 0.
 
#define NRF_UARTE1   NRF_UARTE1_S
 UART 1.
 

Macro Definition Documentation

◆ CLOCK_CORECLOCK

#define CLOCK_CORECLOCK   MHZ(64)

System core clock speed, fixed to 64MHz for all NRF9160 CPUs.

Definition at line 28 of file periph_cpu.h.

◆ NRF_P0

#define NRF_P0   NRF_P0_S

GPIO port 0.

Definition at line 48 of file periph_cpu.h.

◆ NRF_PWM0

#define NRF_PWM0   NRF_PWM0_S

PWM 0.

Definition at line 49 of file periph_cpu.h.

◆ NRF_SPIM2

#define NRF_SPIM2   NRF_SPIM2_S

SPI master 2.

Definition at line 50 of file periph_cpu.h.

◆ NRF_TIMER0

#define NRF_TIMER0   NRF_TIMER0_S

Timer 0.

Definition at line 51 of file periph_cpu.h.

◆ NRF_TIMER1

#define NRF_TIMER1   NRF_TIMER1_S

Timer 1.

Definition at line 52 of file periph_cpu.h.

◆ NRF_TWIM3

#define NRF_TWIM3   NRF_TWIM3_S

I2C master 3.

Definition at line 53 of file periph_cpu.h.

◆ NRF_UARTE0

#define NRF_UARTE0   NRF_UARTE0_S

UART 0.

Definition at line 54 of file periph_cpu.h.

◆ NRF_UARTE1

#define NRF_UARTE1   NRF_UARTE1_S

UART 1.

Definition at line 55 of file periph_cpu.h.

◆ PERIPH_CLOCK

#define PERIPH_CLOCK   MHZ(16)

Peripheral clock speed (fixed to 16MHz for nRF9160 based CPUs)

Definition at line 62 of file periph_cpu.h.