2022-05-19 14:06:35 +08:00
|
|
|
/*
|
|
|
|
* 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 <rtthread.h>
|
|
|
|
#include <rtdevice.h>
|
2022-08-04 10:43:50 +08:00
|
|
|
#include <drv_gpio.h>
|
|
|
|
#include <fsl_gpio.h>
|
|
|
|
|
|
|
|
#define EXAMPLE_LED_GPIO GPIO9
|
|
|
|
#define EXAMPLE_LED_GPIO_PIN (3U)
|
2022-05-19 14:06:35 +08:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
while (1)
|
|
|
|
{
|
2022-08-04 10:43:50 +08:00
|
|
|
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);
|
2022-05-19 14:06:35 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|