OneWay
3.0-3-ge9d4fa4
|
Functions to activare and display (rs232) debug. More...
Go to the source code of this file.
Data Structures | |
struct | debug_t |
Macros | |
#define | QUOTEME_(x) #x |
#define | QUOTEME(x) QUOTEME_(x) |
#define | MAX_LINE_LENGHT 80 |
#define | MAX_STRING_LENGHT 80 |
#define | PRINT_VALUE_X_LINE 16 |
#define | SEC_FOR_Y 5 |
Functions | |
void | debug_print_P (PGM_P string, struct debug_t *debug) |
void | debug_print (struct debug_t *debug) |
uint8_t | debug_wait_for_y (struct debug_t *debug) |
press 'y' or 'n' More... | |
struct debug_t * | debug_init (void) |
initialize debug struct and uart console | |
void | debug_free (struct debug_t *debug) |
free the memory | |
void | debug_print_htv (struct htv_t *htv, struct debug_t *debug) |
print the struct htv contents. More... | |
void | debug_setup_address (struct htv_t *htv, struct debug_t *debug) |
input and store the address of the unit in EEPROM. More... | |
void | debug_print_address (struct htv_t *htv, struct debug_t *debug) |
print the RX address in use. | |
Functions to activare and display (rs232) debug.
#define MAX_LINE_LENGHT 80 |
Maximum number of char a line can be
#define MAX_STRING_LENGHT 80 |
Number of char a substring can be made of. Substrings are used to compose the line when, for example, conversions have to be made from int to string etc.
#define PRINT_VALUE_X_LINE 16 |
unused
#define QUOTEME | ( | x | ) | QUOTEME_(x) |
unused
#define QUOTEME_ | ( | x | ) | #x |
unused
#define SEC_FOR_Y 5 |
seconds to wait for press 'y' when not locked
void debug_print | ( | struct debug_t * | debug | ) |
print the debug->line if debug is active.
print the struct htv contents.
void debug_print_P | ( | PGM_P | string, |
struct debug_t * | debug | ||
) |
Print a string taken directly from the EEPROM avoiding memory allocation.
string | the PSTR() string to be printed. |
debug | the struct debug. |
input and store the address of the unit in EEPROM.
uint8_t debug_wait_for_y | ( | struct debug_t * | debug | ) |
press 'y' or 'n'
"Y" is 89 and "y" is 121
Exit the cicle in a bad way