ソースを参照

rename bsp risc-v to hifive1

zhangjun 7 年 前
コミット
20f581a60d

+ 0 - 0
bsp/risc-v/Makefile → bsp/hifive1/Makefile


+ 0 - 0
bsp/risc-v/SConscript → bsp/hifive1/SConscript


+ 0 - 0
bsp/risc-v/SConstruct → bsp/hifive1/SConstruct


+ 0 - 0
bsp/risc-v/applications/SConscript → bsp/hifive1/applications/SConscript


+ 0 - 0
bsp/risc-v/applications/applications.c → bsp/hifive1/applications/applications.c


+ 0 - 0
bsp/risc-v/applications/cmd.c → bsp/hifive1/applications/cmd.c


+ 0 - 0
bsp/risc-v/applications/startup.c → bsp/hifive1/applications/startup.c


+ 0 - 0
bsp/risc-v/drivers/SConscript → bsp/hifive1/drivers/SConscript


+ 0 - 0
bsp/risc-v/drivers/board.c → bsp/hifive1/drivers/board.c


+ 0 - 0
bsp/risc-v/drivers/board.h → bsp/hifive1/drivers/board.h


+ 0 - 0
bsp/risc-v/drivers/cpuusage.c → bsp/hifive1/drivers/cpuusage.c


+ 0 - 19
bsp/risc-v/drivers/led.c → bsp/hifive1/drivers/led.c

@@ -8,25 +8,6 @@ void rt_hw_led_init(void)
 void rt_hw_led_on(int led)
 {
 
-	/*
-	// Make sure the HFROSC is on before the next line:
-	PRCI_REG(PRCI_HFROSCCFG) |= ROSC_EN(1);
-	// Run off 16 MHz Crystal for accuracy. Note that the
-	// first line is 
-	PRCI_REG(PRCI_PLLCFG) = (PLL_REFSEL(1) | PLL_BYPASS(1));
-	PRCI_REG(PRCI_PLLCFG) |= (PLL_SEL(1));
-	// Turn off HFROSC to save power
-	PRCI_REG(PRCI_HFROSCCFG) &= ~(ROSC_EN(1));
-	*/
-
-
-	// Wait a bit to avoid corruption on the UART.
-	// (In some cases, switching to the IOF can lead
-	// to output glitches, so need to let the UART
-	// reciever time out and resynchronize to the real 
-	// start of the stream.
-	volatile int i=0;
-	while(i < 10000){i++;}
 
 	uint16_t r=0xFF;
 	uint16_t g=0;

+ 0 - 0
bsp/risc-v/drivers/led.h → bsp/hifive1/drivers/led.h


+ 0 - 0
bsp/risc-v/drivers/usart.c → bsp/hifive1/drivers/usart.c


+ 0 - 0
bsp/risc-v/drivers/usart.h → bsp/hifive1/drivers/usart.h


+ 0 - 0
bsp/risc-v/openocd.cfg → bsp/hifive1/openocd.cfg


+ 0 - 0
bsp/risc-v/platform/SConscript → bsp/hifive1/platform/SConscript


+ 0 - 0
bsp/risc-v/platform/interrupt.c → bsp/hifive1/platform/interrupt.c


+ 0 - 0
bsp/risc-v/platform/interrupt.h → bsp/hifive1/platform/interrupt.h


+ 0 - 0
bsp/risc-v/platform/plic_driver.h → bsp/hifive1/platform/plic_driver.h


+ 0 - 0
bsp/risc-v/platform/rt_low_level_gcc.inc → bsp/hifive1/platform/rt_low_level_gcc.inc


+ 0 - 0
bsp/risc-v/platform/rt_low_level_init.c → bsp/hifive1/platform/rt_low_level_init.c


+ 0 - 0
bsp/risc-v/rtconfig.h → bsp/hifive1/rtconfig.h


+ 0 - 0
bsp/risc-v/rtconfig.py → bsp/hifive1/rtconfig.py


+ 0 - 0
bsp/risc-v/sdram.ld → bsp/hifive1/sdram.ld


+ 0 - 0
bsp/risc-v/wrap_exit.c → bsp/hifive1/wrap_exit.c