Adding automatic port swapping to ICPad

- Works the same as the bootloader variant, waits 1000 ms before attempting to swap
  Only swaps if USB not already intialized
  If USB never initializes, will swap forever

TODO
- Stop swapping if UARTConnect detected and initialized
This commit is contained in:
Jacob Alexander 2015-12-12 15:16:57 -08:00
parent 571c7ad35a
commit 415a0aab52
5 changed files with 274 additions and 0 deletions

30
Scan/PortSwap/setup.cmake Normal file
View file

@ -0,0 +1,30 @@
###| CMake Kiibohd Controller Scan Module |###
#
# Written by Jacob Alexander in 2015 for the Kiibohd Controller
#
# Released into the Public Domain
#
###
###
# Sub-module flag, cannot be included stand-alone
#
set ( SubModule 1 )
###
# Module C files
#
set ( Module_SRCS
port_scan.c
)
###
# Compiler Family Compatibility
#
set ( ModuleCompatibility
arm
)