出力ポートを,オープンドレインまたはプッシュプルに設定するグローバル関数. このライブラリを登録した際のプログラム: Demo_SetOutputPortType. Global functions for setting the output port bit open-drain or push-pull.

Dependents:   Demo_SetOutputPortType Mbed2_ConnectTestAll

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Tue Dec 17 01:58:00 2019 +0000
Parent:
4:0f2bef62434a
Commit message:
6

Changed in this revision

SetOutputPortType.hpp Show annotated file Show diff for this revision Revisions of this file
--- a/SetOutputPortType.hpp	Sat Sep 29 04:46:08 2018 +0000
+++ b/SetOutputPortType.hpp	Tue Dec 17 01:58:00 2019 +0000
@@ -17,11 +17,14 @@
 //  STM_PORT(), STM_PIN() は
 //      mbed\TARGET_NUCLEO_F446RE\TARGET_STM\PinNamesTypes.h 参照
 //
-//  2018/09/29, Copyright (c) 2018 MIKAMI, Naoki
+//  2019/12/17, Copyright (c) 2019 MIKAMI, Naoki
 //------------------------------------------------------------------------------
 
 #include "mbed.h"
 
+#ifndef SET_OUTPUT_PORT_TYPE_HPP
+#define SET_OUTPUT_PORT_TYPE_HPP
+
 namespace Mikami
 {
     // 出力ポートをオープンドレインに設定する
@@ -62,4 +65,4 @@
         }
     }
 }
-
+#endif  // SET_OUTPUT_PORT_TYPE_HPP
\ No newline at end of file