.. _program_listing_file_mainboard_Inc_mainboard_config.h: Program Listing for File mainboard_config.h =========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``mainboard/Inc/mainboard_config.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef MAINBOARD_CONFIG_H #define MAINBOARD_CONFIG_H #include "../../fenice_config.h" //=========================================================================== //=================================== General =============================== //=========================================================================== #define HTIM_ERR htim3 #define HTIM_BMS htim2 #define HTIM_SUPER htim4 #define SPI_EEPROM hspi2 #define ADC_HALL50 hadc3 #define ADC_HALL300 hadc2 #define STATE_LED_GPIO LED2_GPIO_Port #define STATE_LED_PIN LED2_Pin // @section Pre-charge #define PRECHARGE_TIMEOUT 10000U #define PRECHARGE_CHECK_INTERVAL 100U #define PRECHARGE_VOLTAGE_THRESHOLD 0.95 //=========================================================================== //=============================== SI8900 Settings =========================== //=========================================================================== #define SI8900_INIT_TIMEOUT 400 #define SI8900_TIMEOUT 5 #define SI8900_VREF 3.33 #endif