/*
 * trace.h
 *
 *  Created on: 2023/04/29
 *      Author: T.Uemitsu
 */

#ifndef TRACE_H_
#define TRACE_H_

#include "usart.h"

#if defined(DBG_TRACE)

#define DBG(...)            us_printf(__VA_ARGS__)
#define WAITFOR_TXCMP()     while (us_tx_buff ()) __WFI();
#else

#define DBG(...)
#define WAITFOR_TXCMP()

#endif

#endif /* TRACE_H_ */
