Organize files

This commit is contained in:
2024-12-20 16:06:20 +08:00
parent 49f57c6980
commit c635adf812
15 changed files with 532 additions and 562 deletions

26
inc/led.h Normal file
View File

@@ -0,0 +1,26 @@
//
// Created by dell on 24-12-20.
//
#ifndef LED_H
#define LED_H
#include "gd32e23x_it.h"
#include "gd32e23x.h"
#include "systick.h"
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define LED_PORT GPIOA
#define LED_PIN GPIO_PIN_7
#define LED_RCU RCU_GPIOA
#define LED_TIMER_RCU RCU_TIMER16
#define LED_TIMER TIMER16
#define LED_IRQ TIMER16_IRQn
void led_config(void);
#endif //LED_H