mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2026-03-22 03:42:39 +01:00
indent code with clang-format, add rotation
This commit is contained in:
@@ -1,19 +1,26 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <wiringPi.h>
|
||||
|
||||
#define SEP printf(" ");
|
||||
// a is string, b is number
|
||||
#define DEBUG(a,b) printf(a);SEP;printf("%d\n",b);
|
||||
#define DEBUG(a, b) \
|
||||
printf(a); \
|
||||
SEP; \
|
||||
printf("%d\n", b);
|
||||
|
||||
#define ALINE printf("\n");
|
||||
|
||||
#define PRINTF(...) { printf(__VA_ARGS__);fflush(stdout);}
|
||||
#define PRINTF(...) \
|
||||
{ \
|
||||
printf(__VA_ARGS__); \
|
||||
fflush(stdout); \
|
||||
}
|
||||
|
||||
void delayus(unsigned int _us);
|
||||
|
||||
@@ -21,5 +28,4 @@ uint8_t invert_bit(uint8_t a);
|
||||
|
||||
uint8_t bits_number(uint8_t n);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user