升级编译脚本,编译通过!
This commit is contained in:
parent
c59127da0d
commit
8f1be97f6b
|
@ -1,4 +1,4 @@
|
|||
#include "ADC.h"
|
||||
#include "Device\ADC.h"
|
||||
|
||||
#include "Platform\stm32.h"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "stm32.h"
|
||||
#include "..\stm32.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
|
|
@ -19,18 +19,14 @@ namespace NewLife.Reflection
|
|||
{
|
||||
static void Main()
|
||||
{
|
||||
var build = new Builder();
|
||||
var build = Builder.Create("MDK");
|
||||
build.Init();
|
||||
build.Cortex = 3;
|
||||
build.Defines.Add("STM32F0");
|
||||
build.Defines.Add("GD32");
|
||||
build.AddIncludes("..\\..\\..\\Lib\\CMSIS");
|
||||
build.AddIncludes("..\\..\\..\\Lib\\Inc");
|
||||
build.AddIncludes("..\\", false);
|
||||
build.AddIncludes("..\\..\\", false);
|
||||
build.AddIncludes("..\\..\\Core");
|
||||
build.AddIncludes("..\\..\\Kernel");
|
||||
build.AddIncludes("..\\..\\Device");
|
||||
build.AddFiles(".", "*.c;*.cpp;*.s");
|
||||
build.AddFiles("..\\CortexM", "*.c;*.cpp;*.s");
|
||||
build.Libs.Clear();
|
||||
|
@ -41,11 +37,10 @@ namespace NewLife.Reflection
|
|||
build.CompileAll();
|
||||
build.BuildLib("..\\..\\SmartOS_F1x0");
|
||||
|
||||
build.Debug = false;
|
||||
/*build.Debug = false;
|
||||
build.Tiny = true;
|
||||
build.CompileAll();
|
||||
build.BuildLib("..\\..\\SmartOS_F1x0");
|
||||
build.BuildLib("..\\..\\SmartOS_F1x0");*/
|
||||
}
|
||||
}
|
||||
}
|
||||
//include=..\..\Tool\MDK.cs
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "Device\Port.h"
|
||||
#include "DAC.h"
|
||||
#include "Device\DAC.h"
|
||||
|
||||
#include "Platform\stm32.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "Sys.h"
|
||||
#include "I2C.h"
|
||||
#include "Device\I2C.h"
|
||||
|
||||
#include "Platform\stm32.h"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "Sys.h"
|
||||
|
||||
#include "Interrupt.h"
|
||||
#include "Kernel\Interrupt.h"
|
||||
|
||||
#include "..\stm32.h"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef _PIN_STM32F0_H_
|
||||
#define _PIN_STM32F0_H_ 1
|
||||
|
||||
#include "Pin.h"
|
||||
#include "..\Pin.h"
|
||||
|
||||
// 获取组和针脚
|
||||
#define _GROUP(PIN) ((GPIO_TypeDef *) (GPIOA_BASE + (((PIN) & (uint16_t)0xF0) << 6)))
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "Sys.h"
|
||||
#include "Kernel\Interrupt.h"
|
||||
#include "Device\Port.h"
|
||||
|
||||
#include "Platform\stm32.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "Kernel\TTime.h"
|
||||
#include "RTC.h"
|
||||
#include "Device\RTC.h"
|
||||
|
||||
#include "Platform\stm32.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "Sys.h"
|
||||
#include "Kernel\Task.h"
|
||||
#include "Kernel\Interrupt.h"
|
||||
|
||||
#include "Device\SerialPort.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include "Buffer.h"
|
||||
#include "Sys.h"
|
||||
#include "Sys.h"
|
||||
|
||||
#include "Device\Spi.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "Sys.h"
|
||||
|
||||
#include "Kernel\Interrupt.h"
|
||||
#include "Device\Timer.h"
|
||||
|
||||
#include "Platform\stm32.h"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "stm32.h"
|
||||
#include "..\stm32.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
|
|
@ -19,17 +19,13 @@ namespace NewLife.Reflection
|
|||
{
|
||||
static void Main()
|
||||
{
|
||||
var build = new Builder();
|
||||
var build = Builder.Create("MDK");
|
||||
build.Init();
|
||||
build.Cortex = 0;
|
||||
build.Defines.Add("STM32F0");
|
||||
build.AddIncludes("..\\..\\..\\Lib\\CMSIS");
|
||||
build.AddIncludes("..\\..\\..\\Lib\\Inc");
|
||||
build.AddIncludes("..\\", false);
|
||||
build.AddIncludes("..\\..\\", false);
|
||||
build.AddIncludes("..\\..\\Core");
|
||||
build.AddIncludes("..\\..\\Kernel");
|
||||
build.AddIncludes("..\\..\\Device");
|
||||
build.AddFiles(".", "*.c;*.cpp;*.s");
|
||||
build.AddFiles("..\\CortexM", "*.c;*.cpp;*.s");
|
||||
build.Libs.Clear();
|
||||
|
@ -40,11 +36,10 @@ namespace NewLife.Reflection
|
|||
build.CompileAll();
|
||||
build.BuildLib("..\\..\\SmartOS_F0");
|
||||
|
||||
build.Debug = false;
|
||||
/*build.Debug = false;
|
||||
build.Tiny = true;
|
||||
build.CompileAll();
|
||||
build.BuildLib("..\\..\\SmartOS_F0");
|
||||
build.BuildLib("..\\..\\SmartOS_F0");*/
|
||||
}
|
||||
}
|
||||
}
|
||||
//include=..\..\Tool\MDK.cs
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "Sys.h"
|
||||
|
||||
#include "Interrupt.h"
|
||||
#include "Kernel\Interrupt.h"
|
||||
//#include "SerialPort.h"
|
||||
|
||||
#include "..\stm32.h"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef _PIN_STM32F0_H_
|
||||
#define _PIN_STM32F0_H_ 1
|
||||
|
||||
#include "Pin.h"
|
||||
#include "..\Pin.h"
|
||||
|
||||
// 获取组和针脚
|
||||
#define _GROUP(PIN) ((GPIO_TypeDef *) (GPIOA_BASE + (((PIN) & (uint16_t)0xF0) << 6)))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "Kernel\TTime.h"
|
||||
#include "RTC.h"
|
||||
#include "Device\RTC.h"
|
||||
|
||||
#include "Platform\stm32.h"
|
||||
|
||||
|
|
|
@ -15,10 +15,11 @@ namespace NewLife.Reflection
|
|||
{
|
||||
static void Main()
|
||||
{
|
||||
var build = new Builder();
|
||||
var build = Builder.Create("MDK");
|
||||
build.Init();
|
||||
build.Cortex = 0;
|
||||
build.Defines.Add("STM32F0");
|
||||
build.AddIncludes("..\\", false);
|
||||
build.AddFiles("..\\Core");
|
||||
build.AddFiles("..\\Kernel");
|
||||
build.AddFiles("..\\Device");
|
||||
|
@ -48,4 +49,3 @@ namespace NewLife.Reflection
|
|||
}
|
||||
}
|
||||
}
|
||||
//include=MDK.cs
|
||||
|
|
Loading…
Reference in New Issue