Skip to content

Commit a41d1d6

Browse files
committed
Merge pull request #1449 from dbestm/dev_xxxx_xxx
I2C fixes, timeout for startup ~100/200
2 parents 936c576 + 035f3ec commit a41d1d6

File tree

31 files changed

+117
-26
lines changed

31 files changed

+117
-26
lines changed

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/system_stm32f0xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
*/
118118

119119
/* Select the clock sources (other than HSI) to start with (0=OFF, 1=ON) */
120-
#define USE_PLL_HSE_EXTC (1) /* Use external clock */
120+
#define USE_PLL_HSE_EXTC (0) /* Use external clock */
121121
#define USE_PLL_HSE_XTAL (0) /* Use external xtal */
122122

123123
/**

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
*/
118118

119119
/* Select the clock sources (other than HSI) to start with (0=OFF, 1=ON) */
120-
#define USE_PLL_HSE_EXTC (1) /* Use external clock */
120+
#define USE_PLL_HSE_EXTC (0) /* Use external clock */
121121
#define USE_PLL_HSE_XTAL (0) /* Use external xtal */
122122

123123
/**

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_conf.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
* Timeout value
9494
*/
9595
#if !defined (HSE_STARTUP_TIMEOUT)
96-
#define HSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for HSE start up, in ms */
96+
#define HSE_STARTUP_TIMEOUT ((uint32_t)200) /*!< Time out for HSE start up, in ms */
9797
#endif /* HSE_STARTUP_TIMEOUT */
9898

9999
/**
@@ -110,7 +110,7 @@
110110
* Timeout value
111111
*/
112112
#if !defined (HSI_STARTUP_TIMEOUT)
113-
#define HSI_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for HSI start up */
113+
#define HSI_STARTUP_TIMEOUT ((uint32_t)100) /*!< Time out for HSI start up */
114114
#endif /* HSI_STARTUP_TIMEOUT */
115115

116116
/**
@@ -147,7 +147,7 @@
147147
#endif /* LSE_VALUE */
148148

149149
#if !defined (LSE_STARTUP_TIMEOUT)
150-
#define LSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for LSE start up, in ms */
150+
#define LSE_STARTUP_TIMEOUT ((uint32_t)100) /*!< Time out for LSE start up, in ms */
151151
#endif /* HSE_STARTUP_TIMEOUT */
152152

153153

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
#endif /* HSE_VALUE */
100100

101101
#if !defined (HSE_STARTUP_TIMEOUT)
102-
#define HSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for HSE start up, in ms */
102+
#define HSE_STARTUP_TIMEOUT ((uint32_t)200) /*!< Time out for HSE start up, in ms */
103103
#endif /* HSE_STARTUP_TIMEOUT */
104104

105105
/**
@@ -121,7 +121,7 @@
121121

122122

123123
#if !defined (LSE_STARTUP_TIMEOUT)
124-
#define LSE_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for LSE start up, in ms */
124+
#define LSE_STARTUP_TIMEOUT ((uint32_t)100) /*!< Time out for LSE start up, in ms */
125125
#endif /* HSE_STARTUP_TIMEOUT */
126126

127127

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/system_stm32f3xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@
125125
*/
126126

127127
/* Select the clock sources (other than HSI) to start with (0=OFF, 1=ON) */
128-
#define USE_PLL_HSE_EXTC (1) /* Use external clock */
129-
#define USE_PLL_HSE_XTAL (1) /* Use external xtal */
128+
#define USE_PLL_HSE_EXTC (0) /* Use external clock */
129+
#define USE_PLL_HSE_XTAL (0) /* Use external xtal */
130130

131131
/**
132132
* @}

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
* Timeout value
101101
*/
102102
#if !defined (HSE_STARTUP_TIMEOUT)
103-
#define HSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for HSE start up, in ms */
103+
#define HSE_STARTUP_TIMEOUT ((uint32_t)200) /*!< Time out for HSE start up, in ms */
104104
#endif /* HSE_STARTUP_TIMEOUT */
105105

106106
/**
@@ -117,7 +117,7 @@
117117
* Timeout value
118118
*/
119119
#if !defined (HSI_STARTUP_TIMEOUT)
120-
#define HSI_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for HSI start up */
120+
#define HSI_STARTUP_TIMEOUT ((uint32_t)100) /*!< Time out for HSI start up */
121121
#endif /* HSI_STARTUP_TIMEOUT */
122122

123123
/**

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ typedef struct
164164
* @{
165165
*/
166166
/* LSE state change timeout */
167-
#define LSE_TIMEOUT_VALUE ((uint32_t)5000) /* 5 s */
167+
#define LSE_TIMEOUT_VALUE ((uint32_t)100) /* 5 s */
168168

169169
/* Disable Backup domain write protection state change timeout */
170170
#define DBP_TIMEOUT_VALUE ((uint32_t)100) /* 100 ms */

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7xx_hal_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
#endif /* HSE_VALUE */
107107

108108
#if !defined (HSE_STARTUP_TIMEOUT)
109-
#define HSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for HSE start up, in ms */
109+
#define HSE_STARTUP_TIMEOUT ((uint32_t)200) /*!< Time out for HSE start up, in ms */
110110
#endif /* HSE_STARTUP_TIMEOUT */
111111

112112
/**

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
#endif /* HSE_VALUE */
9595

9696
#if !defined (HSE_STARTUP_TIMEOUT)
97-
#define HSE_STARTUP_TIMEOUT ((uint32_t)50) /*!< Time out for HSE start up, in ms */
97+
#define HSE_STARTUP_TIMEOUT ((uint32_t)200) /*!< Time out for HSE start up, in ms */
9898
#endif /* HSE_STARTUP_TIMEOUT */
9999

100100
/**
@@ -123,7 +123,7 @@
123123

124124

125125
#if !defined (LSE_STARTUP_TIMEOUT)
126-
#define LSE_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for LSE start up, in ms */
126+
#define LSE_STARTUP_TIMEOUT ((uint32_t)100) /*!< Time out for LSE start up, in ms */
127127
#endif /* HSE_STARTUP_TIMEOUT */
128128

129129

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l1xx_hal_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
#endif /* HSE_VALUE */
9494

9595
#if !defined (HSE_STARTUP_TIMEOUT)
96-
#define HSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for HSE start up, in ms */
96+
#define HSE_STARTUP_TIMEOUT ((uint32_t)200) /*!< Time out for HSE start up, in ms */
9797
#endif /* HSE_STARTUP_TIMEOUT */
9898

9999
/**
@@ -122,7 +122,7 @@
122122

123123

124124
#if !defined (LSE_STARTUP_TIMEOUT)
125-
#define LSE_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for LSE start up, in ms */
125+
#define LSE_STARTUP_TIMEOUT ((uint32_t)100) /*!< Time out for LSE start up, in ms */
126126
#endif /* HSE_STARTUP_TIMEOUT */
127127

128128

0 commit comments

Comments
 (0)