enableDebugPorts()
原文
JTAGおよびシリアルワイヤのデバッグポートを有効にするために使用されます。
書式
void enableDebugPorts(void)
JTAGおよびシリアルワイヤ(SW)デバッグポートをイネーブルにします。
この関数を呼び出すと、JTAGとSWのデバッグピンはGPIOとして使用できなくなります。
利用例
code:sample.ino
void setup() {
enableDebugPorts();
// Now you can debug using JTAG and SW-Debug
}
void loop() {
}
afio_cfg_debug_ports(AFIO_DEBUG_SW_ONLY)でも同様の設定ができます。
afio_cfg_debug_ports(AFIO_DEBUG_NONE)は内部でafio_cfg_debug_ports(AFIO_DEBUG_SW_ONLY)を呼び出しています。
disableDebugPorts()
afio_cfg_debug_ports()
JTAG
License and Attribution: Portions of this page were adapted from the Arduino Reference Documentation, which is released under a Creative Commons Attribution-ShareAlike 3.0 License.
このドキュメントはleafLabs, LLC.が執筆し、たま吉が翻訳・一部加筆修正したものです。
Arduino STM32 リファレンス 日本語版 に戻る