28 lines
685 B
C
28 lines
685 B
C
/*
|
|
* File : main.c
|
|
* This file is part of RT-Thread RTOS
|
|
* COPYRIGHT (C) 2009, RT-Thread Development Team
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rt-thread.org/license/LICENSE
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2015-07-29 Arda.Fu first implementation
|
|
*/
|
|
#include "stm32f0xx_hal.h"
|
|
#include <rtthread.h>
|
|
|
|
int main(void)
|
|
{
|
|
/* user app entry */
|
|
while(1){
|
|
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);
|
|
// HAL_Delay(1000);
|
|
rt_thread_delay(RT_TICK_PER_SECOND); /* sleep 1 second and switch to other thread */
|
|
}
|
|
return 0;
|
|
}
|
|
|