Skip to content

Commit 3100f58

Browse files
committed
remove unneded typedefs
1 parent a73e898 commit 3100f58

File tree

7 files changed

+14
-21
lines changed

7 files changed

+14
-21
lines changed

examples/AnalogRead_DigitalRead/AnalogRead_DigitalRead.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ void setup() {
3232
// Now set up two Tasks to run independently.
3333
xTaskCreate(
3434
TaskDigitalRead
35-
, (const portCHAR *)"DigitalRead" // A name just for humans
35+
, "DigitalRead" // A name just for humans
3636
, 128 // This stack size can be checked & adjusted by reading the Stack Highwater
3737
, NULL
3838
, 2 // Priority, with 3 (configMAX_PRIORITIES - 1) being the highest, and 0 being the lowest.
3939
, NULL );
4040

4141
xTaskCreate(
4242
TaskAnalogRead
43-
, (const portCHAR *) "AnalogRead"
43+
, "AnalogRead"
4444
, 128 // Stack size
4545
, NULL
4646
, 1 // Priority

examples/Blink_AnalogRead/Blink_AnalogRead.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ void setup() {
1717
// Now set up two tasks to run independently.
1818
xTaskCreate(
1919
TaskBlink
20-
, (const portCHAR *)"Blink" // A name just for humans
20+
, "Blink" // A name just for humans
2121
, 128 // This stack size can be checked & adjusted by reading the Stack Highwater
2222
, NULL
2323
, 2 // Priority, with 3 (configMAX_PRIORITIES - 1) being the highest, and 0 being the lowest.
2424
, NULL );
2525

2626
xTaskCreate(
2727
TaskAnalogRead
28-
, (const portCHAR *) "AnalogRead"
28+
, "AnalogRead"
2929
, 128 // Stack size
3030
, NULL
3131
, 1 // Priority

examples/GoldilocksAnalogueTestSuite/GoldilocksAnalogueTestSuite.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ void setup() {
178178
// Now set up two tasks to help us with testing.
179179
xTaskCreate(
180180
TaskReport
181-
, (const portCHAR *)"RedLED" // report reguarly on the status of its stack and the tick values.
181+
, "RedLED" // report reguarly on the status of its stack and the tick values.
182182
, 256 // Stack size
183183
, NULL
184184
, 2 // priority
185185
, NULL ); // */
186186

187187
xTaskCreate(
188188
TaskAnalogue
189-
, (const portCHAR *) "Analogue"
189+
, "Analogue"
190190
, 256 // This stack size can be checked & adjusted by reading Highwater
191191
, NULL
192192
, 1 // priority

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=FreeRTOS
2-
version=10.3.0-2
2+
version=10.3.0-3
33
author=Richard Barry <info@freertos.org>
44
maintainer=Phillip Stevens <phillip.stevens@gmail.com>
55
sentence=Real Time Operating System implemented for AVR (Uno, Leonardo, Mega).

src/FreeRTOSVariant.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void initVariant(void);
6161
void vApplicationIdleHook( void );
6262

6363
void vApplicationMallocFailedHook( void );
64-
void vApplicationStackOverflowHook( TaskHandle_t xTask, portCHAR *pcTaskName );
64+
void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName );
6565

6666
void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer,
6767
StackType_t **ppxIdleTaskStackBuffer,

src/portmacro.h

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,10 @@ extern "C" {
4343
*/
4444

4545
/* Type definitions. */
46-
#define portCHAR char
47-
#define portFLOAT float
48-
#define portDOUBLE double
49-
#define portLONG long
50-
#define portSHORT int
51-
#define portSTACK_TYPE uint8_t
52-
#define portBASE_TYPE uint8_t
53-
54-
typedef portSTACK_TYPE StackType_t;
55-
typedef signed char BaseType_t;
56-
typedef unsigned char UBaseType_t;
46+
47+
typedef uint8_t StackType_t;
48+
typedef int8_t BaseType_t;
49+
typedef uint8_t UBaseType_t;
5750

5851
#if configUSE_16_BIT_TICKS == 1
5952
typedef uint16_t TickType_t;

src/variantHooks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ void vApplicationMallocFailedHook( void )
155155
This routine will never return.
156156
This routine is referenced in the task.c file of FreeRTOS as an extern.
157157
\*---------------------------------------------------------------------------*/
158-
void vApplicationStackOverflowHook( TaskHandle_t xTask, portCHAR *pcTaskName ) __attribute__((weak));
158+
void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ) __attribute__((weak));
159159

160-
void vApplicationStackOverflowHook( TaskHandle_t xTask __attribute__((unused)), portCHAR *pcTaskName __attribute__((unused)) )
160+
void vApplicationStackOverflowHook( TaskHandle_t xTask __attribute__((unused)), char *pcTaskName __attribute__((unused)) )
161161
{
162162
#if defined(__AVR_ATmega640__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega2561__) // Arduino Mega with 2560
163163
DDRB |= _BV(DDB7);

0 commit comments

Comments
 (0)