for test input capture PA9->PA6 TIMER0->TIMER2
This commit is contained in:
@@ -5,4 +5,7 @@
|
||||
#ifndef INPUT_CAPTURE_EXP_H
|
||||
#define INPUT_CAPTURE_EXP_H
|
||||
|
||||
void input_capture_config(void);
|
||||
void pwm_config(void);
|
||||
|
||||
#endif //INPUT_CAPTURE_EXP_H
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Created by yelv1 on 24-9-22.
|
||||
//
|
||||
|
||||
#ifndef PERIPHERAL_H
|
||||
#define PERIPHERAL_H
|
||||
|
||||
void usart_config(void);
|
||||
void led_blink_config(void);
|
||||
|
||||
#endif //PERIPHERAL_H
|
||||
@@ -7,12 +7,6 @@
|
||||
|
||||
#include "gd32e23x.h"
|
||||
|
||||
#define LED_PORT GPIOA
|
||||
#define LED_PIN GPIO_PIN_9
|
||||
#define LED_RCU RCU_GPIOA
|
||||
#define LED_TIMER TIMER13
|
||||
#define LED_IRQ TIMER13_IRQn
|
||||
|
||||
#define USART_RCU RCU_USART0
|
||||
#define USART_GPIO_RCU RCU_GPIOA
|
||||
#define USARET_GPIO_PORT GPIOA
|
||||
@@ -21,18 +15,6 @@
|
||||
#define USART0_PHY USART0
|
||||
#define USART_BAUDRATE 115200U
|
||||
|
||||
#define US_TRAN_GPIO_RCU RCU_GPIOB
|
||||
#define US_TRAN_GPIO_PORT GPIOB
|
||||
#define US_TRAN_PIN GPIO_PIN_1
|
||||
|
||||
#define US_TRAN_RCU RCU_TIMER2
|
||||
#define US_TRAN_TIMER TIMER2
|
||||
#define US_TRAN_CH TIMER_CH_3
|
||||
|
||||
void led_config(void);
|
||||
void usart_config(void);
|
||||
void ultrasonic_config(void);
|
||||
void ultrasonic_peripheral_config(void);
|
||||
void ultrasonic_pwm_out_cycles(uint8_t cycles);
|
||||
|
||||
#endif //ULTRASONIC_DRIVER_H
|
||||
Reference in New Issue
Block a user