1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2017-09-19 Quintin.Z the first version 9 */ 10 11 #include <stdio.h> 12 #include <rthw.h> 13 #include <rtdevice.h> 14 #include "board.h" 15 #include <rtthread.h> 16 17 #include "gpio.h" 18 19 led_thread_entry(void * parameter)20void led_thread_entry(void* parameter) 21 { 22 23 GPIO_Init (GPIOA, GPIO_PTB5_MASK, GPIO_PinOutput); 24 25 while(1) 26 { 27 GPIO_Toggle (GPIOA, GPIO_PTB5_MASK); 28 rt_thread_delay(RT_TICK_PER_SECOND / 10); 29 30 } 31 } 32