Arduino modifications to support DebugWire and easy ISP:
SoftwareReset:
Due to SoftwareReset it is possible to optionally replace the capacitor
between DTR (pin 20) of the USB MCU and RESET pin (PB6) of the main MCU by a resistor.
This enables ISP programming without a bypass capacitor of 10 μF
which is usually needed to be connected to main MCU's RESET and GND.
Furthermore it does not affect upload to Arduinos with capacitor! (==> enabled by default)
PowerSwitch:
A Mosfet is soldered between +5V and the output of the voltage regulator
to switch on/off power supply of the main MCU by software running on USB MCU.
Besides the power supply of the USB MCU is not affected.
The default VCCEN pin to control the active low p-channel mosfet is PB5. (set to output!!!)
(PowerSwitch requires one pin to be set to output or at least input/pullup in bootloader and is therefore not included in the hexfiles by default.)
Unfortunately your dev206 branch differs a lot from the master branch which leads to a merge conflict. I did not resolve this; it is your task.
Furthermore it looks like many files have changed because I updated lufa in the same way as you did before.
So users don't need to clone with submodules (git clone --recurse-submodules url) and the version is tied to a specific commit, but at least the last thing can be reached with submodules too.
I do not think a "backup" of a submodule in a separate folder is neither what submodules are intended for nor necessary, but I included both, the submodule and the backup anyway a few months ago.
Arduino modifications to support DebugWire and easy ISP:
SoftwareReset: Due to SoftwareReset it is possible to optionally replace the capacitor between DTR (pin 20) of the USB MCU and RESET pin (PB6) of the main MCU by a resistor. This enables ISP programming without a bypass capacitor of 10 μF which is usually needed to be connected to main MCU's RESET and GND. Furthermore it does not affect upload to Arduinos with capacitor! (==> enabled by default)
PowerSwitch: A Mosfet is soldered between +5V and the output of the voltage regulator to switch on/off power supply of the main MCU by software running on USB MCU. Besides the power supply of the USB MCU is not affected. The default VCCEN pin to control the active low p-channel mosfet is PB5. (set to output!!!) (PowerSwitch requires one pin to be set to output or at least input/pullup in bootloader and is therefore not included in the hexfiles by default.)
Unfortunately your dev206 branch differs a lot from the master branch which leads to a merge conflict. I did not resolve this; it is your task.
Furthermore it looks like many files have changed because I updated lufa in the same way as you did before. So users don't need to clone with submodules (git clone --recurse-submodules url) and the version is tied to a specific commit, but at least the last thing can be reached with submodules too. I do not think a "backup" of a submodule in a separate folder is neither what submodules are intended for nor necessary, but I included both, the submodule and the backup anyway a few months ago.