Skip to content

Commit cd0c9a9

Browse files
grdSTMActoryOu
andauthored
Pin port typo in logging.c (#103)
* Pin port typo in logging.c Upstream of a minor fix reported on a port to STM32H5: https://community.st.com/t5/stm32cubeide-mcus/led-gpio-bug-in-stm32cubeexpansion-cloud-aws-h5-v1-1-0-software/m-p/809421 B-U585I-IOT02A has both LED pins on the same GPIO port, so there is no functional impact on this specific board. * Fix manifest.yml * Fix spell check * Remove link-verifier, fix formatting and other CIs. * Revert build.yaml * Fix spell check. --------- Co-authored-by: ActoryOu <[email protected]>
1 parent c340252 commit cd0c9a9

File tree

6 files changed

+27
-25
lines changed

6 files changed

+27
-25
lines changed

.github/.cSpellWords.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ CDMF
2323
CECS
2424
CFGR
2525
CIER
26+
CLKSOURCE
2627
CMAC
2728
CMOCK
2829
CMSE
@@ -69,6 +70,7 @@ FORTEZZA
6970
FRACN
7071
FRACR
7172
FRCK
73+
FREERUNCLK
7274
Fithb
7375
Fqcumd
7476
GMAC
@@ -126,6 +128,8 @@ LPUART
126128
LPWORD
127129
LPWRRSTF
128130
LTDC
131+
LWIPOPTS
132+
LWIPERF
129133
LYNKS
130134
Lenx
131135
MBED
@@ -203,6 +207,8 @@ RDSR
203207
RECVMBOX
204208
RELAYX
205209
REXTI
210+
RINGCLKSOURCE
211+
RNGCLKSOURCE
206212
RRCC
207213
RSAES
208214
RSASSA
@@ -231,6 +237,8 @@ SSLV
231237
STLEXH
232238
STLK
233239
SYSCFGEN
240+
SYSCLK
241+
SYSCLKSOURCE
234242
Signa
235243
TCEM
236244
TKIP

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717

1818
jobs:
1919
formatting:
20-
runs-on: ubuntu-20.04
20+
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v3
2323
- name: Check Formatting of Files
@@ -33,14 +33,6 @@ jobs:
3333
- name: Run spellings check
3434
uses: FreeRTOS/CI-CD-Github-Actions/spellings@main
3535

36-
link-verifier:
37-
runs-on: ubuntu-latest
38-
steps:
39-
- name: Clone This Repo
40-
uses: actions/checkout@v3
41-
- name: Link Verification
42-
uses: FreeRTOS/CI-CD-Github-Actions/link-verifier@main
43-
4436
verify-manifest:
4537
runs-on: ubuntu-latest
4638
steps:
@@ -49,10 +41,18 @@ jobs:
4941
submodules: true
5042
fetch-depth: 0
5143

44+
# At time of writing the gitmodules are set not to pull
45+
# Even when using fetch submodules. Need to run this command
46+
# To force it to grab them.
47+
- name: Perform Recursive Clone
48+
shell: bash
49+
run: git submodule update --checkout --init --recursive
50+
5251
- name: Run manifest verifier
5352
uses: FreeRTOS/CI-CD-GitHub-Actions/manifest-verifier@main
5453
with:
5554
path: ./
55+
exclude-submodules: Drivers/BSP/Components/lsm6dso
5656
fail-on-incorrect-version: true
5757

5858
git-secrets:

Common/app/env_sensor_publish.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#define MQTT_PUBLISH_MAX_LEN ( 512 )
5959
#define MQTT_PUBLISH_TIME_BETWEEN_MS ( 1000 )
6060
#define MQTT_PUBLISH_TOPIC "env_sensor_data"
61-
#define MQTT_PUBLICH_TOPIC_STR_LEN ( 256 )
61+
#define MQTT_PUBLISH_TOPIC_STR_LEN ( 256 )
6262
#define MQTT_PUBLISH_BLOCK_TIME_MS ( 1000 )
6363
#define MQTT_PUBLISH_NOTIFICATION_WAIT_MS ( 1000 )
6464

@@ -246,7 +246,7 @@ void vEnvironmentSensorPublishTask( void * pvParameters )
246246
BaseType_t xExitFlag = pdFALSE;
247247
char payloadBuf[ MQTT_PUBLISH_MAX_LEN ];
248248
MQTTAgentHandle_t xAgentHandle = NULL;
249-
char pcTopicString[ MQTT_PUBLICH_TOPIC_STR_LEN ] = { 0 };
249+
char pcTopicString[ MQTT_PUBLISH_TOPIC_STR_LEN ] = { 0 };
250250
size_t uxTopicLen = 0;
251251

252252
( void ) pvParameters;
@@ -259,14 +259,14 @@ void vEnvironmentSensorPublishTask( void * pvParameters )
259259
vTaskDelete( NULL );
260260
}
261261

