/*----- USB_1459_CDC.c ------*/ #include "mcc_generated_files/mcc.h" #include "USB_1459_CDC.h" void SendUSB_char(char c){ do CDCTxService(); while (!USBUSARTIsTxTrfReady()); putUSBUSART(&c, 1); CDCTxService(); } void SendUSB_str(char *str){ do CDCTxService(); while (!USBUSARTIsTxTrfReady()); putsUSBUSART(str); CDCTxService(); } void SendUSB_int(int val){ char iBuf[10]; sprintf(iBuf,"%d: ",val); SendUSB_str(iBuf); } int RecvUSB(char *buf,int bfsize){ return getsUSBUSART(buf, bfsize); } /******** End of File ******/