Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Committer:
lukeocarwright
Date:
Tue May 26 14:32:06 2020 +0000
Revision:
33:e7635c8a58a8
Parent:
22:028f1627c262
Final Project submission

Who changed what in which revision?

UserRevisionLine numberNew 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 33:e7635c8a58a8 33 * @Initialises all main gamepad 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