diff --git a/src/posix/platform/hdlc_interface.cpp b/src/posix/platform/hdlc_interface.cpp index e97197f50..9b185db06 100644 --- a/src/posix/platform/hdlc_interface.cpp +++ b/src/posix/platform/hdlc_interface.cpp @@ -121,7 +121,7 @@ #if OPENTHREAD_POSIX_CONFIG_RCP_UART_ENABLE namespace ot { -namespace PosixApp { +namespace Posix { HdlcInterface::HdlcInterface(SpinelInterface::Callbacks &aCallback, SpinelInterface::RxFrameBuffer &aFrameBuffer) : mCallbacks(aCallback) @@ -635,6 +635,6 @@ void HdlcInterface::HandleHdlcFrame(otError aError) } } -} // namespace PosixApp +} // namespace Posix } // namespace ot #endif // OPENTHREAD_POSIX_CONFIG_RCP_UART_ENABLE diff --git a/src/posix/platform/hdlc_interface.hpp b/src/posix/platform/hdlc_interface.hpp index dd4ec8236..621ad26c8 100644 --- a/src/posix/platform/hdlc_interface.hpp +++ b/src/posix/platform/hdlc_interface.hpp @@ -42,7 +42,7 @@ #if OPENTHREAD_POSIX_CONFIG_RCP_UART_ENABLE namespace ot { -namespace PosixApp { +namespace Posix { /** * This class defines an HDLC interface to the Radio Co-processor (RCP) @@ -215,7 +215,7 @@ private: Hdlc::Decoder mHdlcDecoder; }; -} // namespace PosixApp +} // namespace Posix } // namespace ot #endif // OPENTHREAD_POSIX_CONFIG_RCP_UART_ENABLE diff --git a/src/posix/platform/radio_spinel.cpp b/src/posix/platform/radio_spinel.cpp index 63ce01e64..08e41ce55 100644 --- a/src/posix/platform/radio_spinel.cpp +++ b/src/posix/platform/radio_spinel.cpp @@ -68,10 +68,10 @@ using ot::Spinel::Decoder; -static ot::PosixApp::RadioSpinel sRadioSpinel; +static ot::Posix::RadioSpinel sRadioSpinel; namespace ot { -namespace PosixApp { +namespace Posix { static otError SpinelStatusToOtError(spinel_status_t aError) { @@ -245,7 +245,7 @@ otError RadioSpinel::CheckSpinelVersion(void) if ((versionMajor != SPINEL_PROTOCOL_VERSION_THREAD_MAJOR) || (versionMinor != SPINEL_PROTOCOL_VERSION_THREAD_MINOR)) { - otLogCritPlat("Spinel version mismatch - PosixApp:%d.%d, RCP:%d.%d", SPINEL_PROTOCOL_VERSION_THREAD_MAJOR, + otLogCritPlat("Spinel version mismatch - Posix:%d.%d, RCP:%d.%d", SPINEL_PROTOCOL_VERSION_THREAD_MAJOR, SPINEL_PROTOCOL_VERSION_THREAD_MINOR, versionMajor, versionMinor); DieNow(OT_EXIT_RADIO_SPINEL_INCOMPATIBLE); } @@ -1600,7 +1600,7 @@ otRadioState RadioSpinel::GetState(void) const return sOtRadioStateMap[mState]; } -} // namespace PosixApp +} // namespace Posix } // namespace ot void otPlatRadioGetIeeeEui64(otInstance *aInstance, uint8_t *aIeeeEui64) @@ -1849,7 +1849,7 @@ exit: #endif #if OPENTHREAD_POSIX_VIRTUAL_TIME -void ot::PosixApp::RadioSpinel::Process(const Event &aEvent) +void ot::Posix::RadioSpinel::Process(const Event &aEvent) { if (mRxFrameBuffer.HasSavedFrame()) { diff --git a/src/posix/platform/radio_spinel.hpp b/src/posix/platform/radio_spinel.hpp index 64e11f6f7..e754d7b37 100644 --- a/src/posix/platform/radio_spinel.hpp +++ b/src/posix/platform/radio_spinel.hpp @@ -55,7 +55,7 @@ #include "ncp/ncp_config.h" namespace ot { -namespace PosixApp { +namespace Posix { class RadioSpinel : public SpinelInterface::Callbacks { @@ -729,7 +729,7 @@ private: uint64_t mTxRadioEndUs; }; -} // namespace PosixApp +} // namespace Posix } // namespace ot #endif // RADIO_SPINEL_HPP_ diff --git a/src/posix/platform/spi_interface.cpp b/src/posix/platform/spi_interface.cpp index b3e8b66df..96172266d 100644 --- a/src/posix/platform/spi_interface.cpp +++ b/src/posix/platform/spi_interface.cpp @@ -60,7 +60,7 @@ #include namespace ot { -namespace PosixApp { +namespace Posix { SpiInterface::SpiInterface(SpinelInterface::Callbacks &aCallback, SpinelInterface::RxFrameBuffer &aFrameBuffer) : mCallbacks(aCallback) @@ -782,7 +782,7 @@ void SpiInterface::LogStats(void) otLogInfoPlat("INFO: mSpiTxFrameCount=%" PRIu64, mSpiTxFrameCount); otLogInfoPlat("INFO: mSpiTxFrameByteCount=%" PRIu64, mSpiTxFrameByteCount); } -} // namespace PosixApp +} // namespace Posix } // namespace ot #endif // OPENTHREAD_POSIX_CONFIG_RCP_SPI_ENABLE diff --git a/src/posix/platform/spi_interface.hpp b/src/posix/platform/spi_interface.hpp index 3e4891c4a..05649dc09 100644 --- a/src/posix/platform/spi_interface.hpp +++ b/src/posix/platform/spi_interface.hpp @@ -46,7 +46,7 @@ #include "ncp/ncp_spi.hpp" namespace ot { -namespace PosixApp { +namespace Posix { /** * This class defines an SPI interface to the Radio Co-processor (RCP). @@ -220,7 +220,7 @@ private: uint16_t mSpiSlaveDataLen; }; -} // namespace PosixApp +} // namespace Posix } // namespace ot #endif // OPENTHREAD_POSIX_CONFIG_RCP_SPI_ENABLE diff --git a/src/posix/platform/spinel_interface.hpp b/src/posix/platform/spinel_interface.hpp index adce2f975..5e203139a 100644 --- a/src/posix/platform/spinel_interface.hpp +++ b/src/posix/platform/spinel_interface.hpp @@ -40,7 +40,7 @@ #include "lib/hdlc/hdlc.hpp" namespace ot { -namespace PosixApp { +namespace Posix { class SpinelInterface { @@ -78,7 +78,7 @@ public: void HandleReceivedFrame(void); }; }; -} // namespace PosixApp +} // namespace Posix } // namespace ot #endif // POSIX_APP_SPINEL_INTERFACE_HPP_