forked from Firmware/Firmwares
cleanup and rename of files
This commit is contained in:
parent
3512206d77
commit
038c199c0a
@ -5,7 +5,7 @@
|
|||||||
* Author: eyck
|
* Author: eyck
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "peripherals.h"
|
#include "hifive1_io.h"
|
||||||
|
|
||||||
template<> volatile bool qspi0::spi_active=false;
|
template<> volatile bool qspi0::spi_active=false;
|
||||||
template<> volatile bool qspi1::spi_active=false;
|
template<> volatile bool qspi1::spi_active=false;
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
* Author: eyck
|
* Author: eyck
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PERIPHERALS_H_
|
#ifndef HIFIVE1_IO_H_
|
||||||
#define PERIPHERALS_H_
|
#define HIFIVE1_IO_H_
|
||||||
|
|
||||||
#include "gpio.h"
|
#include "io/gpio.h"
|
||||||
#include "spi.h"
|
#include "io/spi.h"
|
||||||
#include "pwm.h"
|
#include "io/pwm.h"
|
||||||
#include "uart.h"
|
#include "io/uart.h"
|
||||||
|
|
||||||
using gpio0=gpio_regs<0x10012000>;
|
using gpio0=gpio_regs<0x10012000>;
|
||||||
using uart0=uart_regs<0x10013000>;
|
using uart0=uart_regs<0x10013000>;
|
||||||
@ -23,4 +23,4 @@ using pwm0 =pwm_regs<0x10015000>;
|
|||||||
using pwm1 =pwm_regs<0x10025000>;
|
using pwm1 =pwm_regs<0x10025000>;
|
||||||
using pwm2 =pwm_regs<0x10035000>;
|
using pwm2 =pwm_regs<0x10035000>;
|
||||||
|
|
||||||
#endif /* PERIPHERALS_H_ */
|
#endif /* HIFIVE1_IO_H_ */
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
/*
|
|
||||||
* utili.cpp
|
|
||||||
*
|
|
||||||
* Created on: 28.07.2018
|
|
||||||
* Author: eyck
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
// see https://stackoverflow.com/questions/34308720/where-is-dso-handle-defined#39521737
|
|
||||||
void* __dso_handle = (void*) &__dso_handle;
|
|
||||||
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
#include "platform.h"
|
|
||||||
|
|
||||||
/* The functions in this file are only meant to support Dhrystone on an
|
|
||||||
* embedded RV32 system and are obviously incorrect in general. */
|
|
||||||
|
|
||||||
long time(void)
|
|
||||||
{
|
|
||||||
return get_timer_value() / get_timer_freq();
|
|
||||||
}
|
|
||||||
|
|
||||||
// set the number of dhrystone iterations
|
|
||||||
void __wrap_scanf(const char* fmt, int* n)
|
|
||||||
{
|
|
||||||
*n = 100000000;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user