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.

16 lines
280 B
C

3 years ago
#ifndef __PUTIL_H__
#define __PUTIL_H__
#include "stm32l4xx_hal.h"
int p_printf(const char* fmt, ...);
void p_uart_init(UART_HandleTypeDef* huart);
#ifdef _DEBUG
3 years ago
#define PDEBUG(f_, ...) p_printf((f_), ##__VA_ARGS__)
#else
#define PDEBUG(f_, ...) void(f_, ...)
3 years ago
#endif
#endif