用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
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.

31 lines
608 B

10 months ago
/*
* Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-11-03 WangShun first version
*/
#include "ch32v20x.h"
#include <rtthread.h>
#include <rthw.h>
#include "drivers/pin.h"
#include <board.h>
#define LED0 rt_pin_get("PA.0")
int main(void)
{
rt_pin_mode(LED0,PIN_MODE_OUTPUT);
rt_kprintf("MCU-CH32V208WBU6\r\n");
while(1)
{
rt_pin_write(LED0, PIN_HIGH);
rt_thread_mdelay(500);
rt_pin_write(LED0, PIN_LOW);
rt_thread_mdelay(500);
}
}