cleanup and rename of files

This commit is contained in:
Eyck Jentzsch 2018-09-25 19:17:28 +02:00
parent 3512206d77
commit 038c199c0a
4 changed files with 8 additions and 35 deletions

View File

@ -5,7 +5,7 @@
* Author: eyck
*/
#include "peripherals.h"
#include "hifive1_io.h"
template<> volatile bool qspi0::spi_active=false;
template<> volatile bool qspi1::spi_active=false;

View File

@ -5,13 +5,13 @@
* Author: eyck
*/
#ifndef PERIPHERALS_H_
#define PERIPHERALS_H_
#ifndef HIFIVE1_IO_H_
#define HIFIVE1_IO_H_
#include "gpio.h"
#include "spi.h"
#include "pwm.h"
#include "uart.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>;
@ -23,4 +23,4 @@ using pwm0 =pwm_regs<0x10015000>;
using pwm1 =pwm_regs<0x10025000>;
using pwm2 =pwm_regs<0x10035000>;
#endif /* PERIPHERALS_H_ */
#endif /* HIFIVE1_IO_H_ */

View File

@ -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;

View File

@ -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;
}