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 * 2020-04-16 bigmagic first version 9 */ 10 11 #include <rtthread.h> 12 #include <rtdevice.h> 13 #include <board.h> 14 15 #define ACTLED (42) 16 main(int argc,char ** argv)17int main(int argc, char** argv) 18 { 19 rt_kprintf("Hi, this is RT-Thread!!\n"); 20 21 rt_pin_mode(ACTLED, PIN_MODE_OUTPUT); 22 23 while(1) 24 { 25 rt_pin_write(ACTLED, PIN_HIGH); 26 rt_thread_mdelay(1000); 27 rt_pin_write(ACTLED, PIN_LOW); 28 rt_thread_mdelay(1000); 29 } 30 return RT_EOK; 31 } 32