WatchDog.cpp;Debug.cpp;Power.cpp;Interrupt.cpp
This commit is contained in:
parent
9ea290c465
commit
e4a0531bf8
2
CAN.cpp
2
CAN.cpp
|
@ -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;
|
||||||
|
|
2
DMA.cpp
2
DMA.cpp
|
@ -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;
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#include "Sys.h"
|
#include "Sys.h"
|
||||||
|
|
||||||
|
#include "Platform\stm32.h"
|
||||||
|
|
||||||
// 仅用于调试使用的一些函数实现,RTM不需要
|
// 仅用于调试使用的一些函数实现,RTM不需要
|
||||||
|
|
||||||
//#define MEM_DEBUG DEBUG
|
//#define MEM_DEBUG DEBUG
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include "WatchDog.h"
|
#include "WatchDog.h"
|
||||||
|
|
||||||
|
#include "Platform\stm32.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
独立看门狗IWDG——有独立时钟(内部低速时钟LSI---40KHz),所以不受系统硬件影响的系统故障探测器。主要用于监视硬件错误。
|
独立看门狗IWDG——有独立时钟(内部低速时钟LSI---40KHz),所以不受系统硬件影响的系统故障探测器。主要用于监视硬件错误。
|
||||||
窗口看门狗WWDG——时钟与系统相同。如果系统时钟不走了,这个狗也就失去作用了,主要用于监视软件错误。
|
窗口看门狗WWDG——时钟与系统相同。如果系统时钟不走了,这个狗也就失去作用了,主要用于监视软件错误。
|
||||||
|
|
Loading…
Reference in New Issue