disableDebugPorts()
原文
JTAGおよびSWデバッグポートを無効にするために使用します。
書式
void disableDebugPorts(void)
JTAGおよびシリアルワイヤ(SW)デバッグポートを無効にします。
JTAGおよびSWデバッグピンを通常のGPIOとして使用するには、この関数を呼び出すことができます。
JTAG、SWはPA15 、PB3、PB4が を占有します。本関数で無効化することでGPIOとして利用することができます。
利用例
code:sample.ino
void setup() {
disableDebugPorts();
}
void loop() {
// Now you can use the debug port pins (the pins on the JTAG
// header on the Maple) as ordinary pins.
}
afio_cfg_debug_ports(AFIO_DEBUG_NONE)でも同様の設定ができます。
void disableDebugPorts(void)はafio_cfg_debug_ports(AFIO_DEBUG_NONE)を内部で呼び出しています。
関連項目
enableDebugPorts()
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 リファレンス 日本語版 に戻る