Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
wave.h
- Committer:
- exopiped
- Date:
- 2016-03-13
- Revision:
- 0:8ee38453bad9
File content as of revision 0:8ee38453bad9:
#ifndef WAVE_H #define WAVE_H #define WAVE_TYPE_FIRST 0 #define WAVE_TYPE_SAW 0 #define WAVE_TYPE_TRIANGLE 1 #define WAVE_TYPE_SQUARE 2 #define WAVE_TYPE_LAST 2 #define WAVE_TYPE_DEFAULT WAVE_TYPE_SAW #define WAVE_SAMPLE_RATE 22050 void wave_init(void); void wave_reset(void); void wave_update(void); int wave_nextval(unsigned freq); bool wave_type_changed(void); void wave_type_incr(void); #endif