Last active
December 23, 2016 09:45
-
-
Save yuqlid/92b3d2ff8d3d656414c5944222e5301d to your computer and use it in GitHub Desktop.
sw4stm32_use_semihosting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
****************************************************************************** | |
* @file main.c | |
* @author yuqlid | |
* @version V1.0 | |
* @date 23-Dece-2016 | |
* @brief Default main function. | |
****************************************************************************** | |
*/ | |
#include "stm32f4xx.h" | |
#include "stm32f4_discovery.h" | |
extern void initialise_monitor_handles(void); | |
int main(void) | |
{ | |
uint8_t time = 0; | |
initialise_monitor_handles(); | |
HAL_Init(); | |
BSP_LED_Init(LED3); | |
for(;;){ | |
HAL_Delay(500); | |
BSP_LED_Toggle(LED3); | |
time++; | |
printf("time = %d\n",time); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment