ELEC2645 (2019/20) / Mbed 2 deprecated el18loc_final

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers startup.h Source File

startup.h

00001 #ifndef STARTUP_H
00002 #define STARTUP_H
00003 
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Gamepad.h"
00007 #include "LUTs.h"
00008 
00009 /** startup class
00010  * @author Luke Cartwright, University of Leeds
00011  * @brief: manages startup and initialisation
00012  * @date May 2020
00013 */
00014 //Global Variables
00015 volatile extern uint16_t sin_wavtable[1024];
00016 volatile extern uint16_t tri_wavtable[1024];
00017 volatile extern uint16_t pulse_wavtable[1024];
00018 
00019 class startup
00020 {
00021 public:
00022     //variables
00023     float fl; //frequency Variable
00024 
00025     //methods
00026     /** Constructor */
00027     startup();
00028 
00029     /** Destructior */
00030     ~startup();
00031 
00032     /** intitialsie function.
00033     * @Initialises all main gamepad components.
00034     * @Also Generates Preliminary LUTs
00035     */
00036     void initialise(N5110 &lcd, Gamepad &pad);
00037 
00038 private://----------------------------------------------------------------------
00039 
00040 };
00041 
00042 #endif