Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: F446_FunctionGenerator F446_UpSampling_GraphicEqualizer F446_UpSampling_ReverbSystem F446_UpSampling_FrqShifter_Weaver ... more
Revision 8:8f6e9351f313, committed 2019-01-26
- Comitter:
- MikamiUitOpen
- Date:
- Sat Jan 26 04:16:29 2019 +0000
- Parent:
- 7:190d94fba10d
- Child:
- 9:a90a9abeaea0
- Commit message:
- 9
Changed in this revision
--- a/SerialRxTxIntr.cpp Sun Oct 07 03:30:15 2018 +0000 +++ b/SerialRxTxIntr.cpp Sat Jan 26 04:16:29 2019 +0000 @@ -57,3 +57,4 @@ } } +
--- a/SerialRxTxIntr.hpp Sun Oct 07 03:30:15 2018 +0000
+++ b/SerialRxTxIntr.hpp Sat Jan 26 04:16:29 2019 +0000
@@ -9,7 +9,7 @@
// Nucleo-F446RE の場合,ファームウェアの更新をしなくても
// 115,200 boud までは動作可能
//
-// 2018/10/06, Copyright (c) 2018 MIKAMI, Naoki
+// 2019/01/26, Copyright (c) 2019 MIKAMI, Naoki
//-------------------------------------------------------------
#include "mbed.h"
@@ -49,6 +49,11 @@
// シリアル・ポートの受信割り込みに対する割り込みサービス・ルーチン
void RxIsr();
+
+ // コピー・コンストラクタの禁止のため
+ SerialRxTxIntr(const SerialRxTxIntr&);
+ // 代入演算子の禁止のため
+ SerialRxTxIntr& operator=(const SerialRxTxIntr&);
};
}
#endif // SERIAL_RXTX_INTR_HPP
--- a/SerialTxIntr.hpp Sun Oct 07 03:30:15 2018 +0000
+++ b/SerialTxIntr.hpp Sat Jan 26 04:16:29 2019 +0000
@@ -4,7 +4,7 @@
//
// ボーレートのデフォルト値は 9,600 boud
//
-// 2018/09/28, Copyright (c) 2018 MIKAMI, Naoki
+// 2019/01/26, Copyright (c) 2019 MIKAMI, Naoki
//-------------------------------------------------------------
#include "mbed.h"
@@ -19,7 +19,7 @@
class SerialTxIntr
{
public:
- SerialTxIntr(Serial &tx); // コンストラクタ
+ explicit SerialTxIntr(Serial &tx); // コンストラクタ
void TxWrite(char c); // 送信データ書き込み
void TxString(string str); // 文字列の送信
@@ -28,6 +28,11 @@
std::queue<char> que_; // FIFO による送信用バッファ
void TxIsr(); // シリアルポート送信割込みサービスルーチン
+
+ // コピー・コンストラクタの禁止のため
+ SerialTxIntr(const SerialTxIntr&);
+ // 代入演算子の禁止のため
+ SerialTxIntr& operator=(const SerialTxIntr&);
};
}
#endif // SERIAL_TX_INTR_HPP