Skip to content

Commit 41189f2

Browse files
committed
remove unneeded typedefs
1 parent d9661f9 commit 41189f2

File tree

33 files changed

+104
-209
lines changed

33 files changed

+104
-209
lines changed

Danger_ADB/main.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ int16_t main(void)
9797

9898
xTaskCreate(
9999
TaskBlinkYellowLED
100-
, (const portCHAR *)"YellowLED"
100+
, (const char *)"YellowLED"
101101
, 168 // tested 2 free
102102
, NULL
103103
, 2
104104
, NULL );
105105

106106
xTaskCreate(
107107
TaskADB
108-
, (const portCHAR *)"ADB"
108+
, (const char *)"ADB"
109109
, 1024
110110
, NULL
111111
, 1
@@ -114,7 +114,7 @@ int16_t main(void)
114114

115115
/* xTaskCreate(
116116
TaskWrite7SEG
117-
, (const portCHAR *)"Write7SEG"
117+
, (const char *)"Write7SEG"
118118
, 168 // tested 4 free
119119
, NULL
120120
, 3
@@ -342,7 +342,7 @@ static void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t latchPin, uint8_
342342
/*-----------------------------------------------------------*/
343343

344344
void vApplicationStackOverflowHook( TaskHandle_t xTask,
345-
portCHAR *pcTaskName )
345+
char *pcTaskName )
346346
{
347347

348348
DDRB |= _BV(DDB7);

Danger_HID/main.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,15 @@ int16_t main(void)
215215

216216
xTaskCreate(
217217
TaskBlinkYellowLED
218-
, (const portCHAR *)"YellowLED"
218+
, (const char *)"YellowLED"
219219
, 168 // tested 2 free
220220
, NULL
221221
, 2
222222
, NULL );
223223

224224
xTaskCreate(
225225
TaskHID
226-
, (const portCHAR *)"HID"
226+
, (const char *)"HID"
227227
, 1024
228228
, NULL
229229
, 1
@@ -232,7 +232,7 @@ int16_t main(void)
232232

233233
/* xTaskCreate(
234234
TaskWrite7SEG
235-
, (const portCHAR *)"Write7SEG"
235+
, (const char *)"Write7SEG"
236236
, 168 // tested 4 free
237237
, NULL
238238
, 3
@@ -448,7 +448,7 @@ static void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t latchPin, uint8_
448448
/*-----------------------------------------------------------*/
449449

450450
void vApplicationStackOverflowHook( TaskHandle_t xTask,
451-
portCHAR *pcTaskName )
451+
char *pcTaskName )
452452
{
453453

454454
DDRB |= _BV(DDB7);

DogBot/main.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int16_t main(void)
6666

6767
xTaskCreate(
6868
TaskBlinkGreenLED
69-
, (const portCHAR *)"GreenLED"
69+
, (const char *)"GreenLED"
7070
, 128
7171
, NULL
7272
, 3
@@ -75,7 +75,7 @@ int16_t main(void)
7575

7676
xTaskCreate(
7777
TaskNavigation
78-
, (const portCHAR *)"Navigation"
78+
, (const char *)"Navigation"
7979
, 128
8080
, NULL
8181
, 2
@@ -84,23 +84,23 @@ int16_t main(void)
8484

8585
xTaskCreate(
8686
TaskReadADCSensors
87-
, (const portCHAR *)"ReadADCSensors"
87+
, (const char *)"ReadADCSensors"
8888
, 128
8989
, NULL
9090
, 1
9191
, NULL );
9292

9393
/* xTaskCreate(
9494
TaskReadI2CThermopile
95-
, (const portCHAR *)"ReadI2CThermopile"
95+
, (const char *)"ReadI2CThermopile"
9696
, 128
9797
, NULL
9898
, 2
9999
, NULL ); */
100100

101101
xTaskCreate(
102102
TaskReadI2CSonar
103-
, (const portCHAR *)"ReadI2CSonar"
103+
, (const char *)"ReadI2CSonar"
104104
, 128
105105
, NULL
106106
, 1
@@ -109,31 +109,31 @@ int16_t main(void)
109109

110110
xTaskCreate(
111111
TaskWriteAnalogLCD
112-
, (const portCHAR *)"WriteAnalogLCD"
112+
, (const char *)"WriteAnalogLCD"
113113
, 128
114114
, NULL
115115
, 2
116116
, NULL );
117117

118118
xTaskCreate(
119119
TaskWriteSonarLCD
120-
, (const portCHAR *)"WriteSonarLCD"
120+
, (const char *)"WriteSonarLCD"
121121
, 128
122122
, NULL
123123
, 2
124124
, NULL );
125125

126126
/* xTaskCreate(
127127
TaskWriteThermopileLCD
128-
, (const portCHAR *)"WriteThermopileLCD"
128+
, (const char *)"WriteThermopileLCD"
129129
, 128
130130
, NULL
131131
, 3
132132
, NULL ); */
133133

134134
xTaskCreate(
135135
TaskTransport
136-
, (const portCHAR *)"TransportManagement"
136+
, (const char *)"TransportManagement"
137137
, 128
138138
, NULL
139139
, 2

FRAMTest/main.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static FILINFO Finfo;
8080

8181
static FATFS Fatfs[_VOLUMES]; /* File system object for each logical drive */
8282
static FIL File[_FS_LOCK]; /* File object. there are _FS_LOCK file objects available, >= 2. */
83-
83+
8484

8585
/*-----------------------------------------------------------*/
8686
// Task Definitions. Only two tasks here currently.
@@ -123,15 +123,15 @@ int main(void)
123123

124124
xTaskCreate(
125125
TaskBlinkRedLED
126-
, (const portCHAR *)"RedLED" // Arduino Mega 2560, Freetronics EtherMega (Red) LED Blink
126+
, (const char *)"RedLED" // Arduino Mega 2560, Freetronics EtherMega (Red) LED Blink
127127
, 256 // Tested ok at 188 for LED blink only.
128128
, NULL
129129
, 3
130130
, NULL ); // */
131131

132132
xTaskCreate(
133133
TaskSDMonitor
134-
, (const portCHAR *)"SDMonitor" // Arduino Mega 2560, Freetronics EtherMega SD Monitor
134+
, (const char *)"SDMonitor" // Arduino Mega 2560, Freetronics EtherMega SD Monitor
135135
, 1768 // Tested x free
136136
, NULL
137137
, 2
@@ -1570,7 +1570,7 @@ test_diskio (
15701570

15711571

15721572
void vApplicationStackOverflowHook( TaskHandle_t xTask,
1573-
portCHAR *pcTaskName )
1573+
char *pcTaskName )
15741574
{
15751575
/*---------------------------------------------------------------------------*\
15761576
Usage:

GA_Synth/main.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -162,23 +162,23 @@ int main(void)
162162

163163
xTaskCreate(
164164
TaskWriteLCD
165-
, (const portCHAR *)"WriteLCD"
165+
, (const char *)"WriteLCD"
166166
, 400
167167
, NULL
168168
, 3
169169
, NULL ); // */
170170

171171
xTaskCreate(
172172
TaskMonitor
173-
, (const portCHAR *)"SerialMonitor"
173+
, (const char *)"SerialMonitor"
174174
, 480
175175
, NULL
176176
, 2
177177
, NULL ); // */
178178

179179
xTaskCreate(
180180
TaskAnalogue
181-
, (const portCHAR *) "Analogue"
181+
, (const char *) "Analogue"
182182
, 96
183183
, NULL
184184
, 1

GA_TestSuite/main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int main(void)
7777

7878
xTaskCreate(
7979
TaskBlinkRedLED
80-
, (const portCHAR *)"RedLED" // Main Arduino Mega 2560, Freetronics EtherMega (Red) LED Blink
80+
, (const char *)"RedLED" // Main Arduino Mega 2560, Freetronics EtherMega (Red) LED Blink
8181
, 256 // Tested 9 free @ 208
8282
, NULL
8383
, 1
@@ -86,7 +86,7 @@ int main(void)
8686

8787
xTaskCreate(
8888
TaskAnalogue
89-
, (const portCHAR *) "Analogue"
89+
, (const char *) "Analogue"
9090
, 256 // This stack size can be checked & adjusted by reading Highwater
9191
, NULL
9292
, 1

GA_WalkieTalkie/main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ int main(void)
8383

8484
xTaskCreate(
8585
TaskBlinkRedLED
86-
, (const portCHAR *)"RedLED" // LED Blink
86+
, (const char *)"RedLED" // LED Blink
8787
, 256 // Tested 9 free @ 208
8888
, NULL
8989
, 1
@@ -92,7 +92,7 @@ int main(void)
9292

9393
xTaskCreate(
9494
TaskWalkieTalkie
95-
, (const portCHAR *) "WalkieTalkie"
95+
, (const char *) "WalkieTalkie"
9696
, 1024 // This stack size can be checked & adjusted by reading Highwater
9797
, NULL
9898
, 3

Gameduino2/main.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ int main(void)
8787

8888
xTaskCreate(
8989
TaskWriteLCD
90-
, (const portCHAR *)"WriteLCD"
90+
, (const char *)"WriteLCD"
9191
, 512 // measured 73 free stack bytes
9292
, (void *)0
9393
, 3
9494
, (void *)0 ); // */
9595

9696
xTaskCreate(
9797
TaskMonitor
98-
, (const portCHAR *)"SerialMonitor"
98+
, (const char *)"SerialMonitor"
9999
, 512 // measured 124 free stack bytes
100100
, (void *)0
101101
, 2
@@ -675,7 +675,7 @@ void get_line (uint8_t *buff, uint8_t len)
675675

676676

677677
void vApplicationStackOverflowHook( TaskHandle_t xTask,
678-
portCHAR *pcTaskName )
678+
char *pcTaskName )
679679
{
680680
/*---------------------------------------------------------------------------*\
681681
Usage:

Gameduino2_blobs/main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int main(void)
3737
{
3838
xTaskCreate( // create a task to write on the Gameduino 2 LCD
3939
TaskWriteLCD
40-
, (const portCHAR *)"WriteLCD"
40+
, (const char *)"WriteLCD"
4141
, 128 // number of bytes for the task stack
4242
, NULL
4343
, 3 // priority of task (1 is highest priority, 4 lowest).
@@ -134,7 +134,7 @@ static void TaskWriteLCD(void *pvParameters) // A Task to write to Gameduino 2 L
134134
This routine is referenced in the task.c file of FreeRTOS as an extern.
135135
\*-----------------------------------------------------------*/
136136
void vApplicationStackOverflowHook( TaskHandle_t xTask,
137-
portCHAR *pcTaskName )
137+
char *pcTaskName )
138138
{
139139
DDRB |= _BV(DDB5);
140140
PORTB |= _BV(PORTB5); // main (red PB5) LED on. Turn Arduino LED on, and die.

Gameduino2_helloworld/main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main(void)
3030
{
3131
xTaskCreate( // create a task to write on the Gameduino 2 LCD
3232
TaskWriteLCD
33-
, (const portCHAR *)"WriteLCD"
33+
, (const char *)"WriteLCD"
3434
, 128 // number of bytes for the task stack
3535
, NULL
3636
, 3 // priority of task (1 is highest priority, 4 lowest).
@@ -88,7 +88,7 @@ static void TaskWriteLCD(void *pvParameters) // A Task to write to Gameduino 2 L
8888
This routine is referenced in the task.c file of FreeRTOS as an extern.
8989
\*-----------------------------------------------------------*/
9090
void vApplicationStackOverflowHook( TaskHandle_t xTask,
91-
portCHAR *pcTaskName )
91+
char *pcTaskName )
9292
{
9393
DDRB |= _BV(DDB5);
9494
PORTB |= _BV(PORTB5); // main (red PB5) LED on. Turn Arduino LED on, and die.

0 commit comments

Comments
 (0)