You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
435 B
26 lines
435 B
8 years ago
|
//
|
||
|
// Created by MightyPork on 2016/9/2
|
||
|
//
|
||
|
|
||
|
#include <common.h>
|
||
|
#include "utils/timebase.h"
|
||
|
#include "utils/debug.h"
|
||
|
#include "user_main.h"
|
||
|
#include "init.h"
|
||
|
|
||
|
/** Main function, called from MX-generated main.c */
|
||
|
void user_main()
|
||
|
{
|
||
|
banner("== USER CODE STARTING ==");
|
||
|
|
||
|
user_init();
|
||
|
|
||
|
ms_time_t counter1 = 0;
|
||
|
while (1) {
|
||
|
if (ms_loop_elapsed(&counter1, 1000)) {
|
||
|
// Blink
|
||
|
HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin);
|
||
|
}
|
||
|
}
|
||
|
}
|