-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.c
31 lines (22 loc) · 829 Bytes
/
main.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
/* Includes ------------------------------------------------------------------*/
#include "stm32f30x_can.h"
#include "stm32f30x_rcc.h"
#include "stm32f30x_gpio.h"
/* GLOBAL VARIABLES ----------------------------------------------------------*/
#include "def_global_vars.h"
/* Funtion Prototypes --------------------------------------------------------*/
void init(void);
/* Funtion Definitions -------------------------------------------------------*/
int main(void)
{
/* Initialization *********************************************************/
init();
GPIOE->ODR = 0; // Turn off LED's
/* Private vars ***********************************************************/
/* Main loop *************************************************************/
while(1)
{
/*Status LED's */
GPIOE->ODR ^= MAIN_LOOP_LED << 8;
}
}