Atmel Software Framework

tracedump.h File Reference
#include <avr32/io.h>
#include "FreeRTOS.h"

Macros

#define DUMP_FAILURE   -1
 
#define DUMP_SUCCESS   0
 
#define NAKED_TRACE_COM2(...)
 
#define TRACE_COM2(...)
 

Functions

int itracedump_Init (void)
 
int printk (const char *format,...)
 
unsigned portSHORT ustracedump_Print (const signed portCHAR *const pcString)
 
void v_tracedump_stopResources (void)
 Stop the tracedump module resources. More...
 
void vtracedump_PrintBlocking (const signed portCHAR *const pcString)
 
void vtracedump_Putchar (signed portCHAR cByte)
 Put a char to the dump port. More...
 
void vtracedump_Putchar_Block (signed portCHAR cByte)
 Put a char to the dump port. More...
 

#define DUMP_FAILURE   -1

Value returned by function when it was unable to complete successfully for some unspecified reason

Referenced by itracedump_Init().

#define DUMP_SUCCESS   0

Value returned by function when it completed successfully

Referenced by itracedump_Init().

int itracedump_Init ( void  )

This function initializes a dump port.

Returns
DUMP_SUCCESS or DUMP_FAILURE
Warning
FreeRTOS must already be up & running when calling this function.

This function initializes the dump port.

Returns
DUMP_SUCCESS or DUMP_FAILURE
Warning
FreeRTOS must already be up & running when calling this function.

References DUMP_FAILURE, DUMP_SUCCESS, dumpCOM2_BAUDRATE, dumpCOM2_BUFFER_LEN, serCOM2, TRACE_MSG_BANNER, vtracedump_PrintBlocking(), xComPort2Hndl, and xUsartInit().

Referenced by portTASK_FUNCTION().

unsigned portSHORT ustracedump_Print ( const signed portCHAR *const  pcString)

Send a string of characters to the dump port.

Parameters
pcStringThe string to dump
Returns
The number of characters that could not be sent.
Warning
FreeRTOS must already be up & running when calling this function.

References usUsartPutString(), and xComPort2Hndl.

void v_tracedump_stopResources ( void  )

Stop the tracedump module resources.

References vSerialClose(), and xComPort2Hndl.

Referenced by e_syscmds_reboot().

void vtracedump_PrintBlocking ( const signed portCHAR *const  pcString)

Send a string of characters to the dump port.

Parameters
pcStringThe string to dump
Warning
FreeRTOS must already be up & running when calling this function.

References usUsartPutString(), and xComPort2Hndl.

Referenced by itracedump_Init().

void vtracedump_Putchar ( signed portCHAR  cByte)

Put a char to the dump port.

Parameters
cByteThe character to put

References DUMPCOM2_NO_BLOCK, xComPort2Hndl, and xUsartPutChar().

void vtracedump_Putchar_Block ( signed portCHAR  cByte)

Put a char to the dump port.

Parameters
cByteThe character to put

References xComPort2Hndl, and xUsartPutChar().