2024-04-22 19:16:45 +00:00
|
|
|
#include "stm32f10x.h"
|
|
|
|
#include "bsp_usart.h"
|
|
|
|
#include "TimerTick.h"
|
|
|
|
#include "menu.h"
|
2024-07-10 12:15:39 +00:00
|
|
|
#include "stdlib.h"
|
2024-07-18 08:22:34 +00:00
|
|
|
#include "rotary_encoder.h"
|
2024-06-21 05:38:29 +00:00
|
|
|
|
|
|
|
xMenu menu;
|
2024-08-06 15:25:09 +00:00
|
|
|
int test;
|
2024-06-21 05:38:29 +00:00
|
|
|
|
2024-04-22 19:16:45 +00:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
USART_Config();
|
|
|
|
Timer_Init();
|
2024-07-18 08:22:34 +00:00
|
|
|
Rotary_Encoder_Init();
|
2024-06-21 05:38:29 +00:00
|
|
|
Menu_Init(&menu);
|
2024-04-22 19:16:45 +00:00
|
|
|
for(;;)
|
|
|
|
{
|
2024-08-18 12:15:31 +00:00
|
|
|
test = rand()%360;
|
2024-06-21 05:38:29 +00:00
|
|
|
Menu_Loop(&menu);
|
2024-04-22 19:16:45 +00:00
|
|
|
}
|
|
|
|
}
|