|
hdo
beta
|
Zobrazit zdrojový text tohoto souboru.
Definice maker | |
| #define | SOFTPACK_VERSION "1.5" |
| Softpack Version. | |
| #define | TRACE_LEVEL_DEBUG 5 |
| #define | TRACE_LEVEL_INFO 4 |
| #define | TRACE_LEVEL_WARNING 3 |
| #define | TRACE_LEVEL_ERROR 2 |
| #define | TRACE_LEVEL_FATAL 1 |
| #define | TRACE_LEVEL_NO_TRACE 0 |
| #define | TRACE_CONFIGURE(mode, baudrate, mck) |
| #define | TRACE_CONFIGURE_ISP(mode, baudrate, mck) |
| #define | TRACE_DEBUG(...) { } |
| #define | TRACE_DEBUG_WP(...) { } |
| #define | TRACE_INFO(...) { printf("-I- " __VA_ARGS__); } |
| #define | TRACE_INFO_WP(...) { printf(__VA_ARGS__); } |
| #define | TRACE_WARNING(...) { printf("-W- " __VA_ARGS__); } |
| #define | TRACE_WARNING_WP(...) { printf(__VA_ARGS__); } |
| #define | TRACE_ERROR(...) { printf("-E- " __VA_ARGS__); } |
| #define | TRACE_ERROR_WP(...) { printf(__VA_ARGS__); } |
| #define | TRACE_FATAL(...) { printf("-F- " __VA_ARGS__); while(1); } |
| #define | TRACE_FATAL_WP(...) { printf(__VA_ARGS__); while(1); } |
Purpose
Standard output methods for reporting debug information, warnings and errors, which can be easily be turned on/off.
Usage
Trace level description
Definice v souboru trace.h.
| #define TRACE_CONFIGURE | ( | mode, | |
| baudrate, | |||
| mck | |||
| ) |
{ \
const Pin pinsDbgu[] = {PINS_DBGU}; \
PIO_Configure(pinsDbgu, PIO_LISTSIZE(pinsDbgu)); \
DBGU_Configure(mode, baudrate, mck); \
}
Initializes the DBGU
| mode | DBGU mode. |
| baudrate | DBGU baudrate. |
| mck | Master clock frequency. |
Definice je uvedena na řádku 122 v souboru trace.h.
Používá se v main().
| #define TRACE_CONFIGURE_ISP | ( | mode, | |
| baudrate, | |||
| mck | |||
| ) |
{ \
const Pin pinsDbgu[] = {PINS_DBGU}; \
PIO_Configure(pinsDbgu, PIO_LISTSIZE(pinsDbgu)); \
DBGU_Configure(mode, baudrate, mck); \
}
Initializes the DBGU for ISP project
| mode | DBGU mode. |
| baudrate | DBGU baudrate. |
| mck | Master clock frequency. |
| #define TRACE_DEBUG | ( | ... | ) | { } |
Outputs a formatted string using "printf" if the log level is high enough. Can be disabled by defining TRACE_LEVEL=0 during compilation.
| ... | Additional parameters depending on formatted string. |
Definice je uvedena na řádku 186 v souboru trace.h.
Používá se v ADC_Initialize() a ISR_Adc().
1.7.6.1