OneWay
3.0-3-ge9d4fa4
|
printing to terminal functions. More...
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <avr/io.h>
#include <util/delay.h>
#include "debug.h"
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_print_address (struct htv_t *htv, struct debug_t *debug) |
print the RX address in use. | |
void | debug_setup_address (struct htv_t *htv, struct debug_t *debug) |
input and store the address of the unit in EEPROM. More... | |
printing to terminal functions.
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