mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
fix some bugs
This commit is contained in:
@@ -37,8 +37,8 @@
|
||||
#define DBG(str)
|
||||
#endif
|
||||
|
||||
extern volatile ringbuffer rbout, rbin;
|
||||
extern volatile uint8_t bufisempty, bufovrfl;
|
||||
extern volatile ringbuffer /* rbout, */ rbin;
|
||||
extern volatile uint8_t /* bufisempty, */ bufovrfl;
|
||||
|
||||
void send_next();
|
||||
int USB_sendall();
|
||||
@@ -48,10 +48,8 @@ int USB_sendstr(const char *string);
|
||||
int USB_receive(uint8_t *buf, int len);
|
||||
int USB_receivestr(char *buf, int len);
|
||||
|
||||
#ifdef EBUG
|
||||
#include "strfunc.h"
|
||||
#define printu(x) do{USB_sendstr(u2str(x));}while(0)
|
||||
#define printi(x) do{USB_sendstr(i2str(x));}while(0)
|
||||
#define printuhex(x) do{USB_sendstr(uhex2str(x));}while(0)
|
||||
#define printf(x) do{USB_sendstr(float2str(x, 2));}while(0)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user