ch32hack/main.c

16 lines
261 B
C
Raw Normal View History

2025-02-10 18:54:17 +01:00
#include <ch32fun.h>
#define LED_PIN PD6
int main() {
SystemInit();
2025-02-12 19:48:32 +01:00
funGpioInitAll();
2025-02-10 18:54:17 +01:00
funPinMode(LED_PIN, GPIO_Speed_10MHz | GPIO_CNF_OUT_PP);
2025-06-18 00:57:59 +02:00
funDigitalWrite(LED_PIN, 1);
Delay_Ms(100);
funDigitalWrite(LED_PIN, 0);
2025-02-10 18:54:17 +01:00
2025-02-12 19:48:32 +01:00
while (1);
2025-02-10 18:54:17 +01:00
}