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.
Startup/startup.h@14:9cfe0041cc4e, 2020-05-19 (annotated)
- Committer:
- lukeocarwright
- Date:
- Tue May 19 15:04:33 2020 +0000
- Revision:
- 14:9cfe0041cc4e
- Parent:
- 11:6ae098535da9
- Child:
- 22:028f1627c262
Actually make proper sound atlast. Checked Concert A against piano. included more preprocessor debug (SLOW TIME) for Debug if output check required w. printf
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lukeocarwright | 7:33cb5f2db1ee | 1 | #ifndef STARTUP_H |
lukeocarwright | 7:33cb5f2db1ee | 2 | #define STARTUP_H |
lukeocarwright | 7:33cb5f2db1ee | 3 | |
lukeocarwright | 7:33cb5f2db1ee | 4 | #include "mbed.h" |
lukeocarwright | 7:33cb5f2db1ee | 5 | #include "N5110.h" |
lukeocarwright | 7:33cb5f2db1ee | 6 | #include "Gamepad.h" |
lukeocarwright | 7:33cb5f2db1ee | 7 | #include "LUTs.h" |
lukeocarwright | 7:33cb5f2db1ee | 8 | |
lukeocarwright | 7:33cb5f2db1ee | 9 | /** startup class |
lukeocarwright | 7:33cb5f2db1ee | 10 | * @author Luke Cartwright, University of Leeds |
lukeocarwright | 7:33cb5f2db1ee | 11 | * @brief: manages startup and initialisation |
lukeocarwright | 7:33cb5f2db1ee | 12 | * @date May 2020 |
lukeocarwright | 7:33cb5f2db1ee | 13 | */ |
lukeocarwright | 14:9cfe0041cc4e | 14 | volatile extern uint16_t sin_wavtable[1024]; |
lukeocarwright | 14:9cfe0041cc4e | 15 | volatile extern uint16_t tri_wavtable[1024]; |
lukeocarwright | 14:9cfe0041cc4e | 16 | volatile extern uint16_t pulse_wavtable[1024]; |
lukeocarwright | 7:33cb5f2db1ee | 17 | |
lukeocarwright | 7:33cb5f2db1ee | 18 | class startup |
lukeocarwright | 7:33cb5f2db1ee | 19 | { |
lukeocarwright | 7:33cb5f2db1ee | 20 | public: |
lukeocarwright | 14:9cfe0041cc4e | 21 | //vaiables |
lukeocarwright | 14:9cfe0041cc4e | 22 | float fl; |
lukeocarwright | 14:9cfe0041cc4e | 23 | |
lukeocarwright | 7:33cb5f2db1ee | 24 | //methods |
lukeocarwright | 7:33cb5f2db1ee | 25 | //constructor |
lukeocarwright | 7:33cb5f2db1ee | 26 | startup(); |
lukeocarwright | 7:33cb5f2db1ee | 27 | |
lukeocarwright | 7:33cb5f2db1ee | 28 | //destructior |
lukeocarwright | 7:33cb5f2db1ee | 29 | ~startup(); |
lukeocarwright | 14:9cfe0041cc4e | 30 | |
lukeocarwright | 7:33cb5f2db1ee | 31 | void initialise(N5110 &lcd, Gamepad &pad); |
lukeocarwright | 7:33cb5f2db1ee | 32 | |
lukeocarwright | 7:33cb5f2db1ee | 33 | private: |
lukeocarwright | 7:33cb5f2db1ee | 34 | }; |
lukeocarwright | 7:33cb5f2db1ee | 35 | |
lukeocarwright | 7:33cb5f2db1ee | 36 | #endif |