直接引用头文件,避免SmartOS上层需要包含太多的头部目录

This commit is contained in:
nnhy 2016-10-29 03:34:02 +00:00
parent ce317f2fdc
commit a9f9b578ce
106 changed files with 156 additions and 172 deletions

View File

@ -2,8 +2,8 @@
#define __Alarm_H__
#include "Sys.h"
#include "Timer.h"
#include "Port.h"
#include "Device\Timer.h"
#include "Device\Port.h"
#include "Config.h"
#include "Message\BinaryPair.h"
#include "Message\DataStore.h"

View File

@ -1,5 +1,5 @@
#include "BlinkPort.h"
#include "Task.h"
#include "Kernel\Task.h"
static void BlinkTask(void* param);

View File

@ -2,7 +2,7 @@
#define __BlinkPort_H__
#include "Sys.h"
#include "Port.h"
#include "Device\Port.h"
// 闪烁端口
class BlinkPort

View File

@ -2,7 +2,7 @@
#define __BUTTON_H__
#include "Sys.h"
#include "Port.h"
#include "Device\Port.h"
#include "Message\DataStore.h"
// 面板按钮

View File

@ -1,8 +1,8 @@
#include "Sys.h"
#include "Task.h"
#include "Port.h"
#include "Kernel\Task.h"
#include "Device\Port.h"
#include "Timer.h"
#include "Device\Timer.h"
#include "Button_GrayLevel.h"
#include "Device\WatchDog.h"

View File

@ -1,8 +1,8 @@
#ifndef __BUTTON_GRAY_LEVEL_H__
#define __BUTTON_GRAY_LEVEL_H__
#include "Port.h"
#include "Pwm.h"
#include "Device\Port.h"
#include "Device\Pwm.h"
#include "Message\DataStore.h"
struct ButtonPin

View File

@ -2,7 +2,7 @@
#define __BUTTON_H__
#include "Sys.h"
#include "Port.h"
#include "Device\Port.h"
// 面板按钮
// 这里必须使用_packed关键字生成对齐的代码否则_Value只占一个字节导致后面的成员进行内存操作时错乱

View File

@ -1,5 +1,5 @@
#include "CommandPort.h"
#include "Task.h"
#include "Kernel\Task.h"
static void CommandTask(void* param);

View File

@ -2,7 +2,7 @@
#define __CommandPort_H__
#include "Sys.h"
#include "Port.h"
#include "Device\Port.h"
// 命令端口。通过命令来控制输出口开关、取反、延时打开、打开延迟等高级功能
class CommandPort

View File

