Skip to content

Instantly share code, notes, and snippets.

@yuqlid
Created December 20, 2016 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuqlid/f9c380f1537a8c3b38b3fa5c29cd1d99 to your computer and use it in GitHub Desktop.
Save yuqlid/f9c380f1537a8c3b38b3fa5c29cd1d99 to your computer and use it in GitHub Desktop.
sw4stm32 helloworld
/**
******************************************************************************
* @file main.c
* @author yuqlid
* @version V1.0
* @date 15-June-2016
* @brief Default main function.
******************************************************************************
*/
#include "stm32f4xx.h"
#include "stm32f4_discovery.h"
int main(void)
{
HAL_Init();
BSP_LED_Init(LED3);
for(;;){
HAL_Delay(500);
BSP_LED_Toggle(LED3);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment