From 849055e5c08c75149e1579b6aaf1a97fc534d8b5 Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 17:00:33 +0800 Subject: [PATCH] fix bsp/nv32f100x for mdk compile --- bsp/nv32f100x/board/src/board.c | 1 + bsp/nv32f100x/project.uvprojx | 202 ++++++++------------------------ bsp/nv32f100x/template.uvprojx | 4 +- 3 files changed, 56 insertions(+), 151 deletions(-) diff --git a/bsp/nv32f100x/board/src/board.c b/bsp/nv32f100x/board/src/board.c index 8c753621a9..43c7910384 100644 --- a/bsp/nv32f100x/board/src/board.c +++ b/bsp/nv32f100x/board/src/board.c @@ -14,6 +14,7 @@ #include #include +#include #include "sysinit.h" #include "board.h" #include "drv_uart.h" diff --git a/bsp/nv32f100x/project.uvprojx b/bsp/nv32f100x/project.uvprojx index 927f5d1a66..9bfdd82133 100644 --- a/bsp/nv32f100x/project.uvprojx +++ b/bsp/nv32f100x/project.uvprojx @@ -1,13 +1,16 @@ + 2.1 +
### uVision Project, (C) Keil Software
+ nv32f100x 0x4 ARM-ADS - 5060183::V5.06 update 2 (build 183)::ARMCC + 5060300::V5.06 update 3 (build 300)::ARMCC NV32F100FS16E @@ -15,28 +18,28 @@ Keil.NV32F100_DFP.1.0 http://www.keil.com/pack/ IRAM(0x1FFFF800,0x2000) IROM(0x00000000,0x20000) IROM2(0x00400000,0x1400) CPUTYPE("Cortex-M0+") CLOCK(12000000) ELITTLE - - + + UL2CM3(-S0 -C0 -P0 -FD1FFFF800 -FC2000 -FN2 -FF0nv32f100_128 -FS00 -FL020000 -FF1nv32f100_nvr -FS1400000 -FL11400 -FP0($$Device:NV32F100FS16E$Flash\nv32f100_128.FLM) -FP1($$Device:NV32F100FS16E$Flash\nv32f100_nvr.FLM)) 0 $$Device:NV32F100FS16E$Device\Include\nv32f100.h - - - - - - - - - + + + + + + + + + $$Device:NV32F100FS16E$SVD\nv32f100S16.svd 0 0 - - - - - + + + + + 0 0 @@ -51,15 +54,15 @@ 0 1 1 - C:\Users\HF00\Documents\ + .\output\ 1 0 0 0 0 - - + + 0 0 0 @@ -68,8 +71,8 @@ 0 0 - - + + 0 0 0 @@ -78,15 +81,15 @@ 0 0 - - + + 0 0 0 0 1 - + 0 @@ -100,8 +103,8 @@ 0 0 3 - - + + 0 @@ -134,11 +137,11 @@ 1 BIN\UL2CM3.DLL - - - - - + + + + + 0 @@ -171,7 +174,7 @@ 0 0 "Cortex-M0+" - + 0 0 0 @@ -303,7 +306,7 @@ 0x0 - + 1 @@ -327,10 +330,11 @@ 1 0 0 + 0 - + NV32, KEIL - + app\inc;.;board\inc;lib\inc;..\..\include;..\..\libcpu\arm\cortex-m0;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh @@ -344,11 +348,12 @@ 0 0 0 + 0 - - - - + + + + @@ -360,13 +365,13 @@ 0 0x08000000 0x20000000 - - - - + + + + --keep *.o(.rti_fn.*) --keep *.o(FSymTab) - - + + @@ -379,8 +384,6 @@ 1 app\src\ledapp.c - - main.c 1 @@ -396,22 +399,16 @@ 1 board\src\board.c - - drv_uart.c 1 board\src\drv_uart.c - - start.c 1 board\src\start.c - - sysinit.c 1 @@ -427,127 +424,91 @@ 1 lib\src\acmp.c - - adc.c 1 lib\src\adc.c - - arm_cm0.c 1 lib\src\arm_cm0.c - - crc.c 1 lib\src\crc.c - - eeprom.c 1 lib\src\eeprom.c - - etm.c 1 lib\src\etm.c - - flash.c 1 lib\src\flash.c - - gpio.c 1 lib\src\gpio.c - - i2c.c 1 lib\src\i2c.c - - ics.c 1 lib\src\ics.c - - kbi.c 1 lib\src\kbi.c - - pit.c 1 lib\src\pit.c - - pmc.c 1 lib\src\pmc.c - - rtc.c 1 lib\src\rtc.c - - sim.c 1 lib\src\sim.c - - spi.c 1 lib\src\spi.c - - uart.c 1 lib\src\uart.c - - wdog.c 1 lib\src\wdog.c - - startup_NV32.s 2 @@ -563,85 +524,61 @@ 1 ..\..\src\clock.c - - components.c 1 ..\..\src\components.c - - device.c 1 ..\..\src\device.c - - idle.c 1 ..\..\src\idle.c - - ipc.c 1 ..\..\src\ipc.c - - irq.c 1 ..\..\src\irq.c - - kservice.c 1 ..\..\src\kservice.c - - mem.c 1 ..\..\src\mem.c - - object.c 1 ..\..\src\object.c - - scheduler.c 1 ..\..\src\scheduler.c - - signal.c 1 ..\..\src\signal.c - - thread.c 1 ..\..\src\thread.c - - timer.c 1 @@ -657,29 +594,21 @@ 1 ..\..\libcpu\arm\cortex-m0\cpuport.c - - context_rvds.S 2 ..\..\libcpu\arm\cortex-m0\context_rvds.S - - backtrace.c 1 ..\..\libcpu\arm\common\backtrace.c - - div0.c 1 ..\..\libcpu\arm\common\div0.c - - showmem.c 1 @@ -695,64 +624,46 @@ 1 ..\..\components\drivers\misc\pin.c - - serial.c 1 ..\..\components\drivers\serial\serial.c - - spi_core.c 1 ..\..\components\drivers\spi\spi_core.c - - spi_dev.c 1 ..\..\components\drivers\spi\spi_dev.c - - completion.c 1 ..\..\components\drivers\src\completion.c - - dataqueue.c 1 ..\..\components\drivers\src\dataqueue.c - - pipe.c 1 ..\..\components\drivers\src\pipe.c - - ringbuffer.c 1 ..\..\components\drivers\src\ringbuffer.c - - waitqueue.c 1 ..\..\components\drivers\src\waitqueue.c - - workqueue.c 1 @@ -768,36 +679,26 @@ 1 ..\..\components\finsh\shell.c - - symbol.c 1 ..\..\components\finsh\symbol.c - - cmd.c 1 ..\..\components\finsh\cmd.c - - msh.c 1 ..\..\components\finsh\msh.c - - msh_cmd.c 1 ..\..\components\finsh\msh_cmd.c - - msh_file.c 1 @@ -808,4 +709,5 @@ +
diff --git a/bsp/nv32f100x/template.uvprojx b/bsp/nv32f100x/template.uvprojx index bab53d35cc..366d0a93a7 100644 --- a/bsp/nv32f100x/template.uvprojx +++ b/bsp/nv32f100x/template.uvprojx @@ -54,7 +54,7 @@ 0 1 1 - C:\Users\HF00\Documents\ + .\output\ 1 0 0 @@ -330,6 +330,7 @@ 1 0 0 + 0 @@ -347,6 +348,7 @@ 0 0 0 + 0