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 ELEC351 by
Diff: SAMPLE.hpp
- Revision:
- 47:6d128e500875
- Child:
- 48:244d6d81bb52
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SAMPLE.hpp Mon Jan 08 21:53:40 2018 +0000 @@ -0,0 +1,37 @@ +#ifndef SAMPLE_HPP +#define SAMPLE_HPP + +#include "TIME.hpp" +#include "THREADS.hpp" +#include "DATA.hpp" +#include "SERIAL.hpp" +#include "LED.hpp" +#include "sample_hardware.hpp" + +//Signal Definitions +#define SamplingTime 1 +#define SerialCommsTime 1 +#define NotSerialCommsTime 0 +#define NotSamplingTime 0 +#define Print_Time_to_LCD 1 +#define Dont_Print_Time_to_LCD 0 +#define EDGE_RISEN 1 +#define EDGE_FALLEN 0 +#define SD_Data_Ready 1 +#define No_SD_Data_Ready 0 +#define Do_Read_Data 1 +#define Dont_Read_Data 0 +#define Do_Delete_Data 1 +#define Dont_Delete_Data 0 + +extern void Sampling_ISR(); +extern void Sample_Event(); + +//LED object constructors +static LED Red_led(PE_15); +static LED Yellow_led(PB_10); +static LED Green_led(PB_11); + + + +#endif \ No newline at end of file