generated from hulk/gd32e23x_template
31 lines
667 B
C
31 lines
667 B
C
//
|
|
// 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
|