You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
668 B

/** \file buzzer.h */
#if !defined(BUZZER_H__4676A357_207F_4D31_A901_C2B23A663560__INCLUDED_)
#define BUZZER_H__4676A357_207F_4D31_A901_C2B23A663560__INCLUDED_
#include "define.h"
#include "board_config.h"
#define GPIO_BUZZER_PORT (Pn_Type*)PD
#define GPIO_BUZZER_PIN_NUM 7
#define GPIO_BUZZER_ON HAL_GPIO_SetPin(GPIO_BUZZER_PORT, _BIT(GPIO_BUZZER_PIN_NUM))
#define GPIO_BUZZER_OFF HAL_GPIO_ClearPin(GPIO_BUZZER_PORT, _BIT(GPIO_BUZZER_PIN_NUM))
#define GPIO_BUZZER_T HAL_GPIO_TogglePin(GPIO_BUZZER_PORT, _BIT(GPIO_BUZZER_PIN_NUM))
void Buzzer_Initialization(void);
void Buzzer_On(uint32_t BuzzerOnTime);
#endif