You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

21 lines
403 B
C

#ifndef _P_USART_H_
#define _P_USART_H_
#include "oracle.h"
extern struct usart_async_descriptor p_usart_debug_inst;
void p_usart_init(void);
void p_write(struct usart_async_descriptor* const inst, const uint8_t* data, uint16_t len);
int pprintf(const char* str, ...);
bool p_data_arrived(void);
void p_set_data_arrived(bool status);
#define PDEBUG(f_, ...) pprintf((f_), ##__VA_ARGS__)
#endif