Line 30... |
Line 30... |
30 |
#define HALFDUTY (int16)MAXDUTY/2 |
30 |
#define HALFDUTY (int16)MAXDUTY/2 |
31 |
//#define DIVISOR 199 // 10 kHz |
31 |
//#define DIVISOR 199 // 10 kHz |
32 |
#define DIVISOR 99 // 20 kHz |
32 |
#define DIVISOR 99 // 20 kHz |
33 |
//#define DIVISOR 39 // 50 kHz |
33 |
//#define DIVISOR 39 // 50 kHz |
34 |
|
34 |
|
35 |
#define MAX_OUTPUT 706 |
35 |
#define MAX_OUTPUT 1000 |
36 |
|
36 |
|
37 |
void sound_beep( unsigned int lenght, int16 frequency) |
37 |
void sound_beep( unsigned int lenght, int16 frequency) |
38 |
{ |
38 |
{ |
39 |
unsigned int i; |
39 |
unsigned int i; |
40 |
|
40 |
|