diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-04-25 21:23:00 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-04-25 22:03:25 -0400 |
commit | 1b12488ce8b7c69968709b0c1c17975e519b0f5e (patch) | |
tree | dc29e7c5cd22ad57cc52e4eb517174891bc3ea81 /source/lang/api/disabledebugports.rst | |
parent | ff0706b87a806451fe0f3a48e5dab8d83cf3e6d9 (diff) | |
download | librambutan-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/disabledebugports.rst')
-rw-r--r-- | source/lang/api/disabledebugports.rst | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/source/lang/api/disabledebugports.rst b/source/lang/api/disabledebugports.rst new file mode 100644 index 0000000..43ac337 --- /dev/null +++ b/source/lang/api/disabledebugports.rst @@ -0,0 +1,31 @@ +.. highlight:: cpp + +.. _lang-disabledebugports: + +disableDebugPorts() +=================== + +Used to disable the JTAG and Serial Wire debugging ports. + +Library Documentation +--------------------- + +.. doxygenfunction:: disableDebugPorts + +Example +------- + + :: + + void setup() { + disableDebugPorts(); + } + + void loop() { + // Now you can use the debug port pins as ordinary pins + } + +See Also +-------- + +* :ref:`lang-enabledebugports` |