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 DRV88255 TextLCD Ping mbed-rtos
Diff: settings.h
- Revision:
- 55:ee80f248919d
- Child:
- 57:8dc3192ff150
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/settings.h Fri Jun 17 19:10:15 2016 +0000 @@ -0,0 +1,35 @@ +/**************************************** MAIN SETTINGS ****************************************/ +//---------------------------------------------------------------------------------------------- +// This file includes the system settings for Saltware such as boot parameters + + +// If defined the system runs in test mode and executes test_main() in testing.cpp +// Else the system runs in production mode and executes real_main() in main.cpp. +#define TEST_MODE + +#ifdef TEST_MODE +#define MAIN test_main +#else +#define MAIN real_main +#endif + + +// Do we stop the system after an alarm was raised? +#define HALT_ON_ALARM + +// Sleep for X ms after each iteration +#define MAIN_THREAD_DELAY_MS 1000 + +// Number of seconds before a critical alarm is raised +#define NUMBER_OF_SEC_BEFORE_CRITICAL_ALARM 30 + +// Number of seconds before an undesired alarm is raised +#define NUMBER_OF_SEC_BEFORE_UNDESIRED_ALARM 300 + + + + + + +//---------------------------------------------------------------------------------------------- +/***********************************************************************************************/ \ No newline at end of file