-
Notifications
You must be signed in to change notification settings - Fork 8
/
PollingRoutine.c
42 lines (32 loc) · 902 Bytes
/
PollingRoutine.c
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
/*
* PollingRoutine.c
*
* Created on: Oct 24, 2023
* Author: karl.yamashita
*
*
* Template for projects.
*
* The object of this PollingRoutine.c/h files is to not have to write code in main.c which already has a lot of generated code.
* It is cumbersome having to scroll through all the generated code for your own code and having to find a USER CODE section so your code is not erased when CubeMX re-generates code.
*
* Direction: Call PollingInit before the main while loop. Call PollingRoutine from within the main while loop
*
* Example;
// USER CODE BEGIN WHILE
PollingInit();
while (1)
{
PollingRoutine();
// USER CODE END WHILE
// USER CODE BEGIN 3
}
// USER CODE END 3
*/
#include "main.h"
void PollingInit(void)
{
}
void PollingRoutine(void)
{
}