BLE: Remove cordio namespace

pull/13475/head
Vincent Coubard 2020-08-24 15:51:06 +01:00
parent d914cb1fb2
commit 6df7846bbb
4 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@
#include "source/pal/PalAttClient.h"
namespace ble {
namespace cordio {
namespace impl {
class PalAttClient final : public ble::PalAttClient {
@ -474,7 +474,7 @@ private:
mbed::Callback<void(connection_handle_t)> _transaction_timeout_cb;
};
} // namespace cordio
} // namespace impl
} // namespace ble
#endif /* IMPL_PAL_ATT_CLIENT_ */

View File

@ -257,7 +257,7 @@ ble::GattClient &BLEInstanceBase::getGattClient()
PalGattClient &BLEInstanceBase::getPalGattClient()
{
static PalAttClientToGattClient pal_gatt_client(cordio::PalAttClient::get_client());
static PalAttClientToGattClient pal_gatt_client(impl::PalAttClient::get_client());
return pal_gatt_client;
}
@ -598,7 +598,7 @@ void BLEInstanceBase::stack_setup()
#if BLE_FEATURE_ATT
#if BLE_FEATURE_GATT_CLIENT
AttRegister((attCback_t) cordio::PalAttClient::att_client_handler);
AttRegister((attCback_t) impl::PalAttClient::att_client_handler);
#else
AttRegister((attCback_t) ble::GattServer::att_cb);
#endif // BLE_FEATURE_GATT_CLIENT

View File

@ -27,7 +27,7 @@
#include "att_defs.h"
namespace ble {
namespace cordio {
namespace impl {
PalAttClient::PalAttClient() : _local_sign_counter(0)
{
@ -451,5 +451,5 @@ void PalAttClient::att_client_handler(const attEvt_t *event)
#endif // BLE_FEATURE_GATT_SERVER
}
} // namespace cordio
} // namespace impl
} // ble

View File

@ -364,7 +364,7 @@ ble_error_t PalSecurityManager::set_csrk(
_csrk = csrk;
DmSecSetLocalCsrk(_csrk.data());
// extra set the sign counter used by the client
cordio::PalAttClient::get_client().set_sign_counter(sign_counter);
impl::PalAttClient::get_client().set_sign_counter(sign_counter);
return BLE_ERROR_NONE;
}