eive-obsw/bsp_q7s/boardconfig/q7sConfig.h.in

38 lines
1.1 KiB
C
Raw Normal View History

#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
#define Q7S_SD_NONE 0
#define Q7S_SD_COLD_REDUNDANT 1
#define Q7S_SD_HOT_REDUNDANT 2
// 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-07-12 15:19:06 +02:00
#define Q7S_SD_CARD_CONFIG Q7S_SD_COLD_REDUNDANT
2021-06-23 15:18:31 +02:00
#define Q7S_ADD_RTD_DEVICES 0
/* Only one of those 2 should be enabled! */
/* Add code for ACS board */
#define OBSW_ADD_ACS_BOARD 0
2021-06-23 15:18:31 +02:00
#if OBSW_ADD_ACS_BOARD == 0
2021-04-25 09:33:21 +02:00
#define Q7S_ADD_SPI_TEST 0
2021-06-23 15:18:31 +02:00
#endif
#define Q7S_ADD_SYRLINKS_HANDLER 1
2021-06-30 16:15:46 +02:00
#define Q7S_SIMPLE_ADD_FILE_SYSTEM_TEST 0
2021-07-05 12:09:31 +02:00
namespace config {
static const uint32_t SD_CARD_ACCESS_MUTEX_TIMEOUT = 50;
}
#endif /* BSP_Q7S_BOARDCONFIG_Q7S_CONFIG_H_ */