mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2026-03-19 10:22:44 +01:00
add schematic pdfs and firmware code
This commit is contained in:
23
Code/thermal_printer/utils.h
Normal file
23
Code/thermal_printer/utils.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_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 ALINE printf("\n");
|
||||
|
||||
void delayus(unsigned int _us);
|
||||
|
||||
uint8_t invert_bit(uint8_t a);
|
||||
|
||||
uint8_t bits_number(uint8_t n);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user