mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-02 12:24:07 -04:00
Replace use of legacy portTYPE macros from old demos and standard demo files.
This commit is contained in:
parent
3e20aa7d60
commit
b54158d1dc
123 changed files with 736 additions and 736 deletions
|
@ -69,7 +69,7 @@ char Getch0( void ) /* waits for and returns incomming char */
|
|||
|
||||
void Puts0( const char *Name1 ) /* Puts a String to UART */
|
||||
{
|
||||
volatile portSHORT i, len;
|
||||
volatile short i, len;
|
||||
len = strlen( Name1 );
|
||||
|
||||
for( i = 0; i < len; i++ ) /* go through string */
|
||||
|
@ -85,7 +85,7 @@ void Puts0( const char *Name1 ) /* Puts a String to UART */
|
|||
|
||||
void Puthex0( unsigned long n, unsigned char digits )
|
||||
{
|
||||
unsigned portCHAR digit = 0, div = 0, i;
|
||||
unsigned char digit = 0, div = 0, i;
|
||||
|
||||
div = ( 4 * (digits - 1) ); /* init shift divisor */
|
||||
for( i = 0; i < digits; i++ )
|
||||
|
@ -98,8 +98,8 @@ void Puthex0( unsigned long n, unsigned char digits )
|
|||
|
||||
void Putdec0( unsigned long x, int digits )
|
||||
{
|
||||
portSHORT i;
|
||||
portCHAR buf[10], sign = 1;
|
||||
short i;
|
||||
char buf[10], sign = 1;
|
||||
|
||||
if( digits < 0 )
|
||||
{ /* should be print of zero? */
|
||||
|
@ -144,11 +144,11 @@ void vUtilityStartTraceTask( unsigned portBASE_TYPE uxPriority )
|
|||
|
||||
static void vUART0Task( void *pvParameters )
|
||||
{
|
||||
static portCHAR buff[ 800 ] = { 0 };
|
||||
unsigned portLONG trace_len;
|
||||
signed portLONG i, j, l = 0;
|
||||
static char buff[ 800 ] = { 0 };
|
||||
unsigned long trace_len;
|
||||
signed long i, j, l = 0;
|
||||
|
||||
unsigned portCHAR ch;
|
||||
unsigned char ch;
|
||||
( void ) pvParameters;
|
||||
|
||||
SSR0_RIE = 1;
|
||||
|
@ -221,7 +221,7 @@ static void vUART0Task( void *pvParameters )
|
|||
|
||||
__interrupt void UART0_TraceRxISR( void )
|
||||
{
|
||||
unsigned portCHAR ch;
|
||||
unsigned char ch;
|
||||
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||
|
||||
ch = RDR0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue