Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Startup/startup.h

Committer:
lukeocarwright
Date:
2020-05-26
Revision:
33:e7635c8a58a8
Parent:
22:028f1627c262

File content as of revision 33:e7635c8a58a8:

#ifndef STARTUP_H
#define STARTUP_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "LUTs.h"

/** startup class
 * @author Luke Cartwright, University of Leeds
 * @brief: manages startup and initialisation
 * @date May 2020
*/
//Global Variables
volatile extern uint16_t sin_wavtable[1024];
volatile extern uint16_t tri_wavtable[1024];
volatile extern uint16_t pulse_wavtable[1024];

class startup
{
public:
    //variables
    float fl; //frequency Variable

    //methods
    /** Constructor */
    startup();

    /** Destructior */
    ~startup();

    /** intitialsie function.
    * @Initialises all main gamepad components.
    * @Also Generates Preliminary LUTs
    */
    void initialise(N5110 &lcd, Gamepad &pad);

private://----------------------------------------------------------------------

};

#endif