Speeduino
Loading...
Searching...
No Matches
speeduino
comms.h
Go to the documentation of this file.
1
10
#ifndef NEW_COMMS_H
11
#define NEW_COMMS_H
12
13
#if defined(CORE_TEENSY)
14
#define BLOCKING_FACTOR 251
15
#define TABLE_BLOCKING_FACTOR 256
16
#elif defined(CORE_STM32)
17
#define BLOCKING_FACTOR 121
18
#define TABLE_BLOCKING_FACTOR 64
19
#elif defined(CORE_AVR)
20
#define BLOCKING_FACTOR 121
21
#define TABLE_BLOCKING_FACTOR 64
22
#endif
23
24
extern
Stream
*
pPrimarySerial
;
25
#define primarySerial (*pPrimarySerial)
26
31
void
serialReceive
(
void
);
32
35
void
serialTransmit
(
void
);
36
37
#endif
// COMMS_H
rshift
static uint32_t rshift(uint32_t a)
Bitwise right shift - generic, unoptimized, case.
Definition
bit_shifts.h:349
serialReceive
void serialReceive(void)
The serial receive pump. Should be called whenever the serial port has data available to read.
Definition
comms.cpp:465
pPrimarySerial
Stream * pPrimarySerial
Definition
comms.cpp:104
serialTransmit
void serialTransmit(void)
The serial transmit pump. Should be called when serialStatusFlag indicates a transmit operation is in...
Definition
comms.cpp:545
Generated by
1.9.8