From e3a880051ccf1ba9a16fd9cf031b7386b2533bf1 Mon Sep 17 00:00:00 2001 From: sowgro Date: Tue, 2 Sep 2025 14:45:40 -0400 Subject: Organized project --- project/Core/Inc/tone.h | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 project/Core/Inc/tone.h (limited to 'project/Core/Inc/tone.h') diff --git a/project/Core/Inc/tone.h b/project/Core/Inc/tone.h deleted file mode 100644 index b30e252..0000000 --- a/project/Core/Inc/tone.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * tone.h - * - * Created on: May 14, 2022 - * Author: bruce - */ - -#ifndef INC_TONE_H_ -#define INC_TONE_H_ - -#include "dac.h" - -/** - * SysTick handler. Since tones are controlled by software, the SysTick timer - * must be used accurately manage the times. - */ -void SysTick_Handler(); - -/** - * Accessor for the counter. Useful for knowing what the current "time" is - * in the system. - */ -uint32_t get_counter (); - -void reset_counter (); - -/** - * Utility function that converts a frequency into a Systick timer ticks. - */ -uint32_t hertz_to_systicks (float hertz); - -/** - * Adds a tone to be played. - */ -uint8_t add_tone (uint8_t note, uint8_t velocity); - -/** - * Removes a tone from the current group of tones that can be played. - */ -uint8_t remove_tone (uint8_t note); - - -/** - * Starts playing any tones that have been added. - */ -void play_tones (); - - -#endif /* INC_TONE_H_ */ -- cgit v1.2.3