2022-04-29 09:01:44 +08:00
|
|
|
/*
|
2022-06-04 17:04:19 +08:00
|
|
|
* Copyright (c) 2021-2022, RT-Thread Development Team
|
2022-04-29 09:01:44 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2022-04-24 supperthomas first version
|
2022-06-04 17:04:19 +08:00
|
|
|
* 2022-06-02 supperthomas fix version
|
2022-04-29 09:01:44 +08:00
|
|
|
*/
|
|
|
|
|
2022-06-04 17:04:19 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
#include <rtdevice.h>
|
|
|
|
#include <board.h>
|
2022-04-29 09:01:44 +08:00
|
|
|
|
2022-09-14 15:49:05 +08:00
|
|
|
int main(void)
|
2022-04-29 09:01:44 +08:00
|
|
|
{
|
2022-08-06 01:35:38 +08:00
|
|
|
rt_kprintf("Hello!RT-THREAD!\r\n");
|
2022-07-03 21:40:12 +08:00
|
|
|
rt_pin_mode(RT_BSP_LED_PIN, PIN_MODE_OUTPUT);
|
2022-04-29 09:01:44 +08:00
|
|
|
while (1)
|
|
|
|
{
|
2022-07-03 21:40:12 +08:00
|
|
|
rt_pin_write(RT_BSP_LED_PIN, PIN_HIGH);
|
2022-04-29 09:01:44 +08:00
|
|
|
rt_thread_mdelay(1000);
|
2022-07-03 21:40:12 +08:00
|
|
|
rt_pin_write(RT_BSP_LED_PIN, PIN_LOW);
|
2022-04-29 09:01:44 +08:00
|
|
|
rt_thread_mdelay(1000);
|
|
|
|
}
|
|
|
|
}
|