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
settings.h
- Committer:
 - sbouber1
 - Date:
 - 2016-06-17
 - Revision:
 - 55:ee80f248919d
 - Child:
 - 57:8dc3192ff150
 
File content as of revision 55:ee80f248919d:
/**************************************** 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
//----------------------------------------------------------------------------------------------
/***********************************************************************************************/