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

38 lines
771 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
#include "platform.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);
/**
* Release the peripheral and deinit pin
*/
void DebugUart_Teardown(void);
/**
* Finalize the init (claim resources).
* If not pre-inited (i.e. Teardown was called before), also pre-init.
*/
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