aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/api/enabledebugports.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-04-25 21:23:00 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-04-25 22:03:25 -0400
commit1b12488ce8b7c69968709b0c1c17975e519b0f5e (patch)
treedc29e7c5cd22ad57cc52e4eb517174891bc3ea81 /source/lang/api/enabledebugports.rst
parentff0706b87a806451fe0f3a48e5dab8d83cf3e6d9 (diff)
downloadlibrambutan-1b12488ce8b7c69968709b0c1c17975e519b0f5e.tar.gz
librambutan-1b12488ce8b7c69968709b0c1c17975e519b0f5e.zip
Better debug port support.
- gpio.h: afio_mapr_swj_config() renamed afio_cfg_debug_ports() - [new] wirish_debug.h: disableDebugPorts(), enableDebugPorts() - Maple, Maple Native, and Maple RET6 PIN_MAPs are now larger by 5, have mappings for the extra JTAG/SW pins. Documentation was updated appropriately.
Diffstat (limited to 'source/lang/api/enabledebugports.rst')
-rw-r--r--source/lang/api/enabledebugports.rst31
1 files changed, 31 insertions, 0 deletions
diff --git a/source/lang/api/enabledebugports.rst b/source/lang/api/enabledebugports.rst
new file mode 100644
index 0000000..bee2b0a
--- /dev/null
+++ b/source/lang/api/enabledebugports.rst
@@ -0,0 +1,31 @@
+.. highlight:: cpp
+
+.. _lang-enabledebugports:
+
+enableDebugPorts()
+==================
+
+Used to enable the JTAG and Serial Wire debugging ports.
+
+Library Documentation
+---------------------
+
+.. doxygenfunction:: enableDebugPorts
+
+Example
+-------
+
+ ::
+
+ void setup() {
+ enableDebugPorts();
+ // Now you can debug using JTAG and SW-Debug
+ }
+
+ void loop() {
+ }
+
+See Also
+--------
+
+* :ref:`lang-disabledebugports`