WatchDog.cpp;Debug.cpp;Power.cpp;Interrupt.cpp

This commit is contained in:
Stone 2016-01-13 16:59:33 +00:00
parent 9ea290c465
commit e4a0531bf8
6 changed files with 13 additions and 0 deletions

View File

@ -2,6 +2,8 @@
#include "Port.h" #include "Port.h"
#include "CAN.h" #include "CAN.h"
#include "Platform\stm32.h"
#ifdef STM32F1 #ifdef STM32F1
static const Pin g_CAN_Pins_Map[] = CAN_PINS; static const Pin g_CAN_Pins_Map[] = CAN_PINS;
static const Pin g_CAN_Pins_Map2[] = CAN_PINS_REMAP2; static const Pin g_CAN_Pins_Map2[] = CAN_PINS_REMAP2;

View File

@ -1,5 +1,7 @@
#include "DMA.h" #include "DMA.h"
#include "Platform\stm32.h"
bool DMA::Start() bool DMA::Start()
{ {
DMA_InitTypeDef DMA_InitStructure; DMA_InitTypeDef DMA_InitStructure;

View File

@ -1,4 +1,7 @@
#include "Sys.h" #include "Sys.h"
#include "Platform\stm32.h"
// 仅用于调试使用的一些函数实现RTM不需要 // 仅用于调试使用的一些函数实现RTM不需要
//#define MEM_DEBUG DEBUG //#define MEM_DEBUG DEBUG

View File

@ -1,6 +1,8 @@
#include "Interrupt.h" #include "Interrupt.h"
#include "SerialPort.h" #include "SerialPort.h"
#include "Platform\stm32.h"
TInterrupt Interrupt; TInterrupt Interrupt;
#define IS_IRQ(irq) (irq >= -16 && irq <= VectorySize - 16) #define IS_IRQ(irq) (irq >= -16 && irq <= VectorySize - 16)

View File

@ -2,6 +2,8 @@
#include "WatchDog.h" #include "WatchDog.h"
#include "Platform\stm32.h"
// 低功耗处理器 // 低功耗处理器
static TArray<Power*, 0x40> _powers(0); static TArray<Power*, 0x40> _powers(0);

View File

@ -1,5 +1,7 @@
#include "WatchDog.h" #include "WatchDog.h"
#include "Platform\stm32.h"
/* /*
IWDGLSI---40KHz  IWDGLSI---40KHz 
WWDG  WWDG