1 /* 2 * Copyright (c) 2006-2019, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2021-09-05 qinweizhong add support for tae32 9 */ 10 #include "rtthread.h" 11 #include "board.h" 12 13 #define LED_PIN 42 14 main(void)15int main(void) 16 { 17 int count = 1; 18 rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT); 19 20 while (count++) 21 { 22 rt_pin_write(LED_PIN, PIN_HIGH); 23 rt_thread_mdelay(500); 24 rt_pin_write(LED_PIN, PIN_LOW); 25 rt_thread_mdelay(500); 26 27 rt_kprintf("count %d\r\n", count); 28 } 29 } 30