mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 08:07:47 +00:00
[posix] rename namespace to posix (#4736)
This commit simply renames namespace of PosixApp to Posix.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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())
|
||||
{
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
#include <linux/spi/spidev.h>
|
||||
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user