Skip to content

Commit

Permalink
remove unneeded typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
feilipu committed Feb 24, 2020
1 parent d9661f9 commit 41189f2
Show file tree
Hide file tree
Showing 33 changed files with 104 additions and 209 deletions.
8 changes: 4 additions & 4 deletions Danger_ADB/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ int16_t main(void)

xTaskCreate(
TaskBlinkYellowLED
, (const portCHAR *)"YellowLED"
, (const char *)"YellowLED"
, 168 // tested 2 free
, NULL
, 2
, NULL );

xTaskCreate(
TaskADB
, (const portCHAR *)"ADB"
, (const char *)"ADB"
, 1024
, NULL
, 1
Expand All @@ -114,7 +114,7 @@ int16_t main(void)

/* xTaskCreate(
TaskWrite7SEG
, (const portCHAR *)"Write7SEG"
, (const char *)"Write7SEG"
, 168 // tested 4 free
, NULL
, 3
Expand Down Expand Up @@ -342,7 +342,7 @@ static void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t latchPin, uint8_
/*-----------------------------------------------------------*/

void vApplicationStackOverflowHook( TaskHandle_t xTask,
portCHAR *pcTaskName )
char *pcTaskName )
{

DDRB |= _BV(DDB7);
Expand Down
8 changes: 4 additions & 4 deletions Danger_HID/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ int16_t main(void)

xTaskCreate(
TaskBlinkYellowLED
, (const portCHAR *)"YellowLED"
, (const char *)"YellowLED"
, 168 // tested 2 free
, NULL
, 2
, NULL );

xTaskCreate(
TaskHID
, (const portCHAR *)"HID"
, (const char *)"HID"
, 1024
, NULL
, 1
Expand All @@ -232,7 +232,7 @@ int16_t main(void)

/* xTaskCreate(
TaskWrite7SEG
, (const portCHAR *)"Write7SEG"
, (const char *)"Write7SEG"
, 168 // tested 4 free
, NULL
, 3
Expand Down Expand Up @@ -448,7 +448,7 @@ static void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t latchPin, uint8_
/*-----------------------------------------------------------*/

void vApplicationStackOverflowHook( TaskHandle_t xTask,
portCHAR *pcTaskName )
char *pcTaskName )
{

DDRB |= _BV(DDB7);
Expand Down
18 changes: 9 additions & 9 deletions DogBot/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int16_t main(void)

xTaskCreate(
TaskBlinkGreenLED
, (const portCHAR *)"GreenLED"
, (const char *)"GreenLED"
, 128
, NULL
, 3
Expand All @@ -75,7 +75,7 @@ int16_t main(void)

xTaskCreate(
TaskNavigation
, (const portCHAR *)"Navigation"
, (const char *)"Navigation"
, 128
, NULL
, 2
Expand All @@ -84,23 +84,23 @@ int16_t main(void)

xTaskCreate(
TaskReadADCSensors
, (const portCHAR *)"ReadADCSensors"
, (const char *)"ReadADCSensors"
, 128
, NULL
, 1
, NULL );

/* xTaskCreate(
TaskReadI2CThermopile
, (const portCHAR *)"ReadI2CThermopile"
, (const char *)"ReadI2CThermopile"
, 128
, NULL
, 2
, NULL ); */

xTaskCreate(
TaskReadI2CSonar
, (const portCHAR *)"ReadI2CSonar"
, (const char *)"ReadI2CSonar"
, 128
, NULL
, 1
Expand All @@ -109,31 +109,31 @@ int16_t main(void)

xTaskCreate(
TaskWriteAnalogLCD
, (const portCHAR *)"WriteAnalogLCD"
, (const char *)"WriteAnalogLCD"
, 128
, NULL
, 2
, NULL );

xTaskCreate(
TaskWriteSonarLCD
, (const portCHAR *)"WriteSonarLCD"
, (const char *)"WriteSonarLCD"
, 128
, NULL
, 2
, NULL );

/* xTaskCreate(
TaskWriteThermopileLCD
, (const portCHAR *)"WriteThermopileLCD"
, (const char *)"WriteThermopileLCD"
, 128
, NULL
, 3
, NULL ); */

xTaskCreate(
TaskTransport
, (const portCHAR *)"TransportManagement"
, (const char *)"TransportManagement"
, 128
, NULL
, 2
Expand Down
8 changes: 4 additions & 4 deletions FRAMTest/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static FILINFO Finfo;

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



/*-----------------------------------------------------------*/
// Task Definitions. Only two tasks here currently.
Expand Down Expand Up @@ -123,15 +123,15 @@ int main(void)

xTaskCreate(
TaskBlinkRedLED
, (const portCHAR *)"RedLED" // Arduino Mega 2560, Freetronics EtherMega (Red) LED Blink
, (const char *)"RedLED" // Arduino Mega 2560, Freetronics EtherMega (Red) LED Blink
, 256 // Tested ok at 188 for LED blink only.
, NULL
, 3
, NULL ); // */

xTaskCreate(
TaskSDMonitor
, (const portCHAR *)"SDMonitor" // Arduino Mega 2560, Freetronics EtherMega SD Monitor
, (const char *)"SDMonitor" // Arduino Mega 2560, Freetronics EtherMega SD Monitor
, 1768 // Tested x free
, NULL
, 2
Expand Down Expand Up @@ -1570,7 +1570,7 @@ test_diskio (


void vApplicationStackOverflowHook( TaskHandle_t xTask,
portCHAR *pcTaskName )
char *pcTaskName )
{
/*---------------------------------------------------------------------------*\
Usage:
Expand Down
6 changes: 3 additions & 3 deletions GA_Synth/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,23 +162,23 @@ int main(void)

xTaskCreate(
TaskWriteLCD
, (const portCHAR *)"WriteLCD"
, (const char *)"WriteLCD"
, 400
, NULL
, 3
, NULL ); // */

xTaskCreate(
TaskMonitor
, (const portCHAR *)"SerialMonitor"
, (const char *)"SerialMonitor"
, 480
, NULL
, 2
, NULL ); // */

xTaskCreate(
TaskAnalogue
, (const portCHAR *) "Analogue"
, (const char *) "Analogue"
, 96
, NULL
, 1
Expand Down
4 changes: 2 additions & 2 deletions GA_TestSuite/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int main(void)

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

xTaskCreate(
TaskAnalogue
, (const portCHAR *) "Analogue"
, (const char *) "Analogue"
, 256 // This stack size can be checked & adjusted by reading Highwater
, NULL
, 1
Expand Down
4 changes: 2 additions & 2 deletions GA_WalkieTalkie/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ int main(void)

xTaskCreate(
TaskBlinkRedLED
, (const portCHAR *)"RedLED" // LED Blink
, (const char *)"RedLED" // LED Blink
, 256 // Tested 9 free @ 208
, NULL
, 1
Expand All @@ -92,7 +92,7 @@ int main(void)

xTaskCreate(
TaskWalkieTalkie
, (const portCHAR *) "WalkieTalkie"
, (const char *) "WalkieTalkie"
, 1024 // This stack size can be checked & adjusted by reading Highwater
, NULL
, 3
Expand Down
6 changes: 3 additions & 3 deletions Gameduino2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ int main(void)

xTaskCreate(
TaskWriteLCD
, (const portCHAR *)"WriteLCD"
, (const char *)"WriteLCD"
, 512 // measured 73 free stack bytes
, (void *)0
, 3
, (void *)0 ); // */

xTaskCreate(
TaskMonitor
, (const portCHAR *)"SerialMonitor"
, (const char *)"SerialMonitor"
, 512 // measured 124 free stack bytes
, (void *)0
, 2
Expand Down Expand Up @@ -675,7 +675,7 @@ void get_line (uint8_t *buff, uint8_t len)


void vApplicationStackOverflowHook( TaskHandle_t xTask,
portCHAR *pcTaskName )
char *pcTaskName )
{
/*---------------------------------------------------------------------------*\
Usage:
Expand Down
4 changes: 2 additions & 2 deletions Gameduino2_blobs/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int main(void)
{
xTaskCreate( // create a task to write on the Gameduino 2 LCD
TaskWriteLCD
, (const portCHAR *)"WriteLCD"
, (const char *)"WriteLCD"
, 128 // number of bytes for the task stack
, NULL
, 3 // priority of task (1 is highest priority, 4 lowest).
Expand Down Expand Up @@ -134,7 +134,7 @@ static void TaskWriteLCD(void *pvParameters) // A Task to write to Gameduino 2 L
This routine is referenced in the task.c file of FreeRTOS as an extern.
\*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( TaskHandle_t xTask,
portCHAR *pcTaskName )
char *pcTaskName )
{
DDRB |= _BV(DDB5);
PORTB |= _BV(PORTB5); // main (red PB5) LED on. Turn Arduino LED on, and die.
Expand Down
4 changes: 2 additions & 2 deletions Gameduino2_helloworld/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main(void)
{
xTaskCreate( // create a task to write on the Gameduino 2 LCD
TaskWriteLCD
, (const portCHAR *)"WriteLCD"
, (const char *)"WriteLCD"
, 128 // number of bytes for the task stack
, NULL
, 3 // priority of task (1 is highest priority, 4 lowest).
Expand Down Expand Up @@ -88,7 +88,7 @@ static void TaskWriteLCD(void *pvParameters) // A Task to write to Gameduino 2 L
This routine is referenced in the task.c file of FreeRTOS as an extern.
\*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( TaskHandle_t xTask,
portCHAR *pcTaskName )
char *pcTaskName )
{
DDRB |= _BV(DDB5);
PORTB |= _BV(PORTB5); // main (red PB5) LED on. Turn Arduino LED on, and die.
Expand Down
Loading

0 comments on commit 41189f2

Please sign in to comment.