-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
49 lines (41 loc) · 771 Bytes
/
main.c
File metadata and controls
49 lines (41 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "stm32f4xx.h"
#include "Delay.h"
#include "Timer.h"
#include "Serial.h"
#include "DHT11.h"
#include "MS5837_I2C.h"
#include "Motor.h"
#include "PWM.h"
#include "Watchdog.h"
#include "JY901B.h"
#include "TaskScheduler.h"
#include "AD.h"
#include "im948_CMD.h"
#include "Dma.h"
#include "Types.h"
#include "boot_flag.h"
int main()
{
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
DMA_User_Init();
USART1_Init(115200);
USART2_Init(115200);
USART3_Init(115200);
//UART4_Init(115200);
DHT11_Init();
MS5837_init();
PWM_Init();
ESC_Init();
AD_Init();
JY901B_Init();
IM948_Init();
Ctl_WatchDog_Timer_Init();
BootFlag_MarkBootSuccess();
Delay_ms(DELAY_TIME);
Watchdog_Init();
TaskScheduler_Init();
while(1)
{
TaskScheduler_Run();
}
}