Skip to content

Instantly share code, notes, and snippets.

@yuqlid
Last active December 23, 2016 09:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save yuqlid/92b3d2ff8d3d656414c5944222e5301d to your computer and use it in GitHub Desktop.
sw4stm32_use_semihosting
/**
******************************************************************************
* @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