2021-04-02 15:14:08 +02:00
|
|
|
#ifndef BSP_Q7S_BOARDCONFIG_Q7S_CONFIG_H_
|
|
|
|
#define BSP_Q7S_BOARDCONFIG_Q7S_CONFIG_H_
|
|
|
|
|
2021-07-05 12:09:31 +02:00
|
|
|
#include <cstdint>
|
|
|
|
|
2021-06-30 15:18:41 +02:00
|
|
|
#cmakedefine01 Q7S_SIMPLE_MODE
|
2021-07-12 14:32:20 +02:00
|
|
|
|
2021-08-20 14:50:40 +02:00
|
|
|
/*******************************************************************/
|
|
|
|
/** All of the following flags should be enabled for mission code */
|
|
|
|
/*******************************************************************/
|
|
|
|
|
|
|
|
//! Timers can mess up the code when debugging
|
|
|
|
//! All of this should be enabled for mission code!
|
|
|
|
|
|
|
|
/*******************************************************************/
|
|
|
|
/** Other flags */
|
|
|
|
/*******************************************************************/
|
|
|
|
|
|
|
|
#define Q7S_SD_NONE 0
|
|
|
|
#define Q7S_SD_COLD_REDUNDANT 1
|
|
|
|
#define Q7S_SD_HOT_REDUNDANT 2
|
2021-07-12 14:32:20 +02:00
|
|
|
// The OBSW will perform different actions to set up the SD cards depending on the flag set here
|
|
|
|
// Set to Q7S_SD_NONE: Don't do anything
|
|
|
|
// Set to Q7S_COLD_REDUNDANT: On startup, get the prefered SD card, turn it on and mount it, and
|
|
|
|
// turn off the second SD card if it is on
|
|
|
|
// Set to Q7S_HOT_REDUNDANT: On startup, turn on both SD cards and mount them
|
2021-08-20 14:50:40 +02:00
|
|
|
#define Q7S_SD_CARD_CONFIG Q7S_SD_COLD_REDUNDANT
|
2021-07-12 14:32:20 +02:00
|
|
|
|
2021-07-28 20:11:22 +02:00
|
|
|
// Probably better if this is disabled for mission code. Convenient for development
|
2021-08-20 14:50:40 +02:00
|
|
|
#define Q7S_CHECK_FOR_ALREADY_RUNNING_IMG 1
|
2021-04-25 00:06:04 +02:00
|
|
|
|
2021-08-20 14:50:40 +02:00
|
|
|
#define Q7S_SIMPLE_ADD_FILE_SYSTEM_TEST 0
|
2021-06-30 16:15:46 +02:00
|
|
|
|
2021-07-05 12:09:31 +02:00
|
|
|
namespace config {
|
|
|
|
|
|
|
|
static const uint32_t SD_CARD_ACCESS_MUTEX_TIMEOUT = 50;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-04-02 15:14:08 +02:00
|
|
|
#endif /* BSP_Q7S_BOARDCONFIG_Q7S_CONFIG_H_ */
|