pic_term.h File Reference

Pic terminal routines. More...

#include "pic_utils.h"
#include "config.h"
#include "pic_serial.h"
Include dependency graph for pic_term.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void term_entry_callback (uns8 *term_buffer)
void term_init ()
void term_process ()

Detailed Description

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.


Function Documentation

void term_entry_callback ( uns8 *  term_buffer  ) 

Referenced by term_process().

Here is the caller graph for this function:

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.

Here is the call graph for this function:


Generated on Wed Dec 8 13:47:41 2010 for Pic Pack by  doxygen 1.6.1