进一步完善SmartSDK,支持发布静态库
This commit is contained in:
parent
8818b1feba
commit
350628c3d7
|
@ -1,6 +1,5 @@
|
|||
#include "Kernel\Sys.h"
|
||||
#include "Security\Crc.h"
|
||||
#include "conf.h"
|
||||
|
||||
static const uint DataBuffer[] =
|
||||
{
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include "TinyIP\Icmp.h"
|
||||
#include "TinyIP\Tcp.h"
|
||||
#include "TinyIP\Udp.h"
|
||||
#include "conf.h"
|
||||
|
||||
TinyIP* tip;
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
#include "TinyNet\TinyMessage.h"
|
||||
|
||||
#include "conf.h"
|
||||
|
||||
// 消息处理函数
|
||||
bool OpenLed(Message& msg, void* param)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "Drivers\NRF24L01.h"
|
||||
|
||||
#include "conf.h"
|
||||
extern NRF24L01* Create2401();
|
||||
|
||||
//const char tx_buf[] = "It's 0123456789AB Time:";
|
||||
|
||||
|
|
30
Test/conf.h
30
Test/conf.h
|
@ -1,30 +0,0 @@
|
|||
#ifndef __TEST_CONF__H__
|
||||
#define __TEST_CONF__H__
|
||||
|
||||
#include "Kernel\Sys.h"
|
||||
#include "Device\Port.h"
|
||||
#include "Device\Spi.h"
|
||||
#include "TokenNet\TokenClient.h"
|
||||
|
||||
void TestSerial();
|
||||
void TestAT45DB();
|
||||
void TestFlash();
|
||||
void TestCrc();
|
||||
void TestADC();
|
||||
void TestEnc28j60();
|
||||
void TestEthernet();
|
||||
void IRTest();
|
||||
void TestPulsePort();
|
||||
|
||||
void TestTimer(OutputPort& leds);
|
||||
void TestThread(OutputPort& leds);
|
||||
void TestW5500(Spi* spi, Pin irq, Pin rst);
|
||||
|
||||
#include "Drivers\NRF24L01.h"
|
||||
void TestNRF24L01();
|
||||
NRF24L01* Create2401();
|
||||
|
||||
void TestMessage(OutputPort* leds);
|
||||
void InvokeTest(TokenClient * client);
|
||||
|
||||
#endif
|
118
Tool/F1.lds
118
Tool/F1.lds
|
@ -1,118 +0,0 @@
|
|||
ENTRY(Reset_Handler)
|
||||
|
||||
MEMORY
|
||||
{
|
||||
FLASH (RX) : ORIGIN = 0x08000000, LENGTH = 512K
|
||||
SRAM (RWX) : ORIGIN = 0x20000000, LENGTH = 64K
|
||||
}
|
||||
|
||||
_estack = 0x20010000;
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.isr_vector :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
KEEP(*(.isr_vector))
|
||||
. = ALIGN(4);
|
||||
} > FLASH
|
||||
|
||||
.text :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
_stext = .;
|
||||
|
||||
*(.text)
|
||||
*(.text*)
|
||||
*(.rodata)
|
||||
*(.rodata*)
|
||||
*(.glue_7)
|
||||
*(.glue_7t)
|
||||
KEEP(*(.init))
|
||||
KEEP(*(.fini))
|
||||
. = ALIGN(4);
|
||||
_etext = .;
|
||||
|
||||
} > FLASH
|
||||
|
||||
.ARM.extab :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
*(.ARM.extab)
|
||||
*(.gnu.linkonce.armextab.*)
|
||||
. = ALIGN(4);
|
||||
} > FLASH
|
||||
|
||||
.exidx :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
PROVIDE(__exidx_start = .);
|
||||
*(.ARM.exidx*)
|
||||
. = ALIGN(4);
|
||||
PROVIDE(__exidx_end = .);
|
||||
} > FLASH
|
||||
|
||||
.ARM.attributes :
|
||||
{
|
||||
*(.ARM.attributes)
|
||||
} > FLASH
|
||||
|
||||
.preinit_array :
|
||||
{
|
||||
PROVIDE(__preinit_array_start = .);
|
||||
KEEP(*(.preinit_array*))
|
||||
PROVIDE(__preinit_array_end = .);
|
||||
} > FLASH
|
||||
|
||||
.init_array :
|
||||
{
|
||||
PROVIDE(__init_array_start = .);
|
||||
KEEP(*(SORT(.init_array.*)))
|
||||
KEEP(*(.init_array*))
|
||||
PROVIDE(__init_array_end = .);
|
||||
} > FLASH
|
||||
|
||||
.fini_array :
|
||||
{
|
||||
PROVIDE(__fini_array_start = .);
|
||||
KEEP(*(.fini_array*))
|
||||
KEEP(*(SORT(.fini_array.*)))
|
||||
PROVIDE(__fini_array_end = .);
|
||||
} > FLASH
|
||||
|
||||
. = ALIGN(4);
|
||||
_sidata = .;
|
||||
|
||||
.data : AT(_sidata)
|
||||
{
|
||||
. = ALIGN(4);
|
||||
_sdata = .;
|
||||
|
||||
PROVIDE(__data_start__ = _sdata);
|
||||
*(.data)
|
||||
*(.data*)
|
||||
. = ALIGN(4);
|
||||
_edata = .;
|
||||
|
||||
PROVIDE(__data_end__ = _edata);
|
||||
} > SRAM
|
||||
|
||||
.bss :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
_sbss = .;
|
||||
|
||||
PROVIDE(__bss_start__ = _sbss);
|
||||
*(.bss)
|
||||
*(.bss*)
|
||||
*(COMMON)
|
||||
. = ALIGN(4);
|
||||
_ebss = .;
|
||||
|
||||
PROVIDE(__bss_end__ = _ebss);
|
||||
} > SRAM
|
||||
|
||||
PROVIDE(end = .);
|
||||
|
||||
}
|
||||
|
1249
Tool/GCC.cs
1249
Tool/GCC.cs
File diff suppressed because it is too large
Load Diff
1265
Tool/ICC.cs
1265
Tool/ICC.cs
File diff suppressed because it is too large
Load Diff
1389
Tool/MDK.cs
1389
Tool/MDK.cs
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,25 @@
|
|||
var dst = "..\\..\\SmartSDK\\";
|
||||
"..\\".AsDirectory().CopyTo(dst, "*.h;*.exe;*.dll", true);
|
||||
Directory.Delete(dst + "Platform", true);
|
||||
Directory.Delete(dst + "XX", true);
|
||||
"..\\".AsDirectory().CopyToIfNewer(dst, "*.h;*.exe;*.dll", true);
|
||||
"..\\Test".AsDirectory().CopyToIfNewer(dst + "Test", "*.cpp");
|
||||
//Directory.Delete(dst + "Platform", true);
|
||||
//Directory.Delete(dst + "XX", true);
|
||||
|
||||
// 压缩库文件
|
||||
foreach(var item in "..\\".AsDirectory().GetAllFiles("*.lib;*.a"))
|
||||
{
|
||||
var dz = (dst + item.Name + ".7z").AsFile();
|
||||
if(!dz.Exists || dz.LastWriteTime < item.LastWriteTime)
|
||||
{
|
||||
Console.WriteLine("压缩 {0}", item.Name);
|
||||
item.Compress(dz.FullName);
|
||||
}
|
||||
}
|
||||
foreach(var item in "..\\..\\Lib".AsDirectory().GetAllFiles("*.lib;*.a"))
|
||||
{
|
||||
var dz = (dst + item.Name + ".7z").AsFile();
|
||||
if(!dz.Exists || dz.LastWriteTime < item.LastWriteTime)
|
||||
{
|
||||
Console.WriteLine("压缩 {0}", item.Name);
|
||||
item.Compress(dz.FullName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue