• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

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


Commit MetaInfo

Revision4937f04e4ba5d71b7d757f6b0a946737b0ad396c (tree)
Zeit2018-03-11 16:28:03
Autortakemasa <suikan@user...>
Commitertakemasa

Log Message

Change isTaskText() to IsTaskText() to follow the Google style guide

Ändern Zusammenfassung

Diff

--- a/stm32_development/murasaki/murasaki/criticalsection.cpp
+++ b/stm32_development/murasaki/murasaki/criticalsection.cpp
@@ -25,7 +25,7 @@ CriticalSection::~CriticalSection()
2525
2626 void CriticalSection::Enter()
2727 {
28- MURASAKI_ASSERT(isTaskContext());
28+ MURASAKI_ASSERT(IsTaskContext());
2929 bool result = xSemaphoreTake(mutex_, kwmsIndefinitely);
3030 MURASAKI_ASSERT(result); // true if xSemaphoreTake() success
3131
@@ -33,7 +33,7 @@ void CriticalSection::Enter()
3333
3434 void CriticalSection::Leave()
3535 {
36- MURASAKI_ASSERT(isTaskContext());
36+ MURASAKI_ASSERT(IsTaskContext());
3737 bool result = xSemaphoreGive(mutex_);
3838 MURASAKI_ASSERT(result); // true if xSemaphoreGive() success
3939 }
--- a/stm32_development/murasaki/murasaki/debugger.cpp
+++ b/stm32_development/murasaki/murasaki/debugger.cpp
@@ -98,7 +98,7 @@ void Debugger::printf(const char * fmt, ...)
9898
9999 char Debugger::GetchFromTask()
100100 {
101- MURASAKI_ASSERT(isTaskContext());
101+ MURASAKI_ASSERT(IsTaskContext());
102102
103103 return helpers_.logger->getCharacter();
104104 }
@@ -116,7 +116,7 @@ void Debugger::RePrint()
116116
117117 void Debugger::AutoRePrint()
118118 {
119- MURASAKI_ASSERT(isTaskContext());
119+ MURASAKI_ASSERT(IsTaskContext());
120120 // protecting from double task creation
121121 if (auto_reprint_enable_)
122122 return;
--- a/stm32_development/murasaki/murasaki/debuggerfifo.cpp
+++ b/stm32_development/murasaki/murasaki/debuggerfifo.cpp
@@ -43,7 +43,7 @@ void DebuggerFifo::NotifyData()
4343
4444 unsigned int DebuggerFifo::Get(uint8_t data[], unsigned int size)
4545 {
46- MURASAKI_ASSERT(murasaki::isTaskContext())
46+ MURASAKI_ASSERT(murasaki::IsTaskContext())
4747 unsigned int ret_val;
4848
4949 taskENTER_CRITICAL();
--- a/stm32_development/murasaki/murasaki/murasaki_assert.hpp
+++ b/stm32_development/murasaki/murasaki/murasaki_assert.hpp
@@ -39,7 +39,7 @@
3939 murasaki::debugger->printf("--------------------\n\r");\
4040 murasaki::debugger->printf(MURASAKI_ASSERT_MSG, __func__, __LINE__,__FILE__ );\
4141 murasaki::debugger->printf("Fail expression : %s\r\n", #COND);\
42- if ( murasaki::isTaskContext() )\
42+ if ( murasaki::IsTaskContext() )\
4343 vTaskSuspend(nullptr);\
4444 }
4545 #endif
--- a/stm32_development/murasaki/murasaki/murasaki_defs.hpp
+++ b/stm32_development/murasaki/murasaki/murasaki_defs.hpp
@@ -86,7 +86,7 @@ enum SpiClockPhase
8686 * \brief determine task or ISR context
8787 * \returns true if task context, false if ISR context.
8888 */
89-inline bool isTaskContext()
89+inline bool IsTaskContext()
9090 {
9191 // portNVIC_INT_CTRL_REG is mapped to the address 0xe000ed04 by portmacro.h. This register is
9292 // officially called as NVIC ICSR by ARM
--- a/stm32_development/murasaki/murasaki/synchronizer.cpp
+++ b/stm32_development/murasaki/murasaki/synchronizer.cpp
@@ -24,14 +24,14 @@ Synchronizer::~Synchronizer()
2424
2525 bool Synchronizer::Wait(WaitMilliSeconds timeout_ms)
2626 {
27- MURASAKI_ASSERT(isTaskContext());
27+ MURASAKI_ASSERT(IsTaskContext());
2828 return (pdTRUE == xSemaphoreTake(semaphore_, timeout_ms / portTICK_PERIOD_MS));
2929
3030 }
3131
3232 void Synchronizer::Release()
3333 {
34- if (isTaskContext())
34+ if (IsTaskContext())
3535 ::xSemaphoreGive(semaphore_ );
3636 else
3737 ::xSemaphoreGiveFromISR(semaphore_, nullptr);
--- a/stm32_development/murasaki/murasaki/uartlogger.cpp
+++ b/stm32_development/murasaki/murasaki/uartlogger.cpp
@@ -27,7 +27,7 @@ void UartLogger::putMessage(char message[], unsigned int size)
2727 {
2828 MURASAKI_ASSERT(nullptr != message)
2929 MURASAKI_ASSERT(65536 > size);
30- MURASAKI_ASSERT(isTaskContext());
30+ MURASAKI_ASSERT(IsTaskContext());
3131 uart_->Transmit(reinterpret_cast<uint8_t *>(message), // Message to send
3232 size, // length of message by byte.
3333 static_cast<WaitMilliSeconds>( PLATFORM_CONFIG_DEBUG_SERIAL_TIMEOUT) // wait eternaly
@@ -39,7 +39,7 @@ char UartLogger::getCharacter()
3939 {
4040 char buf;
4141
42- MURASAKI_ASSERT(isTaskContext());
42+ MURASAKI_ASSERT(IsTaskContext());
4343 uart_->Receive(reinterpret_cast<uint8_t *>(&buf), // buffer to receive
4444 1, // receive one char
4545 (WaitMilliSeconds) PLATFORM_CONFIG_DEBUG_SERIAL_TIMEOUT); // wait forever