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 * 2023-07-15 yby the first version
9 */
10
11 #include "board.h"
12
13 #define LED_N0 rt_pin_get("PN.0")
14 #define LED_N1 rt_pin_get("PN.1")
15 #define LED_F0 GET_PIN(F, 0)
16 #define LED_F4 GET_PIN(F, 4)
17
main(void)18 int main(void)
19 {
20 rt_uint32_t count = 1;
21
22 rt_pin_mode(LED_N0, PIN_MODE_OUTPUT);
23 rt_pin_mode(LED_N1, PIN_MODE_OUTPUT);
24 rt_pin_mode(LED_F0, PIN_MODE_OUTPUT);
25 rt_pin_mode(LED_F4, PIN_MODE_OUTPUT);
26
27 while (count++)
28 {
29 rt_pin_write(LED_N0, PIN_HIGH);
30 rt_pin_write(LED_N1, PIN_HIGH);
31 rt_pin_write(LED_F0, PIN_HIGH);
32 rt_pin_write(LED_F4, PIN_HIGH);
33 rt_thread_mdelay(1000);
34 rt_pin_write(LED_N0, PIN_LOW);
35 rt_pin_write(LED_N1, PIN_LOW);
36 rt_pin_write(LED_F0, PIN_LOW);
37 rt_pin_write(LED_F4, PIN_LOW);
38 rt_thread_mdelay(1000);
39 }
40
41 return RT_EOK;
42 }
43