mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-05-09 06:16:54 +03:00
fixed stupid bug
This commit is contained in:
@@ -17,24 +17,15 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef PROTO_H__
|
||||
#define PROTO_H__
|
||||
|
||||
#include <stm32f1.h>
|
||||
|
||||
#define printu(x) do{USB_sendstr(u2str(x));}while(0)
|
||||
#define printuhex(x) do{USB_sendstr(uhex2str(x));}while(0)
|
||||
|
||||
#ifdef EBUG
|
||||
#define DBG(x) do{USB_send(x); USB_send("\n");}while(0)
|
||||
#define DBG(x) do{USB_sendstr(x); newline();}while(0)
|
||||
#else
|
||||
#define DBG(x)
|
||||
#endif
|
||||
|
||||
void parse_cmd(const char *buf);
|
||||
char *omit_spaces(const char *buf);
|
||||
char *getnum(const char *buf, uint32_t *N);
|
||||
char *u2str(uint32_t val);
|
||||
char *u2hexstr(uint32_t val);
|
||||
|
||||
#endif // PROTO_H__
|
||||
|
||||
Reference in New Issue
Block a user