aboutsummaryrefslogtreecommitdiff
path: root/Projects/AVRISP-MKII/Lib/XPROG
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2010-04-05 08:09:12 +0000
committerDean Camera <[email protected]>2010-04-05 08:09:12 +0000
commitfa1a092901319b3b41bf09e0c4cb9cbbec470d6b (patch)
treeaa75acf5f00faa999f4622ce8754fe713d312b23 /Projects/AVRISP-MKII/Lib/XPROG
parentfd96b288824caaa3ee4e5e03887f016de9df80cf (diff)
downloadqmk_firmware-fa1a092901319b3b41bf09e0c4cb9cbbec470d6b.tar.gz
qmk_firmware-fa1a092901319b3b41bf09e0c4cb9cbbec470d6b.zip
Add user callback function to the Bluetooth host demo to filter out connections from remote devices. Add in ability to reject connections based on their bluetooth device address.
Clean up RelayBoard project code. Make AVRISP project clear the XMEGA target's reset register twice; this does not appear to take affect properly the first time under some circumstances.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/XPROG')
-rw-r--r--Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c b/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
index ef86e30f2a..cc521ce87d 100644
--- a/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
+++ b/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
@@ -179,6 +179,10 @@ static void XPROGProtocol_LeaveXPROGMode(void)
XPROGTarget_SendByte(PDI_CMD_STCS | PDI_RESET_REG);
XPROGTarget_SendByte(0x00);
+ /* Do it twice to make sure it takes affect (silicon bug?) */
+ XPROGTarget_SendByte(PDI_CMD_STCS | PDI_RESET_REG);
+ XPROGTarget_SendByte(0x00);
+
XPROGTarget_DisableTargetPDI();
}
else