Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2136 | - | 1 | /* |
2 | * pwmsine8bit.h |
||
3 | * |
||
4 | * Created on: 01.09.2012 |
||
5 | * Author: cebra |
||
6 | */ |
||
7 | |||
8 | #ifndef PWMSINE8BIT_H_ |
||
9 | #define PWMSINE8BIT_H_ |
||
10 | |||
11 | extern unsigned char freqincipart,freqincfpart; |
||
12 | extern unsigned char waveptipart,waveptfpart; |
||
13 | extern unsigned char iattenfac; //0-255 |
||
14 | extern unsigned char generate; |
||
15 | extern volatile unsigned char sindat[256]; //8 bit sine table |
||
16 | void InitSound(void); |
||
17 | void tone(int hz,uint8_t volume, uint16_t ms, uint16_t soundpause); |
||
18 | void tone1(int hz); |
||
19 | void playTone(uint16_t f_Hz, uint16_t dur_ms, uint8_t volume); |
||
20 | void tone_handler(void); |
||
21 | |||
22 | #endif /* PWMSINE8BIT_H_ */ |