2018-12-05 11:44:53 +08:00
|
|
|
/*
|
2021-03-17 02:26:35 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2018-12-05 11:44:53 +08:00
|
|
|
*
|
|
|
|
* 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)
|
|
|
|
{
|
2021-03-17 02:26:35 +08:00
|
|
|
/* user app entry */
|
2018-12-05 11:44:53 +08:00
|
|
|
rt_pin_mode(LED4_PIN, PIN_MODE_OUTPUT);
|
2021-03-17 02:26:35 +08:00
|
|
|
|
2018-12-05 11:44:53 +08:00
|
|
|
while (1)
|
|
|
|
{
|
|
|
|
rt_pin_write(LED4_PIN, !rt_pin_read(LED4_PIN));
|
|
|
|
rt_thread_delay(1000);
|
|
|
|
}
|
|
|
|
}
|