88 #ifndef BSP430_UTILITY_CONSOLE_H
89 #define BSP430_UTILITY_CONSOLE_H
104 #ifndef configBSP430_CONSOLE
105 #define configBSP430_CONSOLE 0
114 #if defined(BSP430_DOXYGEN)
115 #define BSP430_CONSOLE include <bsp430/platform.h>
130 #if defined(BSP430_DOXYGEN)
131 #define BSP430_CONSOLE_SERIAL_PERIPH_CPPID include <bsp430/platform.h>
145 #if defined(BSP430_DOXYGEN)
146 #define BSP430_CONSOLE_SERIAL_PERIPH_HANDLE include <bsp430/platform.h>
153 #ifndef BSP430_CONSOLE_BAUD_RATE
154 #define BSP430_CONSOLE_BAUD_RATE 9600
166 #ifndef BSP430_CONSOLE_RX_BUFFER_SIZE
167 #define BSP430_CONSOLE_RX_BUFFER_SIZE 0
183 #ifndef BSP430_CONSOLE_TX_BUFFER_SIZE
184 #define BSP430_CONSOLE_TX_BUFFER_SIZE 0
200 #ifndef BSP430_CONSOLE_USE_EMBTEXTF
201 #define BSP430_CONSOLE_USE_EMBTEXTF 0
215 #if defined(BSP430_DOXYGEN) || (0 < BSP430_CONSOLE_RX_BUFFER_SIZE)
280 #ifndef configBSP430_CONSOLE_PROVIDES_PUTCHAR
281 #define configBSP430_CONSOLE_PROVIDES_PUTCHAR 1
292 #ifndef configBSP430_CONSOLE_PROVIDES_STDIO
293 #define configBSP430_CONSOLE_PROVIDES_STDIO (BSP430_CORE_TOOLCHAIN_LIBC_NEWLIB - 0)
302 #ifndef configBSP430_CONSOLE_USE_ONLCR
303 #define configBSP430_CONSOLE_USE_ONLCR 1
320 int cputs (
const char * s);
357 int cputchars (
const char * cp,
size_t len);
359 #if (defined(BSP430_DOXYGEN) \
360 || (BSP430_CONSOLE_USE_EMBTEXTF - 0) \
361 || (BSP430_CORE_TOOLCHAIN_LIBC_MSP430_LIBC - 0) \
362 || (BSP430_CORE_TOOLCHAIN_LIBC_NEWLIB - 0))
382 int cprintf (
const char * format, ...)
384 __attribute__((__format__(printf, 1, 2)))
397 int vcprintf (
const char * format, va_list ap);
410 int cputi (
int n,
int radix);
427 int cputu (
unsigned int n,
int radix);
442 int cputl (
long n,
int radix);
457 int cputul (
unsigned long n,
int radix);
int iBSP430consoleInitialize(void)
void vBSP430consoleDisplayOctets(const uint8_t *dp, size_t len)
void vBSP430consoleSetRxCallback_ni(iBSP430consoleRxCallback_ni cb)
int vcprintf(const char *format, va_list ap)
int cputl(long n, int radix)
int iBSP430consoleFlush(void)
int cputtext(const char *s)
Definition: serial_.h:193
int cputchars(const char *cp, size_t len)
int iBSP430consoleWaitForTxSpace_ni(int want_available)
int(* iBSP430consoleRxCallback_ni)(void)
Definition: console.h:223
int cputu(unsigned int n, int radix)
int iBSP430consoleTransmitUseInterrupts_ni(int enablep)
Declarations for abstracted serial interface.
void vBSP430consoleDisplayMemory(const uint8_t *dp, size_t len, unsigned long base)
hBSP430halSERIAL hBSP430console(void)
int cprintf(const char *format,...)
int iBSP430consoleDeconfigure(void)
int cputi(int n, int radix)
int cputul(unsigned long n, int radix)