| 12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- * 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 pwm3_init(void);
- int beep_on(void); //蜂鸣器开
- int beep_off(void); //蜂鸣器关
- void beep_set(uint32_t freq, uint32_t volume); //蜂鸣器设定
- void Beep_Tip(uint16_t volnum);
- int beep_play(void);
- void Motor_UP_PWM_R(uint8_t on_off);
- void Motor_UP_PWM_L(uint8_t on_off);
- void Motor_Down_PWM_R(uint8_t on_off);
- void Motor_Down_PWM_L(uint8_t on_off);
- void Rain_Motor_PWM_R(uint8_t on_off);
- void Rain_Motor_PWM_L(uint8_t on_off);
- #endif /* APPLICATIONS_INC_BEEP_H_ */
|