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.
Fork of Final351CW_FINAL by
Diff: Components/components.hpp
- Revision:
- 10:098c2fa0a1a6
- Parent:
- 8:582ac4c5a524
--- a/Components/components.hpp Tue Jan 09 06:14:41 2018 +0000 +++ b/Components/components.hpp Tue Jan 09 11:33:14 2018 +0000 @@ -1,5 +1,10 @@ -#ifndef __sample_hardware__ -#define __sample_hardware__ +/* ELEC351 COURSEWORK 2018 +DESIGNED USING MBED ONLINE COMPILER IMPORTED TO KEIL +LIAM GRAZIER // DOUG TILLEY // ALEX BARON + */ +#ifndef __components__ +#define __components__ +//defines for signals for threads #define SIG_READY 1 #define SIG_READY2 1 #define SIG_REMOVE 1 @@ -10,21 +15,23 @@ #else #include "BMP280.h" #endif +//sdcard includes #include "SDBlockDevice.h" #include "FATFileSystem.h" -//dougs -void DispTime(void); -void setuptime(void); -void runtime(void); -void rundate(void); -/// -void runanalysis(void); -void sdrun(void); -void sdcheck(void); -void lcdstart(void); -void sdwrite(void); -void sdremove(void); +//task voids +void DispTime(void);//print time to terminak +void setuptime(void); //task for init the background for time over serial +void runtime(void); //set time over serial +void rundate(void); //set date over serial +void runanalysis(void); //lcd printing/sensor store and refresh +void sdrun(void); //setup sd +void sdcheck(void); //check sd still init. +void lcdstart(void); //start the lcd/routine for start +void sdwrite(void); //write data to SD +void sdwipe(void); //wipe data from SD +void sdremove(void); //remove the SD card safely enum ELEC350_ERROR_CODE {OK, FATAL}; +//setup i/o extern DigitalOut onBoardLED; extern DigitalOut redLED; extern DigitalOut yellowLED; @@ -32,13 +39,11 @@ extern DigitalIn onBoardSwitch; extern DigitalIn SW1; extern DigitalIn SW2; -//extern Serial pc; extern AnalogIn adcIn; #ifdef BME extern BME280 sensor; #else extern BMP280 sensor; #endif -extern void post(); extern void errorCode(ELEC350_ERROR_CODE err); #endif \ No newline at end of file