• 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

Revision23f32a66297553dc678d4ebfe3c5dc6d91a3c221 (tree)
Time2018-03-02 08:35:25
Authortakemasa <suikan@user...>
Commitertakemasa

Log Message

Refactor the name of the member variable.

Change Summary

Incremental Difference

--- a/stm32_development/murasaki/murasaki/debuggerfifo.cpp
+++ b/stm32_development/murasaki/murasaki/debuggerfifo.cpp
@@ -57,7 +57,7 @@ unsigned int DebuggerFifo::Get(uint8_t data[], unsigned int size)
5757
5858 // wait for the arriaval of the data.
5959 if ( ret_val == 0)
60- sync_->WaitForSignalFromTask(static_cast<murasaki::WaitMilliSeconds>(1000 / portTICK_PERIOD_MS));
60+ sync_->WaitForSignal(static_cast<murasaki::WaitMilliSeconds>(1000 / portTICK_PERIOD_MS));
6161
6262 return ret_val;
6363
--- a/stm32_development/murasaki/murasaki/debuggertxtask.hpp
+++ b/stm32_development/murasaki/murasaki/debuggertxtask.hpp
@@ -18,7 +18,7 @@ namespace murasaki {
1818 *
1919 * Receives a murasaki::AbstractLogger type instance and murasaki::AbstractFifo instance
2020 * through the task_param parameter of the constructor.
21- * Then, it is passed to the @ref TaskBody().
21+ * Then, it is passed to the TaskBody().
2222 *
2323 * TaskBody takes data form FIFO and put it into the logger.
2424 *
--- a/stm32_development/murasaki/murasaki/i2cmaster.cpp
+++ b/stm32_development/murasaki/murasaki/i2cmaster.cpp
@@ -55,7 +55,7 @@ bool I2cMaster::Transmit(uint addrs, uint8_t* tx_data, unsigned int tx_size, Wai
5555 MURASAKI_ASSERT(HAL_OK == status);
5656
5757 // wait for the completion
58- result = sync_->WaitForSignalFromTask(timeout_ms); // return false if timeout
58+ result = sync_->WaitForSignal(timeout_ms); // return false if timeout
5959 }
6060 critical_section_->Leave();
6161
@@ -78,7 +78,7 @@ bool I2cMaster::Receive(uint addrs, uint8_t* rx_data, unsigned int rx_size, Wait
7878 MURASAKI_ASSERT(HAL_OK == status);
7979
8080 // wait for the completion
81- result = sync_->WaitForSignalFromTask(timeout_ms); // return false if timeout
81+ result = sync_->WaitForSignal(timeout_ms); // return false if timeout
8282 }
8383 critical_section_->Leave();
8484
@@ -110,14 +110,14 @@ bool I2cMaster::TransmitThenReceive(uint addrs,
110110 MURASAKI_ASSERT(HAL_OK == status);
111111
112112 // Wait for the completion of transmission
113- bool result1 = sync_->WaitForSignalFromTask(timeout_ms); // false if timeout
113+ bool result1 = sync_->WaitForSignal(timeout_ms); // false if timeout
114114
115115 // receive with restart condition. Address shift is required by HAL specification.
116116 status = HAL_I2C_Master_Sequential_Receive_IT(peripheral_, addrs << 1, rx_data, rx_size, I2C_LAST_FRAME);
117117 MURASAKI_ASSERT(HAL_OK == status);
118118
119119 // wait for the completion of receive.
120- bool result2 = sync_->WaitForSignalFromTask(timeout_ms); // false if timeout
120+ bool result2 = sync_->WaitForSignal(timeout_ms); // false if timeout
121121
122122 result = result1 & result2;
123123 }
--- a/stm32_development/murasaki/murasaki/spimaster.cpp
+++ b/stm32_development/murasaki/murasaki/spimaster.cpp
@@ -76,7 +76,7 @@ bool SpiMaster::Transfer(murasaki::AbstractSpiSlaveSpecifier* spi_spec,
7676 MURASAKI_ASSERT(HAL_OK == status);
7777
7878 // wait for the completion
79- result = sync_->WaitForSignalFromTask(timeout_ms); // return false if timeout
79+ result = sync_->WaitForSignal(timeout_ms); // return false if timeout
8080 }
8181 // Dessert the chip select for slave
8282 spi_spec->DeassertCs();
--- a/stm32_development/murasaki/murasaki/synchronizer.cpp
+++ b/stm32_development/murasaki/murasaki/synchronizer.cpp
@@ -22,7 +22,7 @@ Synchronizer::~Synchronizer()
2222 vSemaphoreDelete(semaphore_);
2323 }
2424
25-bool Synchronizer::WaitForSignalFromTask(WaitMilliSeconds timeout_ms)
25+bool Synchronizer::WaitForSignal(WaitMilliSeconds timeout_ms)
2626 {
2727 MURASAKI_ASSERT(isTaskContext());
2828 return (pdTRUE == xSemaphoreTake(semaphore_, timeout_ms / portTICK_PERIOD_MS));
--- a/stm32_development/murasaki/murasaki/synchronizer.hpp
+++ b/stm32_development/murasaki/murasaki/synchronizer.hpp
@@ -45,7 +45,7 @@ class Synchronizer
4545 * This member function have to be called from the task context. Otherwise, the behavior is
4646 * not predictable.
4747 */
48- bool WaitForSignalFromTask(WaitMilliSeconds timeout_ms = kwmsIndefinitely);
48+ bool WaitForSignal(WaitMilliSeconds timeout_ms = kwmsIndefinitely);
4949 /**
5050 * \brief Release the task.
5151 * \details
--- a/stm32_development/murasaki/murasaki/uart.cpp
+++ b/stm32_development/murasaki/murasaki/uart.cpp
@@ -93,7 +93,7 @@ bool Uart::Transmit(uint8_t * data, unsigned int size, WaitMilliSeconds timeout_
9393 HAL_StatusTypeDef status = HAL_UART_Transmit_DMA(peripheral_, data, size);
9494 MURASAKI_ASSERT(HAL_OK == status);
9595
96- ret_val = tx_sync_->WaitForSignalFromTask(timeout_ms);
96+ ret_val = tx_sync_->WaitForSignal(timeout_ms);
9797 }
9898 tx_critical_section_->Leave();
9999
@@ -126,7 +126,7 @@ bool Uart::Receive(uint8_t * data, unsigned int size, WaitMilliSeconds timeout_m
126126 HAL_StatusTypeDef status = HAL_UART_Receive_DMA(peripheral_, data, size);
127127 MURASAKI_ASSERT(HAL_OK == status);
128128
129- ret_val = rx_sync_->WaitForSignalFromTask(timeout_ms);
129+ ret_val = rx_sync_->WaitForSignal(timeout_ms);
130130 }
131131 rx_critical_section_->Leave();
132132