2022-07-05 16:45:32 +08:00
|
|
|
/*
|
2023-01-20 10:49:23 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2022-07-05 16:45:32 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2022-06-29 Rbb666 first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
#include <rtdevice.h>
|
|
|
|
|
|
|
|
#include "drv_gpio.h"
|
|
|
|
|
2022-07-05 16:59:20 +08:00
|
|
|
#define LED_PIN GET_PIN(13, 7)
|
2022-07-05 16:45:32 +08:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);
|
|
|
|
|
|
|
|
for (;;)
|
|
|
|
{
|
2022-07-08 17:07:28 +08:00
|
|
|
rt_pin_write(LED_PIN, PIN_HIGH);
|
|
|
|
rt_thread_mdelay(500);
|
|
|
|
rt_pin_write(LED_PIN, PIN_LOW);
|
|
|
|
rt_thread_mdelay(500);
|
2022-07-05 16:45:32 +08:00
|
|
|
}
|
|
|
|
}
|