• 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

テスト用のあれこれ共用フォルダ


Commit MetaInfo

Revisión77791bcd80466e0a62b2af58a750674e951afd4e (tree)
Tiempo2019-02-04 13:43:43
Autortakemasa <suikan@user...>
Commitertakemasa

Log Message

Refactering class name.

Changeng class name from Abstract*** to ***Strategy,
to belong with the pattern programming.

Cambiar Resumen

Diferencia incremental

--- a/stm32_development/murasaki/.settings/language.settings.xml
+++ b/stm32_development/murasaki/.settings/language.settings.xml
@@ -6,7 +6,7 @@
66 <provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
77 <provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
88 <provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
9- <provider class="fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector" console="false" env-hash="1318604374853316739" id="fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="Ac6 SW4 STM32 MCU Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
9+ <provider class="fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector" console="false" env-hash="-1429691010231092235" id="fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="Ac6 SW4 STM32 MCU Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
1010 <language-scope id="org.eclipse.cdt.core.gcc"/>
1111 <language-scope id="org.eclipse.cdt.core.g++"/>
1212 </provider>
@@ -18,7 +18,7 @@
1818 <provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
1919 <provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
2020 <provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
21- <provider class="fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector" console="false" env-hash="1318604374853316739" id="fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="Ac6 SW4 STM32 MCU Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
21+ <provider class="fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector" console="false" env-hash="-1429691010231092235" id="fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="Ac6 SW4 STM32 MCU Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
2222 <language-scope id="org.eclipse.cdt.core.gcc"/>
2323 <language-scope id="org.eclipse.cdt.core.g++"/>
2424 </provider>
--- a/stm32_development/murasaki/Inc/platform_defs.hpp
+++ b/stm32_development/murasaki/Inc/platform_defs.hpp
@@ -79,17 +79,17 @@ namespace murasaki {
7979 struct Platform
8080 {
8181 // Platform dependent Custom variables.
82- AbstractUart * uart_console; ///< UART wrapping class object for debugging
82+ UartStrategy * uart_console; ///< UART wrapping class object for debugging
8383 AbstractLogger * logger; ///< logging class object for debugger
8484
8585 AbstractBitOut * led; ///< GP out under test
86- AbstractUart * uart; ///< UART under test
86+ UartStrategy * uart; ///< UART under test
8787 AbstractSpiMaster * spiMaster; ///< SPI Master under test
8888 AbstractSpiSlave * spiSlave; ///< SPI Slave under test
8989 AbstractI2CMaster * i2cMaster; ///< I2C Master under test
9090 AbstractI2cSlave * i2cSlave; ///< I2C Slave under test
9191
92- AbstractTask * task1; ///< Task under test
92+ TaskStrategy * task1; ///< Task under test
9393
9494 };
9595
--- a/stm32_development/murasaki/murasaki/abstractbitin.hpp
+++ b/stm32_development/murasaki/murasaki/abstractbitin.hpp
@@ -8,7 +8,7 @@
88 #ifndef ABSTRACTBITIN_HPP_
99 #define ABSTRACTBITIN_HPP_
1010
11-#include <abstractperipheral.hpp>
11+#include <peripheralstrategy.hpp>
1212
1313 namespace murasaki {
1414 /**
@@ -18,7 +18,7 @@ namespace murasaki {
1818 * A prototype of the general purpose bit input class
1919 *
2020 */
21-class AbstractBitIn: public AbstractPeripheral {
21+class AbstractBitIn: public PeripheralStrategy {
2222 public:
2323 /**
2424 * @brief Get a status of the input pin
--- a/stm32_development/murasaki/murasaki/abstractbitout.hpp
+++ b/stm32_development/murasaki/murasaki/abstractbitout.hpp
@@ -8,7 +8,7 @@
88 #ifndef ABSTRACTBITOUT_HPP_
99 #define ABSTRACTBITOUT_HPP_
1010
11-#include <abstractperipheral.hpp>
11+#include <peripheralstrategy.hpp>
1212
1313 namespace murasaki {
1414 /**
@@ -19,7 +19,7 @@ namespace murasaki {
1919 *
2020 */
2121
22-class AbstractBitOut: public AbstractPeripheral {
22+class AbstractBitOut: public PeripheralStrategy {
2323 public:
2424 /**
2525 * @brief Set a status of the output pin
--- a/stm32_development/murasaki/murasaki/abstracti2cmaster.hpp
+++ b/stm32_development/murasaki/murasaki/abstracti2cmaster.hpp
@@ -9,7 +9,7 @@
99 #ifndef ABSTRACTI2CMASTER_HPP_
1010 #define ABSTRACTI2CMASTER_HPP_
1111
12-#include "abstractperipheral.hpp"
12+#include <peripheralstrategy.hpp>
1313
1414 namespace murasaki {
1515 /**
@@ -27,7 +27,7 @@ namespace murasaki {
2727 * Transmit/Receive.
2828 */
2929
30-class AbstractI2CMaster : murasaki::AbstractPeripheral
30+class AbstractI2CMaster : murasaki::PeripheralStrategy
3131 {
3232 public:
3333
--- a/stm32_development/murasaki/murasaki/abstracti2cslave.hpp
+++ b/stm32_development/murasaki/murasaki/abstracti2cslave.hpp
@@ -9,7 +9,7 @@
99 #ifndef ABSTRACTI2CSLAVE_HPP_
1010 #define ABSTRACTI2CSLAVE_HPP_
1111
12-#include <abstractperipheral.hpp>
12+#include <peripheralstrategy.hpp>
1313
1414 namespace murasaki {
1515 /**
@@ -25,7 +25,7 @@ namespace murasaki {
2525 * Two call back member functions are prepared to sync with the interrupt which tells the end of
2626 * Transmit/Receive.
2727 */
28-class AbstractI2cSlave : public murasaki::AbstractPeripheral {
28+class AbstractI2cSlave : public murasaki::PeripheralStrategy {
2929 public:
3030 /**
3131 * @brief Thread safe, blocking transmission over I2C.
--- a/stm32_development/murasaki/murasaki/abstractlogger.hpp
+++ b/stm32_development/murasaki/murasaki/abstractlogger.hpp
@@ -9,7 +9,7 @@
99 #ifndef ABSTRACTLOGGER_HPP_
1010 #define ABSTRACTLOGGER_HPP_
1111
12-#include <abstractperipheral.hpp>
12+#include <peripheralstrategy.hpp>
1313 #include <stdint.h>
1414 namespace murasaki {
1515
@@ -72,7 +72,7 @@ class AbstractLogger
7272 * \brief This special method helps derived loggers. The loggers can access the raw device, in case of the
7373 * post mortem processing.
7474 */
75- static void * GetPeripheralHandle(murasaki::AbstractPeripheral * peripheral);
75+ static void * GetPeripheralHandle(murasaki::PeripheralStrategy * peripheral);
7676 };
7777 /**
7878 * \}
@@ -81,7 +81,7 @@ class AbstractLogger
8181 } /* namespace murasaki */
8282
8383 inline void* murasaki::AbstractLogger::GetPeripheralHandle(
84- murasaki::AbstractPeripheral* peripheral)
84+ murasaki::PeripheralStrategy* peripheral)
8585 {
8686 return(peripheral->GetPeripheralHandle());
8787 }
--- a/stm32_development/murasaki/murasaki/abstractspimaster.hpp
+++ b/stm32_development/murasaki/murasaki/abstractspimaster.hpp
@@ -10,7 +10,7 @@
1010 #define ABSTRACTSPIMASTER_HPP_
1111
1212 #include <abstractspislavespecifier.hpp>
13-#include "abstractperipheral.hpp"
13+#include <peripheralstrategy.hpp>
1414
1515 namespace murasaki {
1616
@@ -21,7 +21,7 @@ namespace murasaki {
2121 *
2222 * \ingroup MURASAKI_ABSTRACT_GROUP
2323 */
24-class AbstractSpiMaster:public murasaki::AbstractPeripheral
24+class AbstractSpiMaster:public murasaki::PeripheralStrategy
2525 {
2626 public:
2727 /**
--- a/stm32_development/murasaki/murasaki/abstractspislave.hpp
+++ b/stm32_development/murasaki/murasaki/abstractspislave.hpp
@@ -9,7 +9,7 @@
99 #ifndef ABSTRACTSPISLAVE_HPP_
1010 #define ABSTRACTSPISLAVE_HPP_
1111
12-#include "abstractperipheral.hpp"
12+#include <peripheralstrategy.hpp>
1313
1414 namespace murasaki {
1515
@@ -20,7 +20,7 @@ namespace murasaki {
2020 *
2121 * \ingroup MURASAKI_ABSTRACT_GROUP
2222 */
23-class AbstractSpiSlave : public murasaki::AbstractPeripheral
23+class AbstractSpiSlave : public murasaki::PeripheralStrategy
2424 {
2525 public:
2626 /**
--- a/stm32_development/murasaki/murasaki/debuggerautoreprinttask.cpp
+++ b/stm32_development/murasaki/murasaki/debuggerautoreprinttask.cpp
@@ -16,7 +16,7 @@ DebuggerAutoRePrintTask::DebuggerAutoRePrintTask(const char * task_name,
1616 UBaseType_t task_priority,
1717 const void * task_parameter)
1818 // Forward initialization parameter to the parent class
19- : AbstractTask(task_name, stack_depth, task_priority, task_parameter)
19+ : TaskStrategy(task_name, stack_depth, task_priority, task_parameter)
2020 {
2121 // Do nothing
2222 }
--- a/stm32_development/murasaki/murasaki/debuggerautoreprinttask.hpp
+++ b/stm32_development/murasaki/murasaki/debuggerautoreprinttask.hpp
@@ -8,7 +8,7 @@
88 #ifndef DEBUGGERAUTOREPRINTTASK_HPP_
99 #define DEBUGGERAUTOREPRINTTASK_HPP_
1010
11-#include <abstracttask.hpp>
11+#include <taskstrategy.hpp>
1212
1313 namespace murasaki {
1414 /**
@@ -22,7 +22,7 @@ namespace murasaki {
2222 * @ingroup MURASAKI_HELPER_GROUP
2323 */
2424
25-class DebuggerAutoRePrintTask : public AbstractTask
25+class DebuggerAutoRePrintTask : public TaskStrategy
2626 {
2727 public:
2828 /**
--- a/stm32_development/murasaki/murasaki/debuggertxtask.cpp
+++ b/stm32_development/murasaki/murasaki/debuggertxtask.cpp
@@ -16,7 +16,7 @@ DebuggerTxTask::DebuggerTxTask(const char * task_name,
1616 UBaseType_t task_priority,
1717 const void * task_parameter)
1818 // Forward initialization parameter to the parent class
19- : AbstractTask(task_name, stack_depth, task_priority, task_parameter)
19+ : TaskStrategy(task_name, stack_depth, task_priority, task_parameter)
2020 {
2121 // Do nothing
2222 }
--- a/stm32_development/murasaki/murasaki/debuggertxtask.hpp
+++ b/stm32_development/murasaki/murasaki/debuggertxtask.hpp
@@ -8,7 +8,7 @@
88 #ifndef DEBUGGERTXTASK_HPP_
99 #define DEBUGGERTXTASK_HPP_
1010
11-#include <abstracttask.hpp>
11+#include <taskstrategy.hpp>
1212
1313 namespace murasaki {
1414 /**
@@ -25,7 +25,7 @@ namespace murasaki {
2525 * @ingroup MURASAKI_HELPER_GROUP
2626 */
2727
28-class DebuggerTxTask : public AbstractTask
28+class DebuggerTxTask : public TaskStrategy
2929 {
3030 public:
3131 /**
--- a/stm32_development/murasaki/murasaki/debuggeruart.hpp
+++ b/stm32_development/murasaki/murasaki/debuggeruart.hpp
@@ -10,7 +10,7 @@
1010 #define DEBUGGER_UART_HPP_
1111
1212 #include <synchronizer.hpp>
13-#include "abstractuart.hpp"
13+#include <uartstrategy.hpp>
1414 #include "criticalsection.hpp"
1515
1616 // Check if CubeMX generates UART module
@@ -65,7 +65,7 @@ namespace murasaki {
6565 * Both methods can be called from only the task context. If these are called in the ISR
6666 * context, the result is unknown.
6767 */
68-class DebuggerUart : public AbstractUart
68+class DebuggerUart : public UartStrategy
6969 {
7070 public:
7171 /**
--- a/stm32_development/murasaki/murasaki/murasaki.hpp
+++ b/stm32_development/murasaki/murasaki/murasaki.hpp
@@ -26,13 +26,13 @@
2626
2727 // Include HAL to refer from submodules of murasaki.
2828 #include <debugger.hpp>
29+#include <taskstrategy.hpp>
2930
3031 // Configurations
3132 #include "murasaki_config.hpp"
3233 #include "murasaki_defs.hpp"
3334
3435 // Task and Stack
35-#include "abstracttask.hpp"
3636 #include "abstractfifo.hpp"
3737 #include "task.hpp"
3838
--- a/stm32_development/murasaki/murasaki/abstractperipheral.hpp
+++ b/stm32_development/murasaki/murasaki/peripheralstrategy.hpp
@@ -1,13 +1,13 @@
11 /**
2- * @file abstractperipheral.hpp
2+ * @file peripheralstrategy.hpp
33 *
44 * @date 2018/04/26
55 * @author: takemasa
66 * @brief Mother of All peripheral
77 */
88
9-#ifndef ABSTRACTPERIPHERAL_HPP_
10-#define ABSTRACTPERIPHERAL_HPP_
9+#ifndef PERIPHERALSTRATEGY_HPP_
10+#define PERIPHERALSTRATEGY_HPP_
1111
1212 #include "murasaki_defs.hpp"
1313
@@ -22,12 +22,12 @@ namespace murasaki {
2222 * raw peripheral to respond to the post mortem situation. By using class, programmer can pass the
2323 * raw peripheral handler to loggers, while keep it hidden from the application.
2424 */
25-class AbstractPeripheral {
25+class PeripheralStrategy {
2626 public:
2727 /**
2828 * @brief destructor
2929 */
30- virtual ~AbstractPeripheral(){};
30+ virtual ~PeripheralStrategy(){};
3131 private:
3232 /**
3333 * @brief pass the raw peripheral handler
@@ -39,4 +39,4 @@ friend class AbstractLogger;
3939
4040 } /* namespace murasaki */
4141
42-#endif /* ABSTRACTPERIPHERAL_HPP_ */
42+#endif /* PERIPHERALSTRATEGY_HPP_ */
--- a/stm32_development/murasaki/murasaki/task.cpp
+++ b/stm32_development/murasaki/murasaki/task.cpp
@@ -15,7 +15,7 @@ murasaki::Task::Task(
1515 const void* task_parameter,
1616 void (*task_body_func)(const void*))
1717 :
18- murasaki::AbstractTask(
18+ murasaki::TaskStrategy(
1919 task_name,
2020 stack_depth,
2121 task_priority,
--- a/stm32_development/murasaki/murasaki/task.hpp
+++ b/stm32_development/murasaki/murasaki/task.hpp
@@ -8,7 +8,7 @@
88 #ifndef TASK_HPP_
99 #define TASK_HPP_
1010
11-#include <abstracttask.hpp>
11+#include <taskstrategy.hpp>
1212
1313 namespace murasaki {
1414
@@ -35,7 +35,7 @@ namespace murasaki {
3535 * @endcode
3636 *
3737 */
38-class Task : public murasaki::AbstractTask {
38+class Task : public murasaki::TaskStrategy {
3939 public:
4040 /**
4141 * @brief Ease to use task class.
--- a/stm32_development/murasaki/murasaki/abstracttask.cpp
+++ b/stm32_development/murasaki/murasaki/taskstrategy.cpp
@@ -5,12 +5,12 @@
55 * Author: takemasa
66 */
77
8-#include <abstracttask.hpp>
8+#include <taskstrategy.hpp>
99 #include "murasaki_assert.hpp"
1010
1111 namespace murasaki {
1212
13-AbstractTask::AbstractTask(const char * task_name, unsigned short stack_depth, UBaseType_t priority, const void * parameter)
13+TaskStrategy::TaskStrategy(const char * task_name, unsigned short stack_depth, UBaseType_t priority, const void * parameter)
1414 : name_(task_name),
1515 stack_depth_(stack_depth),
1616 parameter_(parameter),
@@ -23,12 +23,12 @@ AbstractTask::AbstractTask(const char * task_name, unsigned short stack_depth, U
2323 task_ = 0;
2424 }
2525
26-AbstractTask::~AbstractTask()
26+TaskStrategy::~TaskStrategy()
2727 {
2828 vTaskDelete(task_);
2929 }
3030
31-void AbstractTask::Start()
31+void TaskStrategy::Start()
3232 {
3333 // Create a task.
3434 //
@@ -37,7 +37,7 @@ void AbstractTask::Start()
3737 // So FreeRTOS API can start the as task.
3838 // The passed static function calls TaskBody() member funciton, which is
3939 // defined by user.
40- BaseType_t task_result = ::xTaskCreate(AbstractTask::Launch, // task entity;
40+ BaseType_t task_result = ::xTaskCreate(TaskStrategy::Launch, // task entity;
4141 name_, // name of task
4242 stack_depth_, // stack depth [byte]
4343 this, // See AbstractTask::Launch for the details.
@@ -48,29 +48,29 @@ void AbstractTask::Start()
4848
4949 }
5050
51-void AbstractTask::Resume()
51+void TaskStrategy::Resume()
5252 {
5353 vTaskResume(task_);
5454 }
5555
56-void AbstractTask::Suspend()
56+void TaskStrategy::Suspend()
5757 {
5858 vTaskSuspend(task_);
5959 }
6060
61-const char* AbstractTask::GetName()
61+const char* TaskStrategy::GetName()
6262 {
6363 return name_;
6464 }
6565
6666 // This is a static member function
67-void AbstractTask::Launch(void * ptr)
67+void TaskStrategy::Launch(void * ptr)
6868 {
6969 MURASAKI_ASSERT(nullptr != ptr);
7070
7171 // Enforce the ptr to be AbstractTask * type. This is safe because this class member funciton is called from
7272 // only @ref AbsutractTask::Start(). And that member function always passes its "this" pointer.
73- AbstractTask * this_ptr = static_cast<AbstractTask *>(ptr);
73+ TaskStrategy * this_ptr = static_cast<TaskStrategy *>(ptr);
7474
7575 // Call its task body. This is virtual function. Then, while the ptr is enfoced to be AbstractTask type,
7676 // the TaksBody is always the member function of the callee class ( Descendants of AbstractTask ).
--- a/stm32_development/murasaki/murasaki/abstracttask.hpp
+++ b/stm32_development/murasaki/murasaki/taskstrategy.hpp
@@ -1,5 +1,5 @@
11 /**
2- * @file abstracttask.hpp
2+ * @file taskstrategy.hpp
33 *
44 * @date 2018/02/20
55 * @author: takemasa
@@ -7,8 +7,8 @@
77 */
88
99
10-#ifndef ABSTRACTTASK_HPP_
11-#define ABSTRACTTASK_HPP_
10+#ifndef TASKSTRATEGY_HPP_
11+#define TASKSTRATEGY_HPP_
1212
1313 #include <FreeRTOS.h>
1414 #include <task.h>
@@ -30,10 +30,10 @@ namespace murasaki {
3030 * Base on the description at http://idken.net/posts/2017-02-01-freertos_task_cpp/
3131 * @ingroup MURASAKI_ABSTRACT_GROUP
3232 */
33-class AbstractTask
33+class TaskStrategy
3434 {
3535 public:
36- AbstractTask() = delete;
36+ TaskStrategy() = delete;
3737 /**
3838 * @brief Constractor. Task entity is not created here.
3939 * @param task_name Name of task. Will be passed to task when started.
@@ -41,11 +41,11 @@ class AbstractTask
4141 * @param task_priority Priority of the task. from 1 to up to configMAX_PRIORITIES -1. The high number is the high priority.
4242 * @param task_parameter Optional parameter to the task.
4343 */
44- AbstractTask(const char * task_name, unsigned short stack_depth, UBaseType_t task_priority, const void * task_parameter);
44+ TaskStrategy(const char * task_name, unsigned short stack_depth, UBaseType_t task_priority, const void * task_parameter);
4545 /**
4646 * @brief Destructor
4747 */
48- virtual ~AbstractTask();
48+ virtual ~TaskStrategy();
4949 /**
5050 * @brief Create a task and run it.
5151 * @details
@@ -91,4 +91,4 @@ class AbstractTask
9191
9292 } /* namespace murasaki */
9393
94-#endif /* ABSTRACTTASK_HPP_ */
94+#endif /* TASKSTRATEGY_HPP_ */
--- a/stm32_development/murasaki/murasaki/uart.hpp
+++ b/stm32_development/murasaki/murasaki/uart.hpp
@@ -10,7 +10,7 @@
1010 #define UART_HPP_
1111
1212 #include <synchronizer.hpp>
13-#include "abstractuart.hpp"
13+#include <uartstrategy.hpp>
1414 #include "criticalsection.hpp"
1515
1616 // Check if CubeMX generates UART module
@@ -65,7 +65,7 @@ namespace murasaki {
6565 * Both methods can be called from only the task context. If these are called in the ISR
6666 * context, the result is unknown.
6767 */
68-class Uart : public AbstractUart
68+class Uart : public UartStrategy
6969 {
7070 public:
7171 /**
--- a/stm32_development/murasaki/murasaki/uartlogger.cpp
+++ b/stm32_development/murasaki/murasaki/uartlogger.cpp
@@ -15,7 +15,7 @@
1515
1616 namespace murasaki {
1717
18-UartLogger::UartLogger(AbstractUart * uart):
18+UartLogger::UartLogger(UartStrategy * uart):
1919 uart_ ( uart)
2020 {
2121 MURASAKI_ASSERT(nullptr != uart)
--- a/stm32_development/murasaki/murasaki/uartlogger.hpp
+++ b/stm32_development/murasaki/murasaki/uartlogger.hpp
@@ -9,8 +9,8 @@
99 #ifndef UARTLOGGER_HPP_
1010 #define UARTLOGGER_HPP_
1111
12+#include <uartstrategy.hpp>
1213 #include "abstractlogger.hpp"
13-#include "abstractuart.hpp"
1414
1515 // Check if CubeMX generates UART module
1616 #ifdef HAL_UART_MODULE_ENABLED
@@ -34,7 +34,7 @@ class UartLogger : public AbstractLogger
3434 * \brief Constructor
3535 * \param uart Pointer to the uart object.
3636 */
37- UartLogger(AbstractUart * uart);
37+ UartLogger(UartStrategy * uart);
3838 /**
3939 * \brief Message output member function.
4040 * \param message Non null terminated character array. This data is stored or output to the logger.
@@ -56,7 +56,7 @@ class UartLogger : public AbstractLogger
5656 virtual void DoPostMortem( void * debugger_fifo);
5757
5858 protected:
59- AbstractUart * const uart_;
59+ UartStrategy * const uart_;
6060 };
6161
6262 } /* namespace murasaki */
--- a/stm32_development/murasaki/murasaki/abstractuart.hpp
+++ b/stm32_development/murasaki/murasaki/uartstrategy.hpp
@@ -1,16 +1,16 @@
11 /**
2- * \file abstractuart.hpp
2+ * \file uartstrategy.hpp
33 *
44 * \date 2017/11/04
55 * \author: Takemasa Nakamura
66 * \brief Root class definition of the UART driver
77 */
88
9-#ifndef ABSTRACTUART_HPP_
10-#define ABSTRACTUART_HPP_
9+#ifndef UARTSTRATEGY_HPP_
10+#define UARTSTRATEGY_HPP_
1111
12+#include <peripheralstrategy.hpp>
1213 #include "murasaki_defs.hpp"
13-#include "abstractperipheral.hpp"
1414
1515 namespace murasaki {
1616
@@ -37,7 +37,7 @@ namespace murasaki {
3737 * Transmit/Recieve.
3838 */
3939
40-class AbstractUart : public murasaki::AbstractPeripheral {
40+class UartStrategy : public murasaki::PeripheralStrategy {
4141 public:
4242
4343 /**
@@ -124,4 +124,4 @@ public:
124124 */
125125 }
126126
127-#endif /* ABSTRACTUART_HPP_ */
127+#endif /* UARTSTRATEGY_HPP_ */