24 lines
355 B
C
24 lines
355 B
C
|
/* Template app on which you can build your own. */
|
||
|
|
||
|
#include "ch32v003fun.h"
|
||
|
#include <stdio.h>
|
||
|
|
||
|
#define PIN_LED PC4
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
SystemInit();
|
||
|
|
||
|
funGpioInitAll();
|
||
|
|
||
|
funPinMode(PIN_LED, GPIO_Speed_10MHz | GPIO_CNF_OUT_PP);
|
||
|
|
||
|
while (1)
|
||
|
{
|
||
|
funDigitalWrite(PIN_LED, FUN_HIGH);
|
||
|
Delay_Ms(150);
|
||
|
funDigitalWrite(PIN_LED, FUN_LOW);
|
||
|
Delay_Ms(150);
|
||
|
}
|
||
|
}
|