Skip to content

Commit fbaecd2

Browse files
committed
Fix CMSIS-RTOS2 example compilation by NXP compiler.
1 parent 0112e3f commit fbaecd2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

build/example/blinky_c-cmsis-rtos2/example.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void signal_func (osThreadId_t tid) {
7373
/*----------------------------------------------------------------------------
7474
* Thread 1 'phaseA': Phase A output
7575
*---------------------------------------------------------------------------*/
76-
void phaseA (void */*argument*/) {
76+
void phaseA (void *argument) {
7777
for (;;) {
7878
osThreadFlagsWait(0x0001, osFlagsWaitAny ,osWaitForever); /* wait for an event flag 0x0001 */
7979
Switch_On(0);
@@ -87,7 +87,7 @@ void phaseA (void */*argument*/) {
8787
/*----------------------------------------------------------------------------
8888
* Thread 2 'phaseB': Phase B output
8989
*---------------------------------------------------------------------------*/
90-
void phaseB (void */*argument*/) {
90+
void phaseB (void *argument) {
9191
for (;;) {
9292
osThreadFlagsWait(0x0001, osFlagsWaitAny, osWaitForever); /* wait for an event flag 0x0001 */
9393
Switch_On(1);
@@ -101,7 +101,7 @@ void phaseB (void */*argument*/) {
101101
/*----------------------------------------------------------------------------
102102
* Thread 3 'phaseC': Phase C output
103103
*---------------------------------------------------------------------------*/
104-
void phaseC (void */*argument*/) {
104+
void phaseC (void *argument) {
105105
for (;;) {
106106
osThreadFlagsWait(0x0001, osFlagsWaitAny, osWaitForever); /* wait for an event flag 0x0001 */
107107
Switch_On(2);
@@ -115,7 +115,7 @@ void phaseC (void */*argument*/) {
115115
/*----------------------------------------------------------------------------
116116
* Thread 4 'phaseD': Phase D output
117117
*---------------------------------------------------------------------------*/
118-
void phaseD (void */*argument*/) {
118+
void phaseD (void *argument) {
119119
for (;;) {
120120
osThreadFlagsWait(0x0001, osFlagsWaitAny, osWaitForever); /* wait for an event flag 0x0001 */
121121
Switch_On(3);
@@ -129,7 +129,7 @@ void phaseD (void */*argument*/) {
129129
/*----------------------------------------------------------------------------
130130
* Thread 5 'clock': Signal Clock
131131
*---------------------------------------------------------------------------*/
132-
void clock (void */*argument*/) {
132+
void clock (void *argument) {
133133
for (;;) {
134134
osThreadFlagsWait(0x0100, osFlagsWaitAny, osWaitForever); /* wait for an event flag 0x0100 */
135135
osDelay(80); /* delay 80ms */
@@ -139,7 +139,7 @@ void clock (void */*argument*/) {
139139
/*----------------------------------------------------------------------------
140140
* Main: Initialize and start RTX Kernel
141141
*---------------------------------------------------------------------------*/
142-
void app_main (void */*argument*/) {
142+
void app_main (void *argument) {
143143

144144
tid_phaseA = osThreadNew(phaseA, NULL, NULL);
145145
tid_phaseB = osThreadNew(phaseB, NULL, NULL);

0 commit comments

Comments
 (0)