@ -1,5 +1,5 @@
#include "FlushPort.h"
#include "Task.h"
#include "Kernel\Task.h"
FlushPort::FlushPort()
{

View File

@ -2,7 +2,7 @@
#define __FlushPort_H__
#include "Sys.h"
#include "Port.h"
#include "Device\Port.h"
#include "Message\DataStore.h"
// 闪烁端口

View File

@ -1,5 +1,5 @@
#include "Sys.h"
#include "TTime.h"
#include "Kernel\TTime.h"
#include "IR.h"

View File

@ -2,9 +2,9 @@
#ifndef __IR_H__
#define __IR_H__
#include "Buffer.h"
#include "Pwm.h"
#include "Port.h"
#include "Sys.h"
#include "Device\Pwm.h"
#include "Device\Port.h"
/*
remap的关系

View File

@ -2,7 +2,7 @@
#define __SENSOR_H__
#include "Sys.h"
#include "Port.h"
#include "Device\Port.h"
class Sensor

View File

@ -3,8 +3,8 @@
#define __Music_H__
#include "Sys.h"
#include "Timer.h"
#include "Port.h"
#include "Device\Timer.h"
#include "Device\Port.h"
typedef struct // 单个音节
{

View File

@ -1,9 +1,9 @@
#include "AP0103.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "SerialPort.h"
#include "WatchDog.h"
#include "Device\SerialPort.h"
#include "Device\WatchDog.h"
#include "Config.h"
#include "Drivers\NRF24L01.h"

View File

@ -1,9 +1,9 @@
#include "AP0104.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "SerialPort.h"
#include "WatchDog.h"
#include "Device\SerialPort.h"
#include "Device\WatchDog.h"
#include "Config.h"
#include "Drivers\NRF24L01.h"

View File

@ -1,8 +1,8 @@
#include "AP0801.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "WatchDog.h"
#include "Device\WatchDog.h"
#include "Config.h"
#include "Drivers\NRF24L01.h"

View File

@ -1,8 +1,8 @@
#include "AP0802.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "WatchDog.h"
#include "Device\WatchDog.h"
#include "Config.h"
#include "Drivers\NRF24L01.h"

View File

@ -1,8 +1,8 @@
#include "IOK027X.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "WatchDog.h"
#include "Device\WatchDog.h"
#include "Config.h"
#include "Drivers\Esp8266\Esp8266.h"

View File

@ -1,8 +1,8 @@
#include "IOK0612.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "WatchDog.h"
#include "Device\WatchDog.h"
#include "Config.h"
#include "Drivers\Esp8266\Esp8266.h"

View File

@ -1,8 +1,8 @@
#include "Pandora.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "WatchDog.h"
#include "Device\WatchDog.h"
#include "Config.h"
#include "Device\Spi.h"

View File

@ -1,8 +1,6 @@
#ifndef __Flash_H__
#define __Flash_H__
#include "Sys.h"
#include "Device\Port.h"
#include "Storage\Storage.h"
// Flash类

View File

@ -1,6 +1,6 @@
#include "Device\Power.h"
#include "WatchDog.h"
#include "Device\WatchDog.h"
// 低功耗处理器
static List<Power*> _powers;

View File

@ -2,7 +2,7 @@
#define __Proxy_H__
#include "Sys.h"
#include "SerialPort.h"
#include "Device\SerialPort.h"
#include "ProxyConfig.h"
class Proxy

View File

@ -2,7 +2,7 @@
#define __ProxyCfg_H__
#include "Sys.h"
#include "../Config.h"
#include "Config.h"
class ProxyConfig : public ConfigBase
{

View File

@ -2,8 +2,8 @@
#define __SerialPort_H__
#include "Core\Queue.h"
#include "Device\Port.h"
#include "Device\Power.h"
#include "Port.h"
#include "Power.h"
#include "Net\ITransport.h"
#define SERIAL_BAUDRATE 1024000

View File

@ -2,7 +2,7 @@
#define __UTPort_H__
#include "Sys.h"
#include "SerialPort.h"
#include "Device\SerialPort.h"
#include "Message/Pair.h"
enum PacketEorrCode : byte

View File

@ -1,8 +1,8 @@
#ifndef _74HC165_H_
#define _74HC165_H_
#include "Port.h"
#include "Power.h"
#include "Device\Port.h"
#include "Device\Power.h"
// 温湿度传感器
class IC74HC165

View File

@ -1,8 +1,8 @@
#ifndef _74HC165MOR_H_
#define _74HC165MOR_H_
#include "Port.h"
#include "Power.h"
#include "Device\Port.h"
#include "Device\Power.h"
/* 备注
Open()

View File

@ -1,8 +1,8 @@
#ifndef _AT24CXX_H_
#define _AT24CXX_H_
#include "I2C.h"
#include "..\Storage\Storage.h"
#include "Device\I2C.h"
#include "Storage\Storage.h"
// EEPROM
class AT24CXX : public CharStorage

View File

@ -1,6 +1,6 @@
#include "Sys.h"
#include "Port.h"
#include "Spi.h"
#include "Device\Port.h"
#include "Device\Spi.h"
#include "AT45DB.h"
#define Dummy_Byte 0xA5

View File

@ -2,7 +2,7 @@
#define __AT45DB_H__
#include "Sys.h"
#include "Spi.h"
#include "Device\Spi.h"
// AT45DB存储Flash
class AT45DB

View File

@ -1,7 +1,8 @@
#include "ByteArray.h"
#include "BH1750.h"
#include "Sys.h"
#include "I2C.h"
#include "Device\I2C.h"
#include "BH1750.h"
#define CMD_PWN_OFF 0x00
#define CMD_PWN_ON 0x01

View File

@ -1,5 +1,5 @@
#include "BufferPort.h"
#include "SerialPort.h"
#include "Device\SerialPort.h"
BufferPort::BufferPort() : Buf()
{

View File

@ -1,8 +1,8 @@
#ifndef _DHT11_H_
#define _DHT11_H_
#include "Port.h"
#include "Power.h"
#include "Device\Port.h"
#include "Device\Power.h"
// 温湿度传感器
class DHT11

View File

@ -2,8 +2,8 @@
#define __Enc28j60_H__
#include "Sys.h"
#include "Spi.h"
#include "Power.h"
#include "Device\Spi.h"
#include "Device\Power.h"
#include "Net\ITransport.h"
#include "Net\Socket.h"

View File

@ -1,8 +1,8 @@
#include "Sys.h"
#include "Task.h"
#include "TTime.h"
#include "Kernel\Task.h"
#include "Kernel\TTime.h"
#include "SerialPort.h"
#include "Device\SerialPort.h"
#include "Esp8266.h"
#include "EspTcp.h"

View File

@ -1,7 +1,7 @@
#ifndef __Esp8266_H__
#define __Esp8266_H__
#include "Port.h"
#include "Device\Port.h"
#include "Net\ITransport.h"
#include "Net\Socket.h"
#include "Message\DataStore.h"

View File

@ -1,7 +1,7 @@
#ifndef __WaitExpect_H__
#define __WaitExpect_H__
#include "WaitHandle.h"
#include "Kernel\WaitHandle.h"
// 等待
class WaitExpect

View File

@ -1,8 +1,8 @@
#ifndef _HX711_H_
#define _HX711_H_
#include "Port.h"
#include "Power.h"
#include "Device\Port.h"
#include "Device\Power.h"
enum HX711Mode
{

View File

@ -1,7 +1,7 @@
#include "Sys.h"
#include "JTW8953.h"
#include "I2C.h"
#include "Device\I2C.h"
#define ADDRESS 0xa6 // 从机的地址和写入标志

View File

@ -1,5 +1,5 @@
#include "Sys.h"
#include "Port.h"
#include "Device\Port.h"
#include "NRF24L01.h"
//#define RF_DEBUG DEBUG

View File

@ -1,6 +1,6 @@
#include "SHT30.h"
#include "I2C.h"
#include "Device\I2C.h"
#define LITTLE_ENDIAN

View File

@ -2,8 +2,8 @@
#define __ShunCom_H__
#include "Sys.h"
#include "Port.h"
#include "Power.h"
#include "Device\Port.h"
#include "Device\Power.h"
#include "Net\ITransport.h"
#include "Message\DataStore.h"

View File

@ -1,5 +1,5 @@
#include "TTime.h"
#include "SerialPort.h"
#include "Kernel\TTime.h"
#include "Device\SerialPort.h"
#include "Sim900A.h"

View File

@ -1,5 +1,5 @@
#include "UBlox.h"
#include "SerialPort.h"
#include "Device\SerialPort.h"
UBlox::UBlox()
{

View File

@ -1,8 +1,8 @@
#include "stddef.h"
#include "Sys.h"
#include "Spi.h"
#include "Power.h"
#include "Device\Spi.h"
#include "Device\Power.h"
#include "Net\ITransport.h"
#include "Net\Socket.h"
#include "Message\DataStore.h"
@ -11,8 +11,8 @@
#include "Net\DNS.h"
#include "W5500.h"
#include "TTime.h"
#include "Task.h"
#include "Kernel\TTime.h"
#include "Kernel\Task.h"
#include "App\FlushPort.h"

View File

@ -2,9 +2,9 @@
#define __NRF24L01_H__
#include "Sys.h"
#include "Spi.h"
#include "Device\Spi.h"
#include "Net\ITransport.h"
#include "Power.h"
#include "Device\Power.h"
#include "Message\DataStore.h"
#include "APP\FlushPort.h"

View File

@ -1,5 +1,5 @@
#include "Thread.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "Interrupt.h"
//#define TH_DEBUG DEBUG

View File

@ -1,5 +1,6 @@
#include "Thread.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "Kernel\Interrupt.h"
#include "Platform\stm32.h"

View File

@ -1,5 +1,7 @@
#include "TTime.h"
#include "Timer.h"
#include "Sys.h"
#include "Kernel\Interrupt.h"
#include "Kernel\TTime.h"
#include "Device\Timer.h"
#include "Platform\stm32.h"

View File

@ -1,4 +1,4 @@
#include "Port.h"
#include "Device\Port.h"
#include "DAC.h"
#include "Platform\stm32.h"

View File

@ -1,4 +1,4 @@
#include "Flash.h"
#include "Device\Flash.h"
#include "Platform\stm32.h"

View File

@ -1,5 +1,5 @@
#include "Sys.h"
#include "Port.h"
#include "Device\Port.h"
#include "Platform\stm32.h"

View File

@ -1,6 +1,6 @@
#include "Power.h"
#include "Device\Power.h"
#include "WatchDog.h"
#include "Device\WatchDog.h"
#include "Platform\stm32.h"

View File

@ -1,6 +1,6 @@
#include "Sys.h"
#include "Pwm.h"
#include "Device\Pwm.h"
#include "Platform\stm32.h"

View File

@ -1,4 +1,4 @@
#include "TTime.h"
#include "Kernel\TTime.h"
#include "RTC.h"
#include "Platform\stm32.h"

View File

@ -1,7 +1,7 @@
#include "Sys.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "SerialPort.h"
#include "Device\SerialPort.h"
#include "Platform\stm32.h"

View File

@ -1,7 +1,7 @@
#include "Buffer.h"
#include "Sys.h"
#include "Spi.h"
#include "Device\Spi.h"
#include "Platform\stm32.h"

View File

@ -1,6 +1,6 @@
#include "Sys.h"
#include "Timer.h"
#include "Device\Timer.h"
#include "Platform\stm32.h"

View File

@ -1,4 +1,4 @@
#include "WatchDog.h"
#include "Device\WatchDog.h"
#include "Platform\stm32.h"

View File

@ -1,4 +1,4 @@
#include "TTime.h"
#include "Kernel\TTime.h"
#include "RTC.h"
#include "Platform\stm32.h"

View File

@ -1,5 +1,7 @@
#include "Sys.h"
#include "Port.h"
#include "Kernel\Interrupt.h"
#include "Device\Port.h"
#include "Can.h"
#include "Platform\stm32.h"

View File

@ -1,4 +1,4 @@
#include "Port.h"
#include "Device\Port.h"
#include "DAC.h"
#include "Platform\stm32.h"

View File

@ -1,4 +1,4 @@
#include "Flash.h"
#include "Device\Flash.h"
#include "Platform\stm32.h"

View File

@ -1,5 +1,6 @@
#include "Sys.h"
#include "Port.h"
#include "Kernel\Interrupt.h"
#include "Device\Port.h"
#include "Platform\stm32.h"

View File

@ -1,6 +1,6 @@
#include "Power.h"
#include "Device\Power.h"
#include "WatchDog.h"
#include "Device\WatchDog.h"
#include "Platform\stm32.h"

View File

@ -1,6 +1,6 @@
#include "Sys.h"
#include "Pwm.h"
#include "Device\Pwm.h"
#include "Platform\stm32.h"

View File

@ -1,5 +1,6 @@
#include "RTC.h"
#include "TTime.h"
#include "Kernel\TTime.h"
#include "Kernel\Interrupt.h"
#include "Platform\stm32.h"

View File

@ -1,7 +1,8 @@
#include "Sys.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "Kernel\Interrupt.h"
#include "SerialPort.h"
#include "Device\SerialPort.h"
#include "Platform\stm32.h"

View File

@ -1,7 +1,7 @@
#include "Buffer.h"
#include "Sys.h"
#include "Spi.h"
#include "Device\Spi.h"
#include "Platform\stm32.h"

View File

@ -1,6 +1,7 @@
#include "Sys.h"
#include "Kernel\Interrupt.h"
#include "Timer.h"
#include "Device\Timer.h"
#include "Platform\stm32.h"

View File

@ -1,4 +1,4 @@
#include "WatchDog.h"
#include "Device\WatchDog.h"
#include "Platform\stm32.h"

View File

@ -1,4 +1,4 @@
#include "TTime.h"
#include "Kernel\TTime.h"
#include "RTC.h"
#include "Platform\stm32.h"

View File

@ -1,5 +1,5 @@
#include "Sys.h"
#include "ADC.h"
#include "Device\ADC.h"
void TestADC()
{

View File

@ -1,6 +1,5 @@
#include "Sys.h"
#include "List.h"
#include "Dictionary.h"
#include "Core\Dictionary.h"
#if DEBUG
void IDictionary::Test()

View File

@ -1,6 +1,6 @@
#include "Sys.h"
#include "Drivers\Enc28j60.h"
#include "SerialPort.h"
#include "Device\SerialPort.h"
#include "TinyIP\TinyIP.h"
#include "TinyIP\Arp.h"
#include "TinyIP\Icmp.h"

View File

@ -1,4 +1,4 @@
#include "Flash.h"
#include "Device\Flash.h"
#include <stdlib.h>
void TestFlash()

View File

@ -1,5 +1,5 @@
#include "Sys.h"
#include "SerialPort.h"
#include "Device\SerialPort.h"
#include "Drivers\NRF24L01.h"
#include "TinyNet\TinyClient.h"

View File

@ -1,5 +1,5 @@
#include "App\PulsePort.h"
#include "Port.h"
#include "Device\Port.h"
void InitPort();

View File

@ -1,5 +1,4 @@
#include "Platform\Pin.h"
#include "SerialPort.h"
#include "Device\SerialPort.h"
#ifdef DEBUG
static uint OnUsartRead(ITransport* transport, Buffer& bs, void* param, void* param2)

View File

@ -1,5 +1,5 @@
#include "SString.h"
#include "TTime.h"
#include "Core\SString.h"
#include "Kernel\TTime.h"
#if DEBUG

View File

@ -1,6 +1,6 @@
#include "Sys.h"
#include "Port.h"
#include "Thread.h"
#include "Device\Port.h"
#include "Kernel\Thread.h"
Thread* th;

View File

@ -1,6 +1,6 @@
#include "Sys.h"
#include "Port.h"
#include "Timer.h"
#include "Device\Port.h"
#include "Device\Timer.h"
//Timer* timer;

View File

@ -2,8 +2,8 @@
#define __TEST_CONF__H__
#include "Sys.h"
#include "Port.h"
#include "Spi.h"
#include "Device\Port.h"
#include "Device\Spi.h"
#include "TokenNet\TokenClient.h"
void TestSerial();

View File

@ -1,6 +1,6 @@
#include "Arp.h"
#include "WaitHandle.h"
#include "Kernel\WaitHandle.h"
#define NET_DEBUG 0

View File

@ -1,8 +1,8 @@
#include "TTime.h"
#include "Kernel\TTime.h"
#include "Icmp.h"
#include "Arp.h"
#include "WaitHandle.h"
#include "Kernel\WaitHandle.h"
#define NET_DEBUG DEBUG

View File

@ -1,6 +1,6 @@
#include "Tcp.h"
#include "WaitHandle.h"
#include "Kernel\WaitHandle.h"
#define NET_DEBUG 0
//#define NET_DEBUG DEBUG

View File

@ -1,7 +1,7 @@
#include "TinyIP.h"
#include "Arp.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "Tcp.h"
#include "Udp.h"

View File

@ -1,7 +1,7 @@
#include "Tiny.h"
#include "SerialPort.h"
#include "WatchDog.h"
#include "Device\SerialPort.h"
#include "Device\WatchDog.h"
#include "Config.h"
#include "Drivers\NRF24L01.h"

View File

@ -2,7 +2,7 @@
#define _Tiny_H_
#include "Sys.h"
#include "Power.h"
#include "Device\Power.h"
#include "Net\ITransport.h"
#include "TinyNet\TinyClient.h"

View File

@ -1,4 +1,4 @@
#include "TTime.h"
#include "Kernel\TTime.h"
#include "TinyClient.h"
#include "Security\Crc.h"

View File

@ -1,4 +1,4 @@
#include "Flash.h"
#include "Device\Flash.h"
#include "TinyServer.h"
#include "Security\Crc.h"

View File

@ -3,7 +3,6 @@
#include "Sys.h"
#include "Flash.h"
#include "TinyNet\TinyConfig.h"
/******************************** Device ********************************/

View File

@ -4,7 +4,7 @@
#include "Sys.h"
#include "Device.h"
#include "Flash.h"
#include "Device\Flash.h"
#include "TinyNet\TinyConfig.h"
#include "Message\BinaryPair.h"

View File

@ -2,7 +2,7 @@
#define __SERVER__H__
#include "Sys.h"
#include "Port.h"
#include "Device\Port.h"
#include "Net\ITransport.h"
#include "Message\DataStore.h"
#include "TokenClient.h"

View File

@ -1,9 +1,9 @@
#include "Token.h"
#include "Task.h"
#include "Kernel\Task.h"
#include "SerialPort.h"
#include "WatchDog.h"
#include "Device\SerialPort.h"
#include "Device\WatchDog.h"
#include "Config.h"
#include "Drivers\NRF24L01.h"

View File

@ -1,4 +1,4 @@
#include "TTime.h"
#include "Kernel\TTime.h"
#include "Net\Socket.h"

View File

@ -20,9 +20,6 @@ namespace NewLife.Reflection
build.Cortex = 3;
build.Output = "F1";
build.AddIncludes("..\\..\\Lib");
build.AddIncludes("..\\Core");
build.AddIncludes("..\\Kernel");
build.AddIncludes("..\\Device");
build.AddFiles("..\\Core");
build.AddFiles("..\\Kernel", "*.c;*.cpp", false, "Thread");
build.AddFiles("..\\Device");

Some files were not shown because too many files have changed in this diff Show More