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 | 95af192c99459c56bb30763afd93582a524efc3a (patch) | |
tree | e664f8366a82181a8e1a5e42f514651f90b72888 /docs/source/lang/api/disabledebugports.rst | |
parent | bf72983543f446026556e13f62d63aad2092f1ec (diff) | |
download | librambutan-95af192c99459c56bb30763afd93582a524efc3a.tar.gz librambutan-95af192c99459c56bb30763afd93582a524efc3a.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 'docs/source/lang/api/disabledebugports.rst')
-rw-r--r-- | docs/source/lang/api/disabledebugports.rst | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/source/lang/api/disabledebugports.rst b/docs/source/lang/api/disabledebugports.rst new file mode 100644 index 0000000..43ac337 --- /dev/null +++ b/docs/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` |