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 0NicksCoursework_copywithserialtime by
components.hpp
00001 /* ELEC351 COURSEWORK 2018 00002 DESIGNED USING MBED ONLINE COMPILER IMPORTED TO KEIL 00003 LIAM GRAZIER // DOUG TILLEY // ALEX BARON 00004 */ 00005 #ifndef __components__ 00006 #define __components__ 00007 //defines for signals for threads 00008 #define SIG_READY 1 00009 #define SIG_READY2 1 00010 #define SIG_REMOVE 1 00011 #define SIG_NET 1 00012 //#define BME 00013 #ifdef BME 00014 #include "BME280.h" 00015 #else 00016 #include "BMP280.h" 00017 #endif 00018 //sdcard includes 00019 #include "SDBlockDevice.h" 00020 #include "FATFileSystem.h" 00021 //task voids 00022 void DispTime(void);//print time to terminak 00023 void setuptime(void); //task for init the background for time over serial 00024 void runtime(void); //set time over serial 00025 void rundate(void); //set date over serial 00026 void runanalysis(void); //lcd printing/sensor store and refresh 00027 void sdrun(void); //setup sd 00028 void sdcheck(void); //check sd still init. 00029 void lcdstart(void); //start the lcd/routine for start 00030 void sdwrite(void); //write data to SD 00031 void sdwipe(void); //wipe data from SD 00032 void sdremove(void); //remove the SD card safely 00033 enum ELEC350_ERROR_CODE {OK, FATAL}; 00034 //setup i/o 00035 extern DigitalOut onBoardLED; 00036 extern DigitalOut redLED; 00037 extern DigitalOut yellowLED; 00038 extern DigitalOut greenLED; 00039 extern DigitalIn onBoardSwitch; 00040 extern DigitalIn SW1; 00041 extern DigitalIn SW2; 00042 extern AnalogIn adcIn; 00043 #ifdef BME 00044 extern BME280 sensor; 00045 #else 00046 extern BMP280 sensor; 00047 #endif 00048 extern void errorCode(ELEC350_ERROR_CODE err); 00049 #endif
Generated on Sun Jul 17 2022 05:50:34 by
1.7.2
