20 #include "periph_cpu_common.h"
38 #define CPUID_LEN (12U)
43 #define GPIO_UNDEF (0xff)
48 #define GPIO_PIN(x, y) (x | y)
53 #define GPIO_INTR_PRIORITY (3)
68 #define UART_ISR_PRIO (2)
74 #define PERIPH_SPI_NEEDS_TRANSFER_BYTE 1
75 #define PERIPH_SPI_NEEDS_TRANSFER_REG 1
76 #define PERIPH_SPI_NEEDS_TRANSFER_REGS 1
92 #define PERIPH_TIMER_PROVIDES_SET
99 #define PERIPH_I2C_NEED_READ_REG
101 #define PERIPH_I2C_NEED_WRITE_REG
103 #define PERIPH_I2C_NEED_READ_REGS
105 #define PERIPH_I2C_NEED_WRITE_REGS
113 #define HAVE_I2C_SPEED_T
135 #define NWDT_TIME_LOWER_LIMIT (1)
140 #define NWDT_TIME_UPPER_LIMIT ((UINT32_MAX >> 15) * MS_PER_SEC + 1)
146 #define WDT_INTR_PRIORITY (PLIC_NUM_PRIORITIES)
151 #define WDT_HAS_STOP (1)
158 #define RTT_INTR_PRIORITY (2)
160 #define RTT_MAX_VALUE (0xffffffff)
161 #define RTT_CLOCK_FREQUENCY (32768U)
162 #define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY)
163 #define RTT_MIN_FREQUENCY (1U)
165 #ifndef RTT_FREQUENCY
166 #define RTT_FREQUENCY (RTT_MAX_FREQUENCY)
void fe310_clock_init(void)
Initialization of the clock.
unsigned int gpio_t
GPIO type identifier.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
@ I2C_SPEED_FAST
fast mode: ~400 kbit/s
Adds include for missing inttype definitions.
unsigned irqn_t
Convenience typedef for interrupt lines.
I2C configuration structure.
uint32_t addr
device base address
SPI device configuration.
uint32_t addr
SPI control register address.
UART device configuration.
uint32_t addr
UART control register address.
irqn_t isr_num
ISR source number.