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.
Dependencies: mbed
Diff: inc/boards.h
- Revision:
- 52:2b3b194144da
- Parent:
- 51:abe8a392d50b
--- a/inc/boards.h Wed Mar 13 19:10:40 2019 +0000 +++ b/inc/boards.h Thu Mar 14 00:21:35 2019 +0000 @@ -31,12 +31,19 @@ #include "adc_defs.h" +extern volatile bool pulseReady; + +const float TEMPERATURE_THRESH = 1000.0; +const float FAN_PERIOD = 0.02f; + #define VOLTAGE_TOLERANCE 0.1 const unsigned int V48_HI = (unsigned int)ADC_SCALE_FACTOR*(VOLTAGE_48_ACTUAL_VALUE/VOLTAGE_TARG_VALUE)*(1.0+VOLTAGE_TOLERANCE); const unsigned int V48_LO = (unsigned int)ADC_SCALE_FACTOR*(VOLTAGE_48_ACTUAL_VALUE/VOLTAGE_TARG_VALUE)*(1.0-VOLTAGE_TOLERANCE); const unsigned int V12_HI = (unsigned int)ADC_SCALE_FACTOR*(VOLTAGE_12_ACTUAL_VALUE/VOLTAGE_TARG_VALUE)*(1.0+VOLTAGE_TOLERANCE); const unsigned int V12_LO = (unsigned int)ADC_SCALE_FACTOR*(VOLTAGE_12_ACTUAL_VALUE/VOLTAGE_TARG_VALUE)*(1.0-VOLTAGE_TOLERANCE); +void setFan(unsigned int temperatureVal); + void initBoards(struct adcValues); extern bool buck;