|
|
@ -1,6 +1,8 @@ |
|
|
|
#include "gins.h" |
|
|
|
|
|
|
|
#include "main.h" |
|
|
|
#include "stm32f4xx_hal_rtc.h" |
|
|
|
#include "stm32f4xx_hal_rtc_ex.h" |
|
|
|
|
|
|
|
DEFINE_GLOBAL(CAN_HandleTypeDef, hcan1); |
|
|
|
|
|
|
@ -35,6 +37,9 @@ DEFINE_GLOBAL(DMA_HandleTypeDef, hdma2_stream5); |
|
|
|
DEFINE_GLOBAL(DMA_HandleTypeDef, hdma2_stream6); |
|
|
|
DEFINE_GLOBAL(DMA_HandleTypeDef, hdma2_stream7); |
|
|
|
|
|
|
|
DEFINE_GLOBAL(RTC_HandleTypeDef, hrtc); |
|
|
|
|
|
|
|
|
|
|
|
DMA_Stream_TypeDef* getDmaStreamTypeDef(DMA_HandleTypeDef* dmah) { |
|
|
|
if (dmah->Instance) return dmah->Instance; |
|
|
|
|
|
|
|