EDF - OnePIC MCU
v1.1.0
|
Go to the source code of this file.
Defines | |
#define | MCP2200_BAUD 9600 |
#define | DIVIDER ((int)(_XTAL_FREQ/(16UL * MCP2200_BAUD) -1)) |
#define | HIGH_SPEED 1 |
#define | MCP2200_RX UART_RX |
#define | MCP2200_TX UART_TX |
#define | MCP2200_RX_TRIS UART_TRIS_RX |
#define | MCP2200_TX_TRIS UART_TRIS_TX |
#define | SPEED 0x4 |
Functions | |
void | putch (uint8_t) |
void | mcp2200_init (void) |
Configures the UART module for 9600 baud. | |
void | mcp2200_prompt (void) |
uint8_t | mcp2200_getch (void) |
uint8_t | mcp2200_getche (void) |
Definition in file OnePIC_8bit_demo_mcp2200.h.
#define DIVIDER ((int)(_XTAL_FREQ/(16UL * MCP2200_BAUD) -1)) |
DIVIDER | calculates value for SPRG |
Definition at line 14 of file OnePIC_8bit_demo_mcp2200.h.
#define HIGH_SPEED 1 |
HIGH_SPEED | whether or not to include UART hi-speed |
Definition at line 16 of file OnePIC_8bit_demo_mcp2200.h.
#define MCP2200_BAUD 9600 |
MCP2200_BAUD | UART hardware speed. Both sides must agree on this to work properly |
Definition at line 12 of file OnePIC_8bit_demo_mcp2200.h.
#define MCP2200_RX UART_RX |
MCP2200_RX | the RX pin |
Definition at line 18 of file OnePIC_8bit_demo_mcp2200.h.
#define MCP2200_RX_TRIS UART_TRIS_RX |
MCP2200_RX_TRIS | the RX pin |
Definition at line 22 of file OnePIC_8bit_demo_mcp2200.h.
#define MCP2200_TX UART_TX |
MCP2200_TX | the RX pin |
Definition at line 20 of file OnePIC_8bit_demo_mcp2200.h.
#define MCP2200_TX_TRIS UART_TRIS_TX |
MCP2200_TX_TRIS | the RX pin |
Definition at line 24 of file OnePIC_8bit_demo_mcp2200.h.
#define SPEED 0x4 |
SPEED | i don't knows |
Definition at line 33 of file OnePIC_8bit_demo_mcp2200.h.