ECE 2036 Project
Dependencies: mbed wave_player 4DGL-uLCD-SE
globals.h@0:cf4396614a79, 2017-11-03 (annotated)
- Committer:
- rconnorlawson
- Date:
- Fri Nov 03 18:48:48 2017 +0000
- Revision:
- 0:cf4396614a79
- Child:
- 2:2042f29de6b7
Emptied shell code (including doubly linked list) and added comments for all the functionality.;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rconnorlawson | 0:cf4396614a79 | 1 | /* Gatech ECE2035 2015 SPRING PAC MAN |
rconnorlawson | 0:cf4396614a79 | 2 | * Copyright (c) 2015 Gatech ECE2035 |
rconnorlawson | 0:cf4396614a79 | 3 | * |
rconnorlawson | 0:cf4396614a79 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
rconnorlawson | 0:cf4396614a79 | 5 | * of this software and associated documentation files (the "Software"), to deal |
rconnorlawson | 0:cf4396614a79 | 6 | * in the Software without restriction, including without limitation the rights |
rconnorlawson | 0:cf4396614a79 | 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
rconnorlawson | 0:cf4396614a79 | 8 | * copies of the Software, and to permit persons to whom the Software is |
rconnorlawson | 0:cf4396614a79 | 9 | * furnished to do so, subject to the following conditions: |
rconnorlawson | 0:cf4396614a79 | 10 | * |
rconnorlawson | 0:cf4396614a79 | 11 | * The above copyright notice and this permission notice shall be included in |
rconnorlawson | 0:cf4396614a79 | 12 | * all copies or substantial portions of the Software. |
rconnorlawson | 0:cf4396614a79 | 13 | * |
rconnorlawson | 0:cf4396614a79 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
rconnorlawson | 0:cf4396614a79 | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
rconnorlawson | 0:cf4396614a79 | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
rconnorlawson | 0:cf4396614a79 | 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
rconnorlawson | 0:cf4396614a79 | 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
rconnorlawson | 0:cf4396614a79 | 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
rconnorlawson | 0:cf4396614a79 | 20 | * SOFTWARE. |
rconnorlawson | 0:cf4396614a79 | 21 | */ |
rconnorlawson | 0:cf4396614a79 | 22 | #ifndef GLOBAL_H |
rconnorlawson | 0:cf4396614a79 | 23 | #define GLOBAL_H |
rconnorlawson | 0:cf4396614a79 | 24 | |
rconnorlawson | 0:cf4396614a79 | 25 | // This is a hack because the library for the screen is bad. |
rconnorlawson | 0:cf4396614a79 | 26 | #ifndef ULCD_4DGL_H_ |
rconnorlawson | 0:cf4396614a79 | 27 | #define ULCD_4DGL_H_ |
rconnorlawson | 0:cf4396614a79 | 28 | #include "uLCD_4DGL.h" |
rconnorlawson | 0:cf4396614a79 | 29 | #endif |
rconnorlawson | 0:cf4396614a79 | 30 | |
rconnorlawson | 0:cf4396614a79 | 31 | // Includes for hardware support |
rconnorlawson | 0:cf4396614a79 | 32 | #include "wave_player.h" |
rconnorlawson | 0:cf4396614a79 | 33 | #include "SDFileSystem.h" |
rconnorlawson | 0:cf4396614a79 | 34 | #include "MMA8452.h" |
rconnorlawson | 0:cf4396614a79 | 35 | |
rconnorlawson | 0:cf4396614a79 | 36 | // Hardware declarations. Initialization is in main.cpp |
rconnorlawson | 0:cf4396614a79 | 37 | extern uLCD_4DGL uLCD; // Screen |
rconnorlawson | 0:cf4396614a79 | 38 | extern MMA8452 acc; // Accelerometer |
rconnorlawson | 0:cf4396614a79 | 39 | extern DigitalIn left_pb; // push button |
rconnorlawson | 0:cf4396614a79 | 40 | extern DigitalIn right_pb; // push button |
rconnorlawson | 0:cf4396614a79 | 41 | extern DigitalIn up_pb; // push button |
rconnorlawson | 0:cf4396614a79 | 42 | extern DigitalIn down_pb; // push button |
rconnorlawson | 0:cf4396614a79 | 43 | extern Serial pc; // Serial output to PC |
rconnorlawson | 0:cf4396614a79 | 44 | extern AnalogOut DACout; // speaker |
rconnorlawson | 0:cf4396614a79 | 45 | extern wave_player waver; // wav player |
rconnorlawson | 0:cf4396614a79 | 46 | extern SDFileSystem sd; // SD card and filesystem (mosi, miso, sck, cs) |
rconnorlawson | 0:cf4396614a79 | 47 | |
rconnorlawson | 0:cf4396614a79 | 48 | // Global parameters. Initialized in main.cpp |
rconnorlawson | 0:cf4396614a79 | 49 | extern const float mass; |
rconnorlawson | 0:cf4396614a79 | 50 | extern const int radius; |
rconnorlawson | 0:cf4396614a79 | 51 | extern const float bounce; |
rconnorlawson | 0:cf4396614a79 | 52 | |
rconnorlawson | 0:cf4396614a79 | 53 | #endif //GLOBAL_H |