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@22:028f1627c262, 2020-05-23 (annotated)
- Committer:
- lukeocarwright
- Date:
- Sat May 23 16:12:52 2020 +0000
- Revision:
- 22:028f1627c262
- Parent:
- 14:9cfe0041cc4e
- Child:
- 33:e7635c8a58a8
Documentation Update
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 | 22:028f1627c262 | 14 | //Global Variables |
lukeocarwright | 14:9cfe0041cc4e | 15 | volatile extern uint16_t sin_wavtable[1024]; |
lukeocarwright | 14:9cfe0041cc4e | 16 | volatile extern uint16_t tri_wavtable[1024]; |
lukeocarwright | 14:9cfe0041cc4e | 17 | volatile extern uint16_t pulse_wavtable[1024]; |
lukeocarwright | 7:33cb5f2db1ee | 18 | |
lukeocarwright | 7:33cb5f2db1ee | 19 | class startup |
lukeocarwright | 7:33cb5f2db1ee | 20 | { |
lukeocarwright | 7:33cb5f2db1ee | 21 | public: |
lukeocarwright | 22:028f1627c262 | 22 | //variables |
lukeocarwright | 22:028f1627c262 | 23 | float fl; //frequency Variable |
lukeocarwright | 14:9cfe0041cc4e | 24 | |
lukeocarwright | 7:33cb5f2db1ee | 25 | //methods |
lukeocarwright | 22:028f1627c262 | 26 | /** Constructor */ |
lukeocarwright | 7:33cb5f2db1ee | 27 | startup(); |
lukeocarwright | 7:33cb5f2db1ee | 28 | |
lukeocarwright | 22:028f1627c262 | 29 | /** Destructior */ |
lukeocarwright | 7:33cb5f2db1ee | 30 | ~startup(); |
lukeocarwright | 14:9cfe0041cc4e | 31 | |
lukeocarwright | 22:028f1627c262 | 32 | /** intitialsie function. |
lukeocarwright | 22:028f1627c262 | 33 | * @Initialises all main gmaepad components. |
lukeocarwright | 22:028f1627c262 | 34 | * @Also Generates Preliminary LUTs |
lukeocarwright | 22:028f1627c262 | 35 | */ |
lukeocarwright | 7:33cb5f2db1ee | 36 | void initialise(N5110 &lcd, Gamepad &pad); |
lukeocarwright | 7:33cb5f2db1ee | 37 | |
lukeocarwright | 22:028f1627c262 | 38 | private://---------------------------------------------------------------------- |
lukeocarwright | 22:028f1627c262 | 39 | |
lukeocarwright | 7:33cb5f2db1ee | 40 | }; |
lukeocarwright | 7:33cb5f2db1ee | 41 | |
lukeocarwright | 7:33cb5f2db1ee | 42 | #endif |