Browse Source

System configuration

Disable serial, enable I2C2, set clock source to HSI48.
Clara Hobbs 5 years ago
parent
commit
1ec5d16ac5
2 changed files with 5 additions and 5 deletions
  1. 2
    2
      halconf.h
  2. 3
    3
      mcuconf.h

+ 2
- 2
halconf.h View File

@@ -76,7 +76,7 @@
76 76
  * @brief   Enables the I2C subsystem.
77 77
  */
78 78
 #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
79
-#define HAL_USE_I2C                 FALSE
79
+#define HAL_USE_I2C                 TRUE
80 80
 #endif
81 81
 
82 82
 /**
@@ -132,7 +132,7 @@
132 132
  * @brief   Enables the SERIAL subsystem.
133 133
  */
134 134
 #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
135
-#define HAL_USE_SERIAL              TRUE
135
+#define HAL_USE_SERIAL              FALSE
136 136
 #endif
137 137
 
138 138
 /**

+ 3
- 3
mcuconf.h View File

@@ -41,11 +41,11 @@
41 41
 #define STM32_PLS                           STM32_PLS_LEV0
42 42
 #define STM32_HSI_ENABLED                   TRUE
43 43
 #define STM32_HSI14_ENABLED                 TRUE
44
-#define STM32_HSI48_ENABLED                 FALSE
44
+#define STM32_HSI48_ENABLED                 TRUE
45 45
 #define STM32_LSI_ENABLED                   TRUE
46 46
 #define STM32_HSE_ENABLED                   FALSE
47 47
 #define STM32_LSE_ENABLED                   FALSE
48
-#define STM32_SW                            STM32_SW_PLL
48
+#define STM32_SW                            STM32_SW_HSI48
49 49
 #define STM32_PLLSRC                        STM32_PLLSRC_HSI_DIV2
50 50
 #define STM32_PREDIV_VALUE                  1
51 51
 #define STM32_PLLMUL_VALUE                  12
@@ -116,7 +116,7 @@
116 116
  * I2C driver system settings.
117 117
  */
118 118
 #define STM32_I2C_USE_I2C1                  FALSE
119
-#define STM32_I2C_USE_I2C2                  FALSE
119
+#define STM32_I2C_USE_I2C2                  TRUE
120 120
 #define STM32_I2C_BUSY_TIMEOUT              50
121 121
 #define STM32_I2C_I2C1_IRQ_PRIORITY         3
122 122
 #define STM32_I2C_I2C2_IRQ_PRIORITY         3

Loading…
Cancel
Save