Skip to content

Commit 0199392

Browse files
committed
Official release v11.3.0
1 parent 63a0a48 commit 0199392

File tree

4,169 files changed

+194377
-79244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,169 files changed

+194377
-79244
lines changed

Documentation/X_CUBE_MEMS1.chm

123 KB
Binary file not shown.

Drivers/BSP/Components/iis2dulpx/iis2dulpx.c

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ int32_t IIS2DULPX_RegisterBusIO(IIS2DULPX_Object_t *pObj, IIS2DULPX_IO_t *pIO)
126126
/* Exit from deep power down only the first time in SPI mode */
127127
if (IIS2DULPX_ExitDeepPowerDownSPI(pObj) != IIS2DULPX_OK)
128128
{
129-
/* Forced OK because of an expected failure during the wake-up sequence */
130-
ret = IIS2DULPX_OK;
129+
ret = IIS2DULPX_ERROR;
131130
}
132131
/* Enable SPI 3-Wires on the component */
133132
uint8_t data = 0x50;
@@ -145,8 +144,7 @@ int32_t IIS2DULPX_RegisterBusIO(IIS2DULPX_Object_t *pObj, IIS2DULPX_IO_t *pIO)
145144
{
146145
if (IIS2DULPX_ExitDeepPowerDownSPI(pObj) != IIS2DULPX_OK)
147146
{
148-
/* Forced OK because of an expected failure during the wake-up sequence */
149-
ret = IIS2DULPX_OK;
147+
ret = IIS2DULPX_ERROR;
150148
}
151149
}
152150
}
@@ -157,16 +155,13 @@ int32_t IIS2DULPX_RegisterBusIO(IIS2DULPX_Object_t *pObj, IIS2DULPX_IO_t *pIO)
157155
{
158156
if (IIS2DULPX_ExitDeepPowerDownI2C(pObj) != IIS2DULPX_OK)
159157
{
160-
pObj->Ctx.mdelay(100);
161-
162-
/* Forced OK because of an expected failure during the wake-up sequence */
163-
ret = IIS2DULPX_OK;
158+
ret = IIS2DULPX_ERROR;
164159
}
165160
}
166161
}
167162
else
168163
{
169-
/* Do nothing */
164+
ret = IIS2DULPX_ERROR;
170165
}
171166
}
172167
}
@@ -279,11 +274,9 @@ int32_t IIS2DULPX_ExitDeepPowerDownI2C(IIS2DULPX_Object_t *pObj)
279274
{
280275
uint8_t val;
281276

282-
/* Perform dummy read in order to exit from deep power down in I2C mode*/
283-
if (iis2dulpx_device_id_get(&(pObj->Ctx), &val) != IIS2DULPX_OK)
284-
{
285-
return IIS2DULPX_ERROR;
286-
}
277+
/* Perform dummy read in order to exit from deep power down in I2C mode.
278+
* NOTE: No return value check - expected first read fail. */
279+
(void)iis2dulpx_device_id_get(&(pObj->Ctx), &val);
287280

288281
/* Wait for 25 ms based on datasheet */
289282
pObj->Ctx.mdelay(25);

Drivers/BSP/Components/ism330bx/ism330bx.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,9 +1128,9 @@ int32_t ISM330BX_Write_Reg(ISM330BX_Object_t *pObj, uint8_t Reg, uint8_t Data)
11281128
*/
11291129
int32_t ISM330BX_ACC_Get_DRDY_Status(ISM330BX_Object_t *pObj, uint8_t *Status)
11301130
{
1131-
ism330bx_all_sources_t val;
1131+
ism330bx_data_ready_t val;
11321132

1133-
if (ism330bx_all_sources_get(&(pObj->Ctx), &val) != ISM330BX_OK)
1133+
if (ism330bx_flag_data_ready_get(&(pObj->Ctx), &val) != ISM330BX_OK)
11341134
{
11351135
return ISM330BX_ERROR;
11361136
}
@@ -1147,9 +1147,9 @@ int32_t ISM330BX_ACC_Get_DRDY_Status(ISM330BX_Object_t *pObj, uint8_t *Status)
11471147
*/
11481148
int32_t ISM330BX_GYRO_Get_DRDY_Status(ISM330BX_Object_t *pObj, uint8_t *Status)
11491149
{
1150-
ism330bx_all_sources_t val;
1150+
ism330bx_data_ready_t val;
11511151

1152-
if (ism330bx_all_sources_get(&(pObj->Ctx), &val) != ISM330BX_OK)
1152+
if (ism330bx_flag_data_ready_get(&(pObj->Ctx), &val) != ISM330BX_OK)
11531153
{
11541154
return ISM330BX_ERROR;
11551155
}

Drivers/BSP/Components/ism330dlc/Release_Notes.html

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ <h1 id="purpose">Purpose</h1>
4545
<section id="update-history" class="col-sm-12 col-lg-8">
4646
<h1>Update history</h1>
4747
<div class="collapse">
48-
<input type="checkbox" id="collapse-section11" checked aria-hidden="true">
49-
<label for="collapse-section11" aria-hidden="true">V1.6.0 /
50-
4-September-2024</label>
48+
<input type="checkbox" id="collapse-section12" checked aria-hidden="true">
49+
<label for="collapse-section12" aria-hidden="true">V1.6.1 /
50+
3-April-2025</label>
5151
<div>
5252
<h2 id="main-changes">Main changes</h2>
5353
<h3 id="maintenance-release">Maintenance release</h3>
@@ -58,138 +58,151 @@ <h2 id="section"></h2>
5858
</div>
5959
</div>
6060
<div class="collapse">
61+
<input type="checkbox" id="collapse-section11" aria-hidden="true">
62+
<label for="collapse-section11" aria-hidden="true">V1.6.0 /
63+
4-September-2024</label>
64+
<div>
65+
<h2 id="main-changes-1">Main changes</h2>
66+
<h3 id="maintenance-release-1">Maintenance release</h3>
67+
<ul>
68+
<li>Synchronized PID with currently latest version on ST GitHub</li>
69+
</ul>
70+
<h2 id="section-1"></h2>
71+
</div>
72+
</div>
73+
<div class="collapse">
6174
<input type="checkbox" id="collapse-section10" aria-hidden="true">
6275
<label for="collapse-section10" aria-hidden="true">V1.5.0 /
6376
4-June-2024</label>
6477
<div>
65-
<h2 id="main-changes-1">Main changes</h2>
66-
<h3 id="maintenance-release-1">Maintenance release</h3>
78+
<h2 id="main-changes-2">Main changes</h2>
79+
<h3 id="maintenance-release-2">Maintenance release</h3>
6780
<ul>
6881
<li>Add Memory bank function</li>
6982
</ul>
70-
<h2 id="section-1"></h2>
83+
<h2 id="section-2"></h2>
7184
</div>
7285
</div>
7386
<div class="collapse">
7487
<input type="checkbox" id="collapse-section9" aria-hidden="true">
7588
<label for="collapse-section9" aria-hidden="true">V1.4.1 /
7689
18-August-2023</label>
7790
<div>
78-
<h2 id="main-changes-2">Main changes</h2>
91+
<h2 id="main-changes-3">Main changes</h2>
7992
<h3 id="patch-release">Patch release</h3>
8093
<ul>
8194
<li>Synchronize PID with currently latest version on ST GitHub</li>
8295
</ul>
83-
<h2 id="section-2"></h2>
96+
<h2 id="section-3"></h2>
8497
</div>
8598
</div>
8699
<div class="collapse">
87100
<input type="checkbox" id="collapse-section8" aria-hidden="true">
88101
<label for="collapse-section8" aria-hidden="true">V1.4.0 /
89102
31-October-2022</label>
90103
<div>
91-
<h2 id="main-changes-3">Main changes</h2>
92-
<h3 id="maintenance-release-2">Maintenance release</h3>
104+
<h2 id="main-changes-4">Main changes</h2>
105+
<h3 id="maintenance-release-3">Maintenance release</h3>
93106
<ul>
94107
<li>Synchronized PID with currently latest version on ST GitHub</li>
95108
<li>Added Delay function</li>
96109
</ul>
97-
<h2 id="section-3"></h2>
110+
<h2 id="section-4"></h2>
98111
</div>
99112
</div>
100113
<div class="collapse">
101114
<input type="checkbox" id="collapse-section7" aria-hidden="true">
102115
<label for="collapse-section7" aria-hidden="true">V1.3.0 /
103116
23-March-2022</label>
104117
<div>
105-
<h2 id="main-changes-4">Main changes</h2>
106-
<h3 id="maintenance-release-3">Maintenance release</h3>
118+
<h2 id="main-changes-5">Main changes</h2>
119+
<h3 id="maintenance-release-4">Maintenance release</h3>
107120
<ul>
108121
<li>Synchronized PID with currently latest version on ST GitHub</li>
109122
</ul>
110-
<h2 id="section-4"></h2>
123+
<h2 id="section-5"></h2>
111124
</div>
112125
</div>
113126
<div class="collapse">
114127
<input type="checkbox" id="collapse-section6" aria-hidden="true">
115128
<label for="collapse-section6" aria-hidden="true">V1.2.1 /
116129
21-April-2021</label>
117130
<div>
118-
<h2 id="main-changes-5">Main changes</h2>
131+
<h2 id="main-changes-6">Main changes</h2>
119132
<h3 id="patch-release-1">Patch release</h3>
120133
<ul>
121134
<li>Update Release Notes to new format</li>
122135
</ul>
123-
<h2 id="section-5"></h2>
136+
<h2 id="section-6"></h2>
124137
</div>
125138
</div>
126139
<div class="collapse">
127140
<input type="checkbox" id="collapse-section5" aria-hidden="true">
128141
<label for="collapse-section5" aria-hidden="true">V1.2.0 /
129142
03-March-2021</label>
130143
<div>
131-
<h2 id="main-changes-6">Main changes</h2>
132-
<h3 id="maintenance-release-4">Maintenance release</h3>
144+
<h2 id="main-changes-7">Main changes</h2>
145+
<h3 id="maintenance-release-5">Maintenance release</h3>
133146
<ul>
134147
<li>Synchronize PID with latest version on ST GitHub</li>
135148
</ul>
136-
<h2 id="section-6"></h2>
149+
<h2 id="section-7"></h2>
137150
</div>
138151
</div>
139152
<div class="collapse">
140153
<input type="checkbox" id="collapse-section4" aria-hidden="true">
141154
<label for="collapse-section4" aria-hidden="true">V1.1.1 /
142155
13-November-2020</label>
143156
<div>
144-
<h2 id="main-changes-7">Main changes</h2>
157+
<h2 id="main-changes-8">Main changes</h2>
145158
<h3 id="patch-release-2">Patch release</h3>
146159
<ul>
147160
<li>Synchronize PID with latest version on ST GitHub and adapt HLD to
148161
it</li>
149162
</ul>
150-
<h2 id="section-7"></h2>
163+
<h2 id="section-8"></h2>
151164
</div>
152165
</div>
153166
<div class="collapse">
154167
<input type="checkbox" id="collapse-section3" aria-hidden="true">
155168
<label for="collapse-section3" aria-hidden="true">V1.1.0 /
156169
10-February-2020</label>
157170
<div>
158-
<h2 id="main-changes-8">Main changes</h2>
159-
<h3 id="maintenance-release-5">Maintenance release</h3>
171+
<h2 id="main-changes-9">Main changes</h2>
172+
<h3 id="maintenance-release-6">Maintenance release</h3>
160173
<ul>
161174
<li>Synchronize PID with latest version on ST GitHub and adapt HLD to
162175
it</li>
163176
</ul>
164-
<h2 id="section-8"></h2>
177+
<h2 id="section-9"></h2>
165178
</div>
166179
</div>
167180
<div class="collapse">
168181
<input type="checkbox" id="collapse-section2" aria-hidden="true">
169182
<label for="collapse-section2" aria-hidden="true">V1.0.1 /
170183
11-October-2019</label>
171184
<div>
172-
<h2 id="main-changes-9">Main changes</h2>
185+
<h2 id="main-changes-10">Main changes</h2>
173186
<h3 id="patch-release-3">Patch release</h3>
174187
<ul>
175188
<li>Rename context type to universal stmdev_ctx_t</li>
176189
<li>Move unions from PID to HLD</li>
177190
<li>Add new APIs</li>
178191
</ul>
179-
<h2 id="section-9"></h2>
192+
<h2 id="section-10"></h2>
180193
</div>
181194
</div>
182195
<div class="collapse">
183196
<input type="checkbox" id="collapse-section1" aria-hidden="true">
184197
<label for="collapse-section1" aria-hidden="true">V1.0.0 /
185198
28-March-2019</label>
186199
<div>
187-
<h2 id="main-changes-10">Main changes</h2>
200+
<h2 id="main-changes-11">Main changes</h2>
188201
<h3 id="first-release">First release</h3>
189202
<ul>
190203
<li>First official release</li>
191204
</ul>
192-
<h2 id="section-10"></h2>
205+
<h2 id="section-11"></h2>
193206
</div>
194207
</div>
195208
</section>

Drivers/BSP/Components/ism330dlc/ism330dlc_reg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ typedef struct
227227
#if DRV_BYTE_ORDER == DRV_LITTLE_ENDIAN
228228
uint8_t fth : 3; /* + FIFO_CTRL1(fth) */
229229
uint8_t fifo_temp_en : 1;
230-
uint8_t not_used_01 : 4;
230+
uint8_t not_used_01 : 3;
231231
uint8_t fifo_timer_en : 1;
232232
#elif DRV_BYTE_ORDER == DRV_BIG_ENDIAN
233233
uint8_t fifo_timer_en : 1;
234-
uint8_t not_used_01 : 4;
234+
uint8_t not_used_01 : 3;
235235
uint8_t fifo_temp_en : 1;
236236
uint8_t fth : 3; /* + FIFO_CTRL1(fth) */
237237
#endif /* DRV_BYTE_ORDER */

Drivers/BSP/Components/lis2dux12/lis2dux12.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ int32_t LIS2DUX12_RegisterBusIO(LIS2DUX12_Object_t *pObj, LIS2DUX12_IO_t *pIO)
126126
/* Exit from deep power down only the first time in SPI mode */
127127
if (LIS2DUX12_ExitDeepPowerDownSPI(pObj) != LIS2DUX12_OK)
128128
{
129-
/* Forced OK because of an expected failure during the wake-up sequence */
130-
ret = LIS2DUX12_OK;
129+
ret = LIS2DUX12_ERROR;
131130
}
132131
/* Enable SPI 3-Wires on the component */
133132
uint8_t data = 0x50;
@@ -145,8 +144,7 @@ int32_t LIS2DUX12_RegisterBusIO(LIS2DUX12_Object_t *pObj, LIS2DUX12_IO_t *pIO)
145144
{
146145
if (LIS2DUX12_ExitDeepPowerDownSPI(pObj) != LIS2DUX12_OK)
147146
{
148-
/* Forced OK because of an expected failure during the wake-up sequence */
149-
ret = LIS2DUX12_OK;
147+
ret = LIS2DUX12_ERROR;
150148
}
151149
}
152150
}
@@ -157,13 +155,14 @@ int32_t LIS2DUX12_RegisterBusIO(LIS2DUX12_Object_t *pObj, LIS2DUX12_IO_t *pIO)
157155
{
158156
if (LIS2DUX12_ExitDeepPowerDownI2C(pObj) != LIS2DUX12_OK)
159157
{
160-
pObj->Ctx.mdelay(100);
161-
162-
/* Forced OK because of an expected failure during the wake-up sequence */
163-
ret = LIS2DUX12_OK;
158+
ret = LIS2DUX12_ERROR;
164159
}
165160
}
166161
}
162+
else
163+
{
164+
ret = LIS2DUX12_ERROR;
165+
}
167166
}
168167
}
169168

