| 12345678910111213141516171819202122232425262728293031 |
- /*
- * Copyright (c) 2006-2020, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2020-05-23 Administrator the first version
- */
- #ifndef APPLICATIONS_INC_BEEP_H_
- #define APPLICATIONS_INC_BEEP_H_
- #include <rtthread.h>
- #define BEEP_PWM_DEVICE "pwm3"
- #define RAIN_PWM_DEVICE "pwm8"
- #define BEEP_PWM_CH 1
- int beep_init(void); //蜂鸣器初始化
- int beep_on(void); //蜂鸣器开
- int beep_off(void); //蜂鸣器关
- int pwm_off(uint8_t pwn_ch,rt_uint32_t pwm_freq);
- int pwm_on(uint8_t pwn_ch,rt_uint32_t pwm_freq);
- void beep_set(uint32_t freq, uint32_t volume); //蜂鸣器设定
- void Beep_Tip(uint16_t volnum);
- /*****************************4.0******************************/
- void Motor_Qingsao_L_PWM(uint8_t on_off);
- void Motor_Qingsao_R_PWM(uint8_t on_off);
- /**************************吸虫塔****************************/
- void Motor_Juandai(uint8_t on_off);
- void Motor_shake(uint8_t status_shake,uint16_t shake_sec);
- /***********************************************************/
- #endif /* APPLICATIONS_INC_BEEP_H_ */
|