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

CPU specific peripheral configuration for NOEL-V. More...

Detailed Description

CPU specific peripheral configuration for NOEL-V.

Author
Matvii Ivashchenko

Definition in file periph_cpu.h.

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

Go to the source code of this file.

Data Structures

struct  uart_conf_t
 UART device configuration. More...
 
#define GPIO_PORT_SHIFT   (5U)
 width of the pin field in gpio_t
 
#define GPIO_PIN_MASK   (0x1fU)
 mask of the pin field in gpio_t
 
#define GPIO_PIN(port, pin)
 GPIO pin mapping: port is always 0 for GRLIB GPIO0.
 
#define UART_ISR_PRIO   (1)
 UART interrupt priority.
 
#define PERIPH_TIMER_PROVIDES_SET
 timer_set() is provided by the driver
 

Macro Definition Documentation

◆ GPIO_PIN

#define GPIO_PIN ( port,
pin )
Value:
((gpio_t)(((port) << GPIO_PORT_SHIFT) | (pin)))
#define GPIO_PORT_SHIFT
Right-shift amount to obtain the port number from a GPIO number.
Definition cc2538_gpio.h:43

GPIO pin mapping: port is always 0 for GRLIB GPIO0.

Definition at line 31 of file periph_cpu.h.

◆ GPIO_PIN_MASK

#define GPIO_PIN_MASK   (0x1fU)

mask of the pin field in gpio_t

Definition at line 26 of file periph_cpu.h.

◆ GPIO_PORT_SHIFT

#define GPIO_PORT_SHIFT   (5U)

width of the pin field in gpio_t

Definition at line 25 of file periph_cpu.h.

◆ PERIPH_TIMER_PROVIDES_SET

#define PERIPH_TIMER_PROVIDES_SET

timer_set() is provided by the driver

Definition at line 50 of file periph_cpu.h.

◆ UART_ISR_PRIO

#define UART_ISR_PRIO   (1)

UART interrupt priority.

Definition at line 48 of file periph_cpu.h.