update cordio pal phy to new 5.0 stack

pull/7899/head
paul-szczepanek-arm 2018-07-18 10:02:21 +01:00 committed by Vincent Coubard
parent 8090e7acd8
commit e0ca4a093f
2 changed files with 4 additions and 3 deletions

View File

@ -338,6 +338,7 @@ void BLE::stack_setup()
DmConnMasterInit();
DmConnSlaveInit();
DmSecInit();
DmPhyInit();
// Note: enable once security is supported
DmSecLescInit();

View File

@ -334,7 +334,7 @@ ble_error_t Gap::set_address_resolution(
}
ble_error_t Gap::read_phy(connection_handle_t connection) {
HciLeReadPhyCmd(connection);
DmReadPhy(connection);
return BLE_ERROR_NONE;
}
@ -342,7 +342,7 @@ ble_error_t Gap::set_prefered_phys(
const phy_set_t& tx_phys,
const phy_set_t& rx_phys
) {
HciLeSetDefaultPhyCmd(
DmSetDefaultPhy(
phy_set_t::all_phys_value(tx_phys, rx_phys),
tx_phys.value(),
rx_phys.value()
@ -366,7 +366,7 @@ ble_error_t Gap::set_phy(
all_phys |= 0x02;
}
HciLeSetPhyCmd(
DmSetPhy(
connection,
phy_set_t::all_phys_value(tx_phys, rx_phys),
tx_phys.value(),