SPI macht interrupt

This commit is contained in:
Tristan Krause 2019-04-03 11:38:15 +02:00
parent 266d90df56
commit fd2cb56ef3
11 changed files with 605 additions and 538 deletions

View file

@ -174,14 +174,13 @@ public:
/*************************/
private:
USART usart;
USART usart;
static B15F* instance;
// CONSTANTS
const std::string PRE = "[B15F] ";
const std::string SERIAL_DEVICE = "/dev/ttyUSB0";
constexpr static uint8_t MSG_OK = 0xFF;
constexpr static uint8_t MSG_FAIL = 0xFE;
constexpr static uint16_t RECONNECT_TIMEOUT = 64; // ms