aboutsummaryrefslogtreecommitdiff
path: root/pwm.h
blob: c5075eff4850177a8cfa6e65017b931e04a32f5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef PWM_H
#define PWM_H

#include <stdint.h>
void pwmInit ();
void pwmStart ();
void pwmStop ();
void pwmSet (const uint8_t, const uint8_t);
void pwmSetOff ();

typedef enum {
	SPEAKER_BEEP,
} speakerMode;

void speakerStart (const speakerMode);

#define PWM_LED_COUNT 6

#define PWM_OFF 0
/* must be power-of-two */
#define PWM_MAX_BRIGHTNESS 8
#define PWM_ON PWM_MAX_BRIGHTNESS

#endif /* PWM_H */