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@9:f6ba53e355a0, 2020-05-06 (annotated)
- Committer:
- lukeocarwright
- Date:
- Wed May 06 14:37:34 2020 +0000
- Revision:
- 9:f6ba53e355a0
- Parent:
- 7:33cb5f2db1ee
- Child:
- 10:258a1eca02cc
Outputted sin LUT in uint16_t with unit test using DEBUG macro. Allows direct writing of value to table to 16-bit DAC.
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 | 9:f6ba53e355a0 | 14 | volatile extern uint16_t sin_wavtable[1024]; |
lukeocarwright | 7:33cb5f2db1ee | 15 | |
lukeocarwright | 7:33cb5f2db1ee | 16 | |
lukeocarwright | 7:33cb5f2db1ee | 17 | class startup |
lukeocarwright | 7:33cb5f2db1ee | 18 | { |
lukeocarwright | 7:33cb5f2db1ee | 19 | public: |
lukeocarwright | 9:f6ba53e355a0 | 20 | //vaiables |
lukeocarwright | 9:f6ba53e355a0 | 21 | float fl; |
lukeocarwright | 7:33cb5f2db1ee | 22 | //methods |
lukeocarwright | 7:33cb5f2db1ee | 23 | //constructor |
lukeocarwright | 7:33cb5f2db1ee | 24 | startup(); |
lukeocarwright | 7:33cb5f2db1ee | 25 | |
lukeocarwright | 7:33cb5f2db1ee | 26 | //destructior |
lukeocarwright | 7:33cb5f2db1ee | 27 | ~startup(); |
lukeocarwright | 7:33cb5f2db1ee | 28 | |
lukeocarwright | 7:33cb5f2db1ee | 29 | void initialise(N5110 &lcd, Gamepad &pad); |
lukeocarwright | 7:33cb5f2db1ee | 30 | |
lukeocarwright | 7:33cb5f2db1ee | 31 | private: |
lukeocarwright | 7:33cb5f2db1ee | 32 | }; |
lukeocarwright | 7:33cb5f2db1ee | 33 | |
lukeocarwright | 7:33cb5f2db1ee | 34 | #endif |