Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. /*
  2. * Note.h
  3. *
  4. * An interrupt driven system for playing
  5. * a single continuous note
  6. */
  7. #ifndef SOURCES_NOTE_H_
  8. #define SOURCES_NOTE_H_
  9.  
  10. #include <stdint.h>
  11.  
  12. /**
  13. * Initialise the note playing system before first use
  14. */
  15. void initialiseNotes(void);
  16.  
  17. /**
  18. * Changes the frequency of the note being played
  19. *
  20. * @param frequency - Frequency of note (100Hz-10kHz)
  21. *
  22. * @note This function returns immediately.
  23. * The note is played by interrupt driven code.
  24. */
  25. void setNoteFrequency(uint16_t frequency);
  26.  
  27. #endif
  28. /* SOURCES_NOTES_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement