52 lines
1.3 KiB
C
52 lines
1.3 KiB
C
![]() |
#ifndef _UART_DEFS
|
||
|
#define _UART_DEFS
|
||
|
#include <stdint.h>
|
||
|
#include "xprintf.h"
|
||
|
//#define USE_UART_C 1
|
||
|
#define USE_UART0 1 /* 0:Disable, 1:Enable, 2:Enable w/remap */
|
||
|
#define UART0_RXB 32 /* Size of Rx buffer */
|
||
|
#define UART0_TXB 32 /* Size of Tx buffer */
|
||
|
|
||
|
#if USE_UART0
|
||
|
void xprintf_init(uint32_t bps);
|
||
|
//int uart0_test(void);
|
||
|
//void uart0_putc(uint8_t d);
|
||
|
//uint8_t uart0_getc(void);
|
||
|
#endif
|
||
|
|
||
|
#define USE_ERROUT 1
|
||
|
#if USE_ERROUT
|
||
|
extern char Line[16];
|
||
|
void Uart_wait_input(void);
|
||
|
void Error_out (uint8_t rc);
|
||
|
|
||
|
static
|
||
|
const char Banner[] =
|
||
|
"***********************************************\n"
|
||
|
" ### ####### ### # # ####### # # \n"
|
||
|
" # # # # # # # # \n"
|
||
|
" # # # # # # # # \n"
|
||
|
" # ##### # # # ##### # \n"
|
||
|
" # # # # # # # # \n"
|
||
|
" # # # # # # # # \n"
|
||
|
" ### # ### # ####### # # \n"
|
||
|
"***********************************************\n";
|
||
|
|
||
|
static
|
||
|
const char CmdList[] =
|
||
|
"S0 - ReInit to test\n"
|
||
|
"S1 - Test step one\n"
|
||
|
"S2 - Test step two\n"
|
||
|
"S3 - Test step three\n"
|
||
|
"S4 - Test step four\n"
|
||
|
"S5 - Test step five\n"
|
||
|
"S6 - Test step six\n"
|
||
|
"S7 - Test step seven\n"
|
||
|
"S8 - Test step eight\n"
|
||
|
"S9 - Test step nine\n";
|
||
|
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#endif
|