27 lines
541 B
C
27 lines
541 B
C
/*
|
|
* peripherals.h
|
|
*
|
|
* Created on: 29.07.2018
|
|
* Author: eyck
|
|
*/
|
|
|
|
#ifndef HIFIVE1_IO_H_
|
|
#define HIFIVE1_IO_H_
|
|
|
|
#include "io/gpio.h"
|
|
#include "io/spi.h"
|
|
#include "io/pwm.h"
|
|
#include "io/uart.h"
|
|
|
|
using gpio0=gpio_regs<0x10012000>;
|
|
using uart0=uart_regs<0x10013000>;
|
|
using uart1=uart_regs<0x10023000>;
|
|
using qspi0=spi_regs<0x10014000>;
|
|
using qspi1=spi_regs<0x10024000>;
|
|
using qspi2=spi_regs<0x10034000>;
|
|
using pwm0 =pwm_regs<0x10015000>;
|
|
using pwm1 =pwm_regs<0x10025000>;
|
|
using pwm2 =pwm_regs<0x10035000>;
|
|
|
|
#endif /* HIFIVE1_IO_H_ */
|