修复pwm

This commit is contained in:
Robofish 2025-08-30 10:53:30 +08:00
parent fcd97c1392
commit d6eaed5f72
4 changed files with 3 additions and 7 deletions

Binary file not shown.

View File

@ -1,9 +1,8 @@
/* Includes ----------------------------------------------------------------- */ /* Includes ----------------------------------------------------------------- */
#include "tim.h"
#include "bsp/pwm.h" #include "bsp/pwm.h"
#include "bsp.h" #include "bsp.h"
#include <tim.h>
/* Private define ----------------------------------------------------------- */ /* Private define ----------------------------------------------------------- */
/* Private macro ------------------------------------------------------------ */ /* Private macro ------------------------------------------------------------ */
/* Private typedef ---------------------------------------------------------- */ /* Private typedef ---------------------------------------------------------- */

View File

@ -6,15 +6,13 @@ extern "C" {
/* Includes ----------------------------------------------------------------- */ /* Includes ----------------------------------------------------------------- */
#include <stdint.h> #include <stdint.h>
#include "tim.h"
#include "bsp.h" #include "bsp.h"
/* Exported constants ------------------------------------------------------- */ /* Exported constants ------------------------------------------------------- */
/* Exported macro ----------------------------------------------------------- */ /* Exported macro ----------------------------------------------------------- */
/* Exported types ----------------------------------------------------------- */ /* Exported types ----------------------------------------------------------- */
/* Forward declarations */
typedef struct __TIM_HandleTypeDef TIM_HandleTypeDef;
/* PWM通道 */ /* PWM通道 */
typedef enum { typedef enum {
/* AUTO GENERATED BSP_PWM_ENUM */ /* AUTO GENERATED BSP_PWM_ENUM */

View File

@ -19,7 +19,6 @@ typedef struct {
/* Exported functions prototypes -------------------------------------------- */ /* Exported functions prototypes -------------------------------------------- */
int8_t BUZZER_Init(BUZZER_t *buzzer, BSP_PWM_Channel_t channel); int8_t BUZZER_Init(BUZZER_t *buzzer, BSP_PWM_Channel_t channel);