• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

shared_fooの不要ディレクトリ削除前のもの


Commit MetaInfo

Revision4af714eb8c3f8e60ba5fc742912f5bf08792e891 (tree)
Time2018-02-22 15:38:33
Authortakemasa <suikan@user...>
Commitertakemasa

Log Message

Added const to the member variable to be called.

Change Summary

Incremental Difference

--- a/stm32_development/murasaki/murasaki/i2cmaster.cpp
+++ b/stm32_development/murasaki/murasaki/i2cmaster.cpp
@@ -14,16 +14,18 @@
1414 namespace murasaki {
1515
1616 I2cMaster::I2cMaster(I2C_HandleTypeDef * i2c_handle)
17+ : peripheral_(i2c_handle),
18+ sync_(new InterruptSynchronizer),
19+ critical_section_(new CriticalSection)
20+
21+
1722 {
1823 // setup peripheral handle
1924 MURASAKI_ASSERT(NULL != i2c_handle);
20- peripheral_ = i2c_handle;
2125
2226 // synchronization setup.
23- sync_ = new InterruptSynchronizer;
2427 MURASAKI_ASSERT(NULL != sync_)
2528
26- critical_section_ = new CriticalSection;
2729 MURASAKI_ASSERT(NULL != critical_section_)
2830
2931 }
--- a/stm32_development/murasaki/murasaki/i2cmaster.hpp
+++ b/stm32_development/murasaki/murasaki/i2cmaster.hpp
@@ -161,9 +161,9 @@ class I2cMaster : public AbstractI2CMaster
161161 */
162162 virtual bool HandleError(void * ptr);
163163 protected:
164- I2C_HandleTypeDef * peripheral_; // SPI peripheral handle
165- InterruptSynchronizer * sync_; // sync between task and interrupt
166- CriticalSection * critical_section_; // protect memberfunction
164+ I2C_HandleTypeDef * const peripheral_; // SPI peripheral handle
165+ InterruptSynchronizer * const sync_; // sync between task and interrupt
166+ CriticalSection * const critical_section_; // protect memberfunction
167167
168168 };
169169
--- a/stm32_development/murasaki/murasaki/uart.hpp
+++ b/stm32_development/murasaki/murasaki/uart.hpp
@@ -75,7 +75,7 @@ class Uart : public AbstractUart
7575 * Store the given uart pointer into the internal variable. This pointer is passed to the STM32 HAL UART functions when needed.
7676 *
7777 */
78- Uart(UART_HandleTypeDef * const uart);
78+ Uart(UART_HandleTypeDef * uart);
7979 /**
8080 * \brief Destructor. Delete internal variables.
8181 */