262-
uxTopicLen = KVStore_getString( CS_CORE_THING_NAME, pcTopicString, MQTT_PUBLICH_TOPIC_STR_LEN );
262+
uxTopicLen = KVStore_getString( CS_CORE_THING_NAME, pcTopicString, MQTT_PUBLISH_TOPIC_STR_LEN );
263263

264264
if( uxTopicLen > 0 )
265265
{
266-
uxTopicLen = strlcat( pcTopicString, "/" MQTT_PUBLISH_TOPIC, MQTT_PUBLICH_TOPIC_STR_LEN );
266+
uxTopicLen = strlcat( pcTopicString, "/" MQTT_PUBLISH_TOPIC, MQTT_PUBLISH_TOPIC_STR_LEN );
267267
}
268268

269-
if( ( uxTopicLen == 0 ) || ( uxTopicLen >= MQTT_PUBLICH_TOPIC_STR_LEN ) )
269+
if( ( uxTopicLen == 0 ) || ( uxTopicLen >= MQTT_PUBLISH_TOPIC_STR_LEN ) )
270270
{
271271
LogError( "Failed to construct topic string." );
272272
xExitFlag = pdTRUE;

Common/app/motion_sensors_publish.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
*/
6868
#define MQTT_PUBLISH_MAX_LEN ( 200 )
6969
#define MQTT_PUBLISH_PERIOD_MS ( 500 )
70-
#define MQTT_PUBLICH_TOPIC_STR_LEN ( 256 )
70+
#define MQTT_PUBLISH_TOPIC_STR_LEN ( 256 )
7171
#define MQTT_PUBLISH_BLOCK_TIME_MS ( 200 )
7272
#define MQTT_PUBLISH_NOTIFICATION_WAIT_MS ( 1000 )
7373
#define MQTT_NOTIFY_IDX ( 1 )
@@ -222,7 +222,7 @@ void vMotionSensorsPublish( void * pvParameters )
222222

223223
MQTTAgentHandle_t xAgentHandle = NULL;
224224
char pcPayloadBuf[ MQTT_PUBLISH_MAX_LEN ];
225-
char pcTopicString[ MQTT_PUBLICH_TOPIC_STR_LEN ] = { 0 };
225+
char pcTopicString[ MQTT_PUBLISH_TOPIC_STR_LEN ] = { 0 };
226226
char * pcDeviceId = NULL;
227227
int lTopicLen = 0;
228228

@@ -242,10 +242,10 @@ void vMotionSensorsPublish( void * pvParameters )
242242
}
243243
else
244244
{
245-
lTopicLen = snprintf( pcTopicString, ( size_t ) MQTT_PUBLICH_TOPIC_STR_LEN, "%s/motion_sensor_data", pcDeviceId );
245+
lTopicLen = snprintf( pcTopicString, ( size_t ) MQTT_PUBLISH_TOPIC_STR_LEN, "%s/motion_sensor_data", pcDeviceId );
246246
}
247247

248-
if( ( lTopicLen <= 0 ) || ( lTopicLen > MQTT_PUBLICH_TOPIC_STR_LEN ) )
248+
if( ( lTopicLen <= 0 ) || ( lTopicLen > MQTT_PUBLISH_TOPIC_STR_LEN ) )
249249
{
250250
LogError( "Error while constructing topic string." );
251251
xExitFlag = pdTRUE;

Common/cli/logging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void vDyingGasp( void )
7474
}
7575
while( xNumBytes != 0 );
7676

77-
HAL_GPIO_WritePin( LED_RED_GPIO_Port, LED_GREEN_Pin, GPIO_PIN_SET );
77+
HAL_GPIO_WritePin( LED_GREEN_GPIO_Port, LED_GREEN_Pin, GPIO_PIN_SET );
7878
HAL_GPIO_WritePin( LED_RED_GPIO_Port, LED_RED_Pin, GPIO_PIN_RESET );
7979
}
8080

manifest.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,6 @@ dependencies:
177177
type: "git"
178178
url: "https://github.com/STMicroelectronics/stm32-iis2mdc.git"
179179
path: "Drivers/BSP/Components/iis2mdc"
180-
- name : "stm32-lsm6dso"
181-
version: "v1.5.3"
182-
repository:
183-
type: "git"
184-
url: "https://github.com/STMicroelectronics/stm32-lsm6dso.git"
185-
path: "Drivers/BSP/Components/lsm6dso"
186180
- name : "stm32-lps22hh"
187181
version: "v1.2.0"
188182
repository:

0 commit comments

Comments
 (0)