summaryrefslogtreecommitdiff
path: root/src/pwm.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-01-05 03:14:50 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-01-05 03:14:50 +0100
commit4a4ba3538cf52cc1e0238c673d4a97dbbf68c56a (patch)
treec01e5d0ab22eb618eef08ea85b9e233a87577d4c /src/pwm.h
parentd9b9b3e71397a2da9e16cbee75c4954105237363 (diff)
downloadanalog_instruments-4a4ba3538cf52cc1e0238c673d4a97dbbf68c56a.tar.gz
fix commands, add fade
Diffstat (limited to 'src/pwm.h')
-rw-r--r--src/pwm.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pwm.h b/src/pwm.h
index 822e76d..0c232a2 100644
--- a/src/pwm.h
+++ b/src/pwm.h
@@ -11,11 +11,14 @@
#include <avr/interrupt.h>
#include <stdint.h>
-extern uint8_t t0_ovf_cnt;
-extern uint8_t pb0_thresh;
+#define PWM_PINS 3
+#define PWM_DDR DDRB
+#define PWM_PORT PORTB
void pwm_init();
void pwm_set_pin(uint8_t _pin, uint8_t _duty);
+void pwm_fade_pin(uint8_t _pin, uint8_t _duty);
+
#endif /* _PWM_H_ */