aboutsummaryrefslogtreecommitdiff
path: root/pwm.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-05-04 02:22:31 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-05-04 02:22:31 +0200
commitf29443cd40f9050beedab3a822b6e0f24fb789cd (patch)
tree5f53eb3d8c904af00f13d58976c8d6f04ba6339e /pwm.h
parentaf302afcb0aaa08bd9c093b2c8ff20647a001919 (diff)
downloadtmk7637-f29443cd40f9050beedab3a822b6e0f24fb789cd.tar.gz
optimized the LED and buzzer wiring
* since we use timer 3 exclusively for the buzzer but trigger the pin using an IRQ handler, there is no longer any need to occupy a high-resolution pin for the buzzer. * PD5 became a new high resolution LED * PD0 became the new buzzer pin * rearranged the pins used for the different LEDs so that the distribution of high-resolution LEDs is symmetric * Timer 0 is no longer used/modified by setting LEDs. This avoids some workarounds as timer 0 is also used by tmk's timer module. * The song routines could be slightly improved using the timer module. * documented the LED and buzzer pinout in README
Diffstat (limited to 'pwm.h')
-rw-r--r--pwm.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/pwm.h b/pwm.h
index f1e0d3f..4a68f4b 100644
--- a/pwm.h
+++ b/pwm.h
@@ -20,7 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <stdint.h>
-void pwm_pd0_set_led(uint8_t brightness);
void pwm_pd1_set_led(uint8_t brightness);
void pwm_pb4_set_led(uint8_t brightness);
void pwm_pb5_set_led(uint8_t brightness);
@@ -29,6 +28,6 @@ void pwm_pb7_set_led(uint8_t brightness);
void pwm_set_led(uint8_t led, uint8_t brightness);
-void pwm_pb5_set_tone(uint16_t freq);
+void pwm_pd0_set_tone(uint16_t freq);
#endif