Pic terminal routines. More...
#include "pic_utils.h"
#include "config.h"
#include "pic_serial.h"
Go to the source code of this file.
Functions | |
void | term_entry_callback (uns8 *term_buffer) |
void | term_init () |
void | term_process () |
Allows the use of a serial terminal for interaction with the PIC
Put the following into your config.h
// - - - - - - - - - - - - - - - - - - - - // pic_term defines // - - - - - - - - - - - - - - - - - - - - #define TERM_BUFFER_SIZE 10 // Reset (go to bootloader) if magic character received #define TERM_ALLOW_BOOSTBLOADER // Echo typing so user can see what they're doing #define TERM_ECHO_INPUT // - - - - - - - - - - - - - - - - - - - - // Create term_entry_callback in your own code // void term_entry_callback(uns8 *term_buffer);
Definition in file pic_term.h.
void term_entry_callback | ( | uns8 * | term_buffer | ) |
void term_init | ( | ) |
Definition at line 82 of file pic_term.c.
References buffer_len, and term_buffer.
void term_process | ( | ) |
Definition at line 43 of file pic_term.c.
References buffer_len, MAGIC_BOOSTBLOADER_REQUEST, serial_getc(), serial_putc(), serial_rx_avail(), term_buffer, term_entry_callback(), and uns8.