You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
541 B
30 lines
541 B
10 months ago
|
/*
|
||
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
||
|
*
|
||
|
* 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"
|
||
|
|
||
|
#define LED_PIN GET_PIN(13, 7)
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);
|
||
|
|
||
|
for (;;)
|
||
|
{
|
||
|
rt_pin_write(LED_PIN, PIN_HIGH);
|
||
|
rt_thread_mdelay(500);
|
||
|
rt_pin_write(LED_PIN, PIN_LOW);
|
||
|
rt_thread_mdelay(500);
|
||
|
}
|
||
|
}
|