StackRyan e86d54a400
[fix]mimxrt1170 Qspi flash bootup problems (#6215)
[fix]mimxrt1170 Qspi flash bootup problems by loss of external flash conf and ivt header.
[add]green light instead printf on main.c.
2022-08-03 22:43:50 -04:00

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);
}
}