Add SerialUSB for M0

This commit is contained in:
Felix Rusu 2019-01-15 15:06:41 -05:00
parent efa966c8d6
commit 505add7a29
4 changed files with 16 additions and 1 deletions

View File

@ -65,6 +65,10 @@
//********************************************************************************************* //*********************************************************************************************
#define SERIAL_BAUD 115200 #define SERIAL_BAUD 115200
#if defined (MOTEINO_M0) && defined(SERIAL_PORT_USBVIRTUAL)
#define Serial SERIAL_PORT_USBVIRTUAL // Required for Serial on Zero based boards
#endif
#ifdef ENABLE_ATC #ifdef ENABLE_ATC
RFM69_ATC radio; RFM69_ATC radio;
#else #else

View File

@ -50,9 +50,12 @@
#define ENABLE_ATC //comment out this line to disable AUTO TRANSMISSION CONTROL #define ENABLE_ATC //comment out this line to disable AUTO TRANSMISSION CONTROL
#define ATC_RSSI -80 #define ATC_RSSI -80
//********************************************************************************************* //*********************************************************************************************
#define SERIAL_BAUD 115200 #define SERIAL_BAUD 115200
#if defined (MOTEINO_M0) && defined(SERIAL_PORT_USBVIRTUAL)
#define Serial SERIAL_PORT_USBVIRTUAL // Required for Serial on Zero based boards
#endif
int TRANSMITPERIOD = 200; //transmit a packet to gateway so often (in ms) int TRANSMITPERIOD = 200; //transmit a packet to gateway so often (in ms)
char payload[] = "123 ABCDEFGHIJKLMNOPQRSTUVWXYZ"; char payload[] = "123 ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char buff[20]; char buff[20];

View File

@ -48,6 +48,10 @@
//********************************************************************************************* //*********************************************************************************************
#define SERIAL_BAUD 115200 #define SERIAL_BAUD 115200
#if defined (MOTEINO_M0) && defined(SERIAL_PORT_USBVIRTUAL)
#define Serial SERIAL_PORT_USBVIRTUAL // Required for Serial on Zero based boards
#endif
#ifdef ENABLE_ATC #ifdef ENABLE_ATC
RFM69_ATC radio; RFM69_ATC radio;
#else #else

View File

@ -49,6 +49,10 @@
//********************************************************************************************* //*********************************************************************************************
#define SERIAL_BAUD 115200 #define SERIAL_BAUD 115200
#if defined (MOTEINO_M0) && defined(SERIAL_PORT_USBVIRTUAL)
#define Serial SERIAL_PORT_USBVIRTUAL // Required for Serial on Zero based boards
#endif
#ifdef ENABLE_ATC #ifdef ENABLE_ATC
RFM69_ATC radio; RFM69_ATC radio;
#else #else