From bfa49e1ea07bc3fa44dc41d7ca7c8430fb145bfc Mon Sep 17 00:00:00 2001 From: Phillip Stevens Date: Sat, 11 Apr 2020 20:44:12 +1000 Subject: [PATCH] ATmegaxxxx - whitespace --- portable/GCC/ATmegaxxxx/port.c | 1 - portable/GCC/ATmegaxxxx/portmacro.h | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/portable/GCC/ATmegaxxxx/port.c b/portable/GCC/ATmegaxxxx/port.c index 59615162a..47dc58d2b 100644 --- a/portable/GCC/ATmegaxxxx/port.c +++ b/portable/GCC/ATmegaxxxx/port.c @@ -559,7 +559,6 @@ uint16_t usAddress; * In order to do this properly, we would need to get a full 3-byte pointer to * pxCode. That requires a change to GCC. Not likely to happen any time soon. */ - *pxTopOfStack = 0; pxTopOfStack--; #endif diff --git a/portable/GCC/ATmegaxxxx/portmacro.h b/portable/GCC/ATmegaxxxx/portmacro.h index a9ac7b633..ad92b0858 100644 --- a/portable/GCC/ATmegaxxxx/portmacro.h +++ b/portable/GCC/ATmegaxxxx/portmacro.h @@ -43,6 +43,7 @@ extern "C" { */ /* Type definitions. */ + #define portCHAR char #define portFLOAT float #define portDOUBLE double @@ -63,6 +64,7 @@ typedef uint8_t UBaseType_t; /*-----------------------------------------------------------*/ /* Critical section management. */ + #define portENTER_CRITICAL() __asm__ __volatile__ ( \ "in __tmp_reg__, __SREG__" "\n\t" \ "cli" "\n\t" \ @@ -118,7 +120,7 @@ typedef uint8_t UBaseType_t; #if defined( portUSE_WDTO ) #define portTICK_PERIOD_MS ( (TickType_t) _BV( portUSE_WDTO + 4 ) ) #else -#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) +#define portTICK_PERIOD_MS ( (TickType_t) 1000 / configTICK_RATE_HZ ) #endif #define portBYTE_ALIGNMENT 1