GEX core repository.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gex-core/platform/debug_uart.h

30 lines
595 B

7 years ago
//
// Created by MightyPork on 2017/12/15.
//
// Setup and routines for debug printing.
// The actual printf-like functions used for debug printing are in debug.h
//
7 years ago
#ifndef GEX_DEBUG_UART_H
#define GEX_DEBUG_UART_H
/**
* Pre-init the debug uart
*
* Set up the peripheral for printing, do not claim resources yet because the
* registry is not initialized
*/
7 years ago
void DebugUart_PreInit(void);
/**
* Finalize the init (claim resources)
*/
7 years ago
void DebugUart_Init(void);
/**
* Write some bytes via the debug USART
*/
void debug_write(const char *buf, uint16_t len);
7 years ago
#endif //GEX_DEBUG_UART_H