/* * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2019-05-06 tyustli first version * */ #include #include #include #include #define EXAMPLE_LED_GPIO GPIO9 #define EXAMPLE_LED_GPIO_PIN (3U) int main(void) { while (1) { GPIO_PinWrite(EXAMPLE_LED_GPIO, EXAMPLE_LED_GPIO_PIN, 0U); rt_thread_mdelay(500); GPIO_PinWrite(EXAMPLE_LED_GPIO, EXAMPLE_LED_GPIO_PIN, 1U); rt_thread_mdelay(500); } }