@@ -275,7 +274,8 @@ int32_t LIS2DUX12_ExitDeepPowerDownI2C(LIS2DUX12_Object_t *pObj)
275274
{
276275
uint8_t val;
277276

278-
/* Perform dummy read in order to exit from deep power down in I2C mode*/
277+
/* Perform dummy read in order to exit from deep power down in I2C mode.
278+
* NOTE: No return value check - expected first read fail. */
279279
(void)lis2dux12_device_id_get(&(pObj->Ctx), &val);
280280

281281
/* Wait for 25 ms based on datasheet */

Drivers/BSP/Components/lis2duxs12/lis2duxs12.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ int32_t LIS2DUXS12_RegisterBusIO(LIS2DUXS12_Object_t *pObj, LIS2DUXS12_IO_t *pIO
126126
/* Exit from deep power down only the first time in SPI mode */
127127
if (LIS2DUXS12_ExitDeepPowerDownSPI(pObj) != LIS2DUXS12_OK)
128128
{
129-
/* Forced OK because of an expected failure during the wake-up sequence */
130-
ret = LIS2DUXS12_OK;
129+
ret = LIS2DUXS12_ERROR;
131130
}
132131
/* Enable SPI 3-Wires on the component */
133132
uint8_t data = 0x50;
@@ -145,8 +144,7 @@ int32_t LIS2DUXS12_RegisterBusIO(LIS2DUXS12_Object_t *pObj, LIS2DUXS12_IO_t *pIO
145144
{
146145
if (LIS2DUXS12_ExitDeepPowerDownSPI(pObj) != LIS2DUXS12_OK)
147146
{
148-
/* Forced OK because of an expected failure during the wake-up sequence */
149-
ret = LIS2DUXS12_OK;
147+
ret = LIS2DUXS12_ERROR;
150148
}
151149
}
152150
}
@@ -157,13 +155,14 @@ int32_t LIS2DUXS12_RegisterBusIO(LIS2DUXS12_Object_t *pObj, LIS2DUXS12_IO_t *pIO
157155
{
158156
if (LIS2DUXS12_ExitDeepPowerDownI2C(pObj) != LIS2DUXS12_OK)
159157
{
160-
pObj->Ctx.mdelay(100);
161-
162-
/* Forced OK because of an expected failure during the wake-up sequence */
163-
ret = LIS2DUXS12_OK;
158+
ret = LIS2DUXS12_ERROR;
164159
}
165160
}
166161
}
162+
else
163+
{
164+
ret = LIS2DUXS12_ERROR;
165+
}
167166
}
168167
}
169168

@@ -275,7 +274,8 @@ int32_t LIS2DUXS12_ExitDeepPowerDownI2C(LIS2DUXS12_Object_t *pObj)
275274
{
276275
uint8_t val;
277276

278-
/* Perform dummy read in order to exit from deep power down in I2C mode*/
277+
/* Perform dummy read in order to exit from deep power down in I2C mode.
278+
* NOTE: No return value check - expected first read fail. */
279279
(void)lis2duxs12_device_id_get(&(pObj->Ctx), &val);
280280

281281
/* Wait for 25 ms based on datasheet */

0 commit comments

Comments
 (0)