forked from art103/LasaurGrbl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serial.h
37 lines (28 loc) · 1.14 KB
/
serial.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
serial.c - Low level functions for sending and recieving bytes via the serial port.
Part of LasaurGrbl
Copyright (c) 2009-2011 Simen Svale Skogsrud
Copyright (c) 2011 Sungeun K. Jeon
Copyright (c) 2011 Stefan Hechenberger
Inspired by the wiring_serial module by David A. Mellis which
used to be a part of the Arduino project.
LasaurGrbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
LasaurGrbl is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifndef serial_h
#define serial_h
#include <stdint.h>
void serial_init();
uint32_t serial_write(const uint8_t *pStr, uint32_t length);
void printString(const char *s);
void printPgmString(const char *s);
void printInteger(long n);
void printIntegerInBase(unsigned long n, unsigned long base);
void printFloat(double n);
#endif