Skip to content

Commit

Permalink
Merge pull request #1 from streber42/master
Browse files Browse the repository at this point in the history
Add Serial port 4-6 code for Teensy 4.0 and port 7 for Teensy 4.1
  • Loading branch information
kwagyeman authored Oct 8, 2020
2 parents d03f1d4 + 1b73d75 commit 925835d
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/openmvrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,22 @@ RPC_HARDWARE_SERIAL_UART_MASTER_IMPLEMENTATION(2,SERIAL_PORT_HARDWARE2)
RPC_HARDWARE_SERIAL_UART_MASTER_IMPLEMENTATION(3,SERIAL_PORT_HARDWARE3)
#endif

#ifdef SERIAL_PORT_HARDWARE4
RPC_HARDWARE_SERIAL_UART_MASTER_IMPLEMENTATION(4,SERIAL_PORT_HARDWARE4)
#endif

#ifdef SERIAL_PORT_HARDWARE5
RPC_HARDWARE_SERIAL_UART_MASTER_IMPLEMENTATION(5,SERIAL_PORT_HARDWARE5)
#endif

#ifdef SERIAL_PORT_HARDWARE6
RPC_HARDWARE_SERIAL_UART_MASTER_IMPLEMENTATION(6,SERIAL_PORT_HARDWARE6)
#endif

#ifdef SERIAL_PORT_HARDWARE7
RPC_HARDWARE_SERIAL_UART_MASTER_IMPLEMENTATION(7,SERIAL_PORT_HARDWARE7)
#endif

#ifdef SERIAL_PORT_USBVIRTUAL
RPC_HARDWARE_SERIAL_UART_MASTER_IMPLEMENTATION(USB,SERIAL_PORT_USBVIRTUAL)
#endif
Expand Down Expand Up @@ -947,6 +963,22 @@ RPC_HARDWARE_SERIAL_UART_SLAVE_IMPLEMENTATION(2,SERIAL_PORT_HARDWARE2)
RPC_HARDWARE_SERIAL_UART_SLAVE_IMPLEMENTATION(3,SERIAL_PORT_HARDWARE3)
#endif

#ifdef SERIAL_PORT_HARDWARE4
RPC_HARDWARE_SERIAL_UART_SLAVE_IMPLEMENTATION(4,SERIAL_PORT_HARDWARE4)
#endif

#ifdef SERIAL_PORT_HARDWARE5
RPC_HARDWARE_SERIAL_UART_SLAVE_IMPLEMENTATION(5,SERIAL_PORT_HARDWARE5)
#endif

#ifdef SERIAL_PORT_HARDWARE6
RPC_HARDWARE_SERIAL_UART_SLAVE_IMPLEMENTATION(6,SERIAL_PORT_HARDWARE6)
#endif

#ifdef SERIAL_PORT_HARDWARE7
RPC_HARDWARE_SERIAL_UART_SLAVE_IMPLEMENTATION(7,SERIAL_PORT_HARDWARE7)
#endif

#ifdef SERIAL_PORT_USBVIRTUAL
RPC_HARDWARE_SERIAL_UART_SLAVE_IMPLEMENTATION(USB,SERIAL_PORT_USBVIRTUAL)
#endif
Expand Down
32 changes: 32 additions & 0 deletions src/openmvrpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,22 @@ RPC_HARDWARE_SERIAL_UART_MASTER(2,SERIAL_PORT_HARDWARE2)
RPC_HARDWARE_SERIAL_UART_MASTER(3,SERIAL_PORT_HARDWARE3)
#endif

#ifdef SERIAL_PORT_HARDWARE4
RPC_HARDWARE_SERIAL_UART_MASTER(4,SERIAL_PORT_HARDWARE4)
#endif

#ifdef SERIAL_PORT_HARDWARE5
RPC_HARDWARE_SERIAL_UART_MASTER(5,SERIAL_PORT_HARDWARE5)
#endif

#ifdef SERIAL_PORT_HARDWARE6
RPC_HARDWARE_SERIAL_UART_MASTER(6,SERIAL_PORT_HARDWARE6)
#endif

#ifdef SERIAL_PORT_HARDWARE7
RPC_HARDWARE_SERIAL_UART_MASTER(7,SERIAL_PORT_HARDWARE7)
#endif

#ifdef SERIAL_PORT_USBVIRTUAL
RPC_HARDWARE_SERIAL_UART_MASTER(USB,SERIAL_PORT_USBVIRTUAL)
#endif
Expand Down Expand Up @@ -383,6 +399,22 @@ RPC_HARDWARE_SERIAL_UART_SLAVE(2,SERIAL_PORT_HARDWARE2)
RPC_HARDWARE_SERIAL_UART_SLAVE(3,SERIAL_PORT_HARDWARE3)
#endif

#ifdef SERIAL_PORT_HARDWARE4
RPC_HARDWARE_SERIAL_UART_SLAVE(4,SERIAL_PORT_HARDWARE4)
#endif

#ifdef SERIAL_PORT_HARDWARE5
RPC_HARDWARE_SERIAL_UART_SLAVE(5,SERIAL_PORT_HARDWARE5)
#endif

#ifdef SERIAL_PORT_HARDWARE6
RPC_HARDWARE_SERIAL_UART_SLAVE(6,SERIAL_PORT_HARDWARE6)
#endif

#ifdef SERIAL_PORT_HARDWARE7
RPC_HARDWARE_SERIAL_UART_SLAVE(7,SERIAL_PORT_HARDWARE7)
#endif

#ifdef SERIAL_PORT_USBVIRTUAL
RPC_HARDWARE_SERIAL_UART_SLAVE(USB,SERIAL_PORT_USBVIRTUAL)
#endif
Expand Down

0 comments on commit 925835d

Please sign in to comment.