Enable Arduino modifications to support DebugWire and easy ISP #99
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.