rt-thread/bsp/lpc54114-lite/applications/main.c

27 lines
516 B
C
Raw Normal View History

2018-12-05 11:44:53 +08:00
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2015-07-29 Arda.Fu first implementation
*/
#include <rtthread.h>
#include <rtdevice.h>
#define LED4_PIN 30 /* PIO0_30 */
int main(void)
{
/* user app entry */
rt_pin_mode(LED4_PIN, PIN_MODE_OUTPUT);
while (1)
{
rt_pin_write(LED4_PIN, !rt_pin_read(LED4_PIN));
rt_thread_delay(1000);
}
return 0;
}