|
|
@ -28,7 +28,7 @@ extern "C" { |
|
|
|
/* Exported constants --------------------------------------------------------*/ |
|
|
|
|
|
|
|
/* ########################## Module Selection ############################## */ |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief This is the list of modules to be used in the HAL driver |
|
|
|
*/ |
|
|
|
#define HAL_MODULE_ENABLED |
|
|
@ -82,7 +82,7 @@ extern "C" { |
|
|
|
/* #define HAL_MMC_MODULE_ENABLED */ |
|
|
|
|
|
|
|
/* ########################## HSE/HSI Values adaptation ##################### */ |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Adjust the value of External High Speed oscillator (HSE) used in your application. |
|
|
|
* This value is used by the RCC HAL module to compute the system frequency |
|
|
|
* (when HSE is used as system clock source, directly or through the PLL). |
|
|
@ -95,7 +95,7 @@ extern "C" { |
|
|
|
#define HSE_STARTUP_TIMEOUT ((uint32_t)100U) /*!< Time out for HSE start up, in ms */ |
|
|
|
#endif /* HSE_STARTUP_TIMEOUT */ |
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Internal High Speed oscillator (HSI) value. |
|
|
|
* This value is used by the RCC HAL module to compute the system frequency |
|
|
|
* (when HSI is used as system clock source, directly or through the PLL). |
|
|
@ -104,7 +104,7 @@ extern "C" { |
|
|
|
#define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/ |
|
|
|
#endif /* HSI_VALUE */ |
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Internal Low Speed oscillator (LSI) value. |
|
|
|
*/ |
|
|
|
#if !defined (LSI_VALUE) |
|
|
@ -112,7 +112,7 @@ extern "C" { |
|
|
|
#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz |
|
|
|
The real value may vary depending on the variations |
|
|
|
in voltage and temperature.*/ |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief External Low Speed oscillator (LSE) value. |
|
|
|
*/ |
|
|
|
#if !defined (LSE_VALUE) |
|
|
@ -123,7 +123,7 @@ in voltage and temperature.*/ |
|
|
|
#define LSE_STARTUP_TIMEOUT ((uint32_t)5000U) /*!< Time out for LSE start up, in ms */ |
|
|
|
#endif /* LSE_STARTUP_TIMEOUT */ |
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief External clock source for I2S peripheral |
|
|
|
* This value is used by the I2S HAL module to compute the I2S clock source |
|
|
|
* frequency, this source is inserted directly through I2S_CKIN pad. |
|
|
@ -136,7 +136,7 @@ in voltage and temperature.*/ |
|
|
|
=== you can define the HSE value in your toolchain compiler preprocessor. */ |
|
|
|
|
|
|
|
/* ########################### System Configuration ######################### */ |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief This is the HAL system configuration section |
|
|
|
*/ |
|
|
|
#define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */ |
|
|
@ -186,7 +186,7 @@ in voltage and temperature.*/ |
|
|
|
#define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */ |
|
|
|
|
|
|
|
/* ########################## Assert Selection ############################## */ |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Uncomment the line below to expanse the "assert_param" macro in the |
|
|
|
* HAL drivers code |
|
|
|
*/ |
|
|
@ -258,7 +258,7 @@ in voltage and temperature.*/ |
|
|
|
#define USE_SPI_CRC 0U |
|
|
|
|
|
|
|
/* Includes ------------------------------------------------------------------*/ |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Include module's header file |
|
|
|
*/ |
|
|
|
|
|
|
@ -456,7 +456,7 @@ in voltage and temperature.*/ |
|
|
|
|
|
|
|
/* Exported macro ------------------------------------------------------------*/ |
|
|
|
#ifdef USE_FULL_ASSERT |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief The assert_param macro is used for function's parameters check. |
|
|
|
* @param expr: If expr is false, it calls assert_failed function |
|
|
|
* which reports the name of the source file and the source |
|
|
|