31 lines
610 B
C
31 lines
610 B
C
/*
|
|
* 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>
|
|
#include <drv_gpio.h>
|
|
#include <fsl_gpio.h>
|
|
|
|
#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);
|
|
}
|
|
}
|
|
|