whyclwt
2022-05-18 ab72c6e114d7c4e83564194367ba623ca23bf09d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef BUZZERDRV_H
#define BUZZERDRV_H
 
#include <qthread.h>
#include "gpio_driver.h"
 
 
 
class BuzzerDrv :  public QThread
{
public:
        virtual void run();
        ~BuzzerDrv();
public:
    static int init_buzzer_gpio();
 
 
protected:
        int beep_ms;
public:
        void BuzzerBeep(const unsigned int ms);
};
 
#endif // BUZZERDRV_H