firmata: Convert mraa FirmataC implementation to work over Uart instead of serial implementation
Signed-off-by: Shiran Ben-Melech <shiran.ben-melech@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
4b76fbd14c
commit
04f7cbff5d
@@ -24,7 +24,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "serial.h"
|
||||
#include "uart.h"
|
||||
|
||||
#define MODE_INPUT 0x00
|
||||
#define MODE_OUTPUT 0x01
|
||||
@@ -89,7 +89,7 @@ typedef struct s_pin {
|
||||
} t_pin;
|
||||
|
||||
typedef struct s_firmata {
|
||||
t_serial* serial;
|
||||
mraa_uart_context uart;
|
||||
t_pin pins[128];
|
||||
int i2cmsg[256][256];
|
||||
int parse_command_len;
|
||||
|
||||
Reference in New Issue
Block a user