summaryrefslogtreecommitdiff
path: root/nrf-softdevice-s132
diff options
context:
space:
mode:
authorTimo Kröger <timo.kroeger@hitachienergy.com>2021-12-22 12:52:51 +0100
committerTimo Kröger <timo.kroeger@hitachienergy.com>2021-12-22 12:52:51 +0100
commitf81a201211d63a994528e69b1c5a224be9b53f85 (patch)
tree8b9fde02b66d8b98359a0b3c3823c8c94d5def4a /nrf-softdevice-s132
parent6a01c4ceb7d1f1d9fc06e74e9a264037ac1159c5 (diff)
downloadnrf-softdevice-f81a201211d63a994528e69b1c5a224be9b53f85.zip
Update toolchain
Update the toolchain to match embassy. I manually replaced `asm!` with `core::arch::asm!` in bindings because regenerating them resulted in a large diff.
Diffstat (limited to 'nrf-softdevice-s132')
-rw-r--r--nrf-softdevice-s132/src/bindings.rs264
-rw-r--r--nrf-softdevice-s132/src/lib.rs1
2 files changed, 132 insertions, 133 deletions
diff --git a/nrf-softdevice-s132/src/bindings.rs b/nrf-softdevice-s132/src/bindings.rs
index 3f20e7c..66d68b4 100644
--- a/nrf-softdevice-s132/src/bindings.rs
+++ b/nrf-softdevice-s132/src/bindings.rs
@@ -1685,7 +1685,7 @@ fn bindgen_test_layout_nrf_ecb_hal_data_block_t() {
#[inline(always)]
pub unsafe fn sd_mutex_new(p_mutex: *mut nrf_mutex_t) -> u32 {
let ret: u32;
- asm!("svc 44",
+ core::arch::asm!("svc 44",
inout("r0") to_asm(p_mutex) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1704,7 +1704,7 @@ pub unsafe fn sd_mutex_new(p_mutex: *mut nrf_mutex_t) -> u32 {
#[inline(always)]
pub unsafe fn sd_mutex_acquire(p_mutex: *mut nrf_mutex_t) -> u32 {
let ret: u32;
- asm!("svc 45",
+ core::arch::asm!("svc 45",
inout("r0") to_asm(p_mutex) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1722,7 +1722,7 @@ pub unsafe fn sd_mutex_acquire(p_mutex: *mut nrf_mutex_t) -> u32 {
#[inline(always)]
pub unsafe fn sd_mutex_release(p_mutex: *mut nrf_mutex_t) -> u32 {
let ret: u32;
- asm!("svc 46",
+ core::arch::asm!("svc 46",
inout("r0") to_asm(p_mutex) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1740,7 +1740,7 @@ pub unsafe fn sd_mutex_release(p_mutex: *mut nrf_mutex_t) -> u32 {
#[inline(always)]
pub unsafe fn sd_rand_application_pool_capacity_get(p_pool_capacity: *mut u8) -> u32 {
let ret: u32;
- asm!("svc 47",
+ core::arch::asm!("svc 47",
inout("r0") to_asm(p_pool_capacity) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1758,7 +1758,7 @@ pub unsafe fn sd_rand_application_pool_capacity_get(p_pool_capacity: *mut u8) ->
#[inline(always)]
pub unsafe fn sd_rand_application_bytes_available_get(p_bytes_available: *mut u8) -> u32 {
let ret: u32;
- asm!("svc 48",
+ core::arch::asm!("svc 48",
inout("r0") to_asm(p_bytes_available) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1778,7 +1778,7 @@ pub unsafe fn sd_rand_application_bytes_available_get(p_bytes_available: *mut u8
#[inline(always)]
pub unsafe fn sd_rand_application_vector_get(p_buff: *mut u8, length: u8) -> u32 {
let ret: u32;
- asm!("svc 49",
+ core::arch::asm!("svc 49",
inout("r0") to_asm(p_buff) => ret,
inout("r1") to_asm(length) => _,
lateout("r2") _,
@@ -1796,7 +1796,7 @@ pub unsafe fn sd_rand_application_vector_get(p_buff: *mut u8, length: u8) -> u32
#[inline(always)]
pub unsafe fn sd_power_reset_reason_get(p_reset_reason: *mut u32) -> u32 {
let ret: u32;
- asm!("svc 52",
+ core::arch::asm!("svc 52",
inout("r0") to_asm(p_reset_reason) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1814,7 +1814,7 @@ pub unsafe fn sd_power_reset_reason_get(p_reset_reason: *mut u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_reset_reason_clr(reset_reason_clr_msk: u32) -> u32 {
let ret: u32;
- asm!("svc 53",
+ core::arch::asm!("svc 53",
inout("r0") to_asm(reset_reason_clr_msk) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1833,7 +1833,7 @@ pub unsafe fn sd_power_reset_reason_clr(reset_reason_clr_msk: u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_mode_set(power_mode: u8) -> u32 {
let ret: u32;
- asm!("svc 50",
+ core::arch::asm!("svc 50",
inout("r0") to_asm(power_mode) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1849,7 +1849,7 @@ pub unsafe fn sd_power_mode_set(power_mode: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_system_off() -> u32 {
let ret: u32;
- asm!("svc 51",
+ core::arch::asm!("svc 51",
lateout("r0") ret,
lateout("r1") _,
lateout("r2") _,
@@ -1870,7 +1870,7 @@ pub unsafe fn sd_power_system_off() -> u32 {
#[inline(always)]
pub unsafe fn sd_power_pof_enable(pof_enable: u8) -> u32 {
let ret: u32;
- asm!("svc 54",
+ core::arch::asm!("svc 54",
inout("r0") to_asm(pof_enable) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1890,7 +1890,7 @@ pub unsafe fn sd_power_pof_enable(pof_enable: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_pof_threshold_set(threshold: u8) -> u32 {
let ret: u32;
- asm!("svc 55",
+ core::arch::asm!("svc 55",
inout("r0") to_asm(threshold) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1909,7 +1909,7 @@ pub unsafe fn sd_power_pof_threshold_set(threshold: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_ram_power_set(index: u8, ram_powerset: u32) -> u32 {
let ret: u32;
- asm!("svc 57",
+ core::arch::asm!("svc 57",
inout("r0") to_asm(index) => ret,
inout("r1") to_asm(ram_powerset) => _,
lateout("r2") _,
@@ -1928,7 +1928,7 @@ pub unsafe fn sd_power_ram_power_set(index: u8, ram_powerset: u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_ram_power_clr(index: u8, ram_powerclr: u32) -> u32 {
let ret: u32;
- asm!("svc 58",
+ core::arch::asm!("svc 58",
inout("r0") to_asm(index) => ret,
inout("r1") to_asm(ram_powerclr) => _,
lateout("r2") _,
@@ -1947,7 +1947,7 @@ pub unsafe fn sd_power_ram_power_clr(index: u8, ram_powerclr: u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_ram_power_get(index: u8, p_ram_power: *mut u32) -> u32 {
let ret: u32;
- asm!("svc 59",
+ core::arch::asm!("svc 59",
inout("r0") to_asm(index) => ret,
inout("r1") to_asm(p_ram_power) => _,
lateout("r2") _,
@@ -1966,7 +1966,7 @@ pub unsafe fn sd_power_ram_power_get(index: u8, p_ram_power: *mut u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_gpregret_set(gpregret_id: u32, gpregret_msk: u32) -> u32 {
let ret: u32;
- asm!("svc 60",
+ core::arch::asm!("svc 60",
inout("r0") to_asm(gpregret_id) => ret,
inout("r1") to_asm(gpregret_msk) => _,
lateout("r2") _,
@@ -1985,7 +1985,7 @@ pub unsafe fn sd_power_gpregret_set(gpregret_id: u32, gpregret_msk: u32) -> u32
#[inline(always)]
pub unsafe fn sd_power_gpregret_clr(gpregret_id: u32, gpregret_msk: u32) -> u32 {
let ret: u32;
- asm!("svc 61",
+ core::arch::asm!("svc 61",
inout("r0") to_asm(gpregret_id) => ret,
inout("r1") to_asm(gpregret_msk) => _,
lateout("r2") _,
@@ -2004,7 +2004,7 @@ pub unsafe fn sd_power_gpregret_clr(gpregret_id: u32, gpregret_msk: u32) -> u32
#[inline(always)]
pub unsafe fn sd_power_gpregret_get(gpregret_id: u32, p_gpregret: *mut u32) -> u32 {
let ret: u32;
- asm!("svc 62",
+ core::arch::asm!("svc 62",
inout("r0") to_asm(gpregret_id) => ret,
inout("r1") to_asm(p_gpregret) => _,
lateout("r2") _,
@@ -2023,7 +2023,7 @@ pub unsafe fn sd_power_gpregret_get(gpregret_id: u32, p_gpregret: *mut u32) -> u
#[inline(always)]
pub unsafe fn sd_power_dcdc_mode_set(dcdc_mode: u8) -> u32 {
let ret: u32;
- asm!("svc 63",
+ core::arch::asm!("svc 63",
inout("r0") to_asm(dcdc_mode) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2045,7 +2045,7 @@ pub unsafe fn sd_power_dcdc_mode_set(dcdc_mode: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_clock_hfclk_request() -> u32 {
let ret: u32;
- asm!("svc 66",
+ core::arch::asm!("svc 66",
lateout("r0") ret,
lateout("r1") _,
lateout("r2") _,
@@ -2066,7 +2066,7 @@ pub unsafe fn sd_clock_hfclk_request() -> u32 {
#[inline(always)]
pub unsafe fn sd_clock_hfclk_release() -> u32 {
let ret: u32;
- asm!("svc 67",
+ core::arch::asm!("svc 67",
lateout("r0") ret,
lateout("r1") _,
lateout("r2") _,
@@ -2087,7 +2087,7 @@ pub unsafe fn sd_clock_hfclk_release() -> u32 {
#[inline(always)]
pub unsafe fn sd_clock_hfclk_is_running(p_is_running: *mut u32) -> u32 {
let ret: u32;
- asm!("svc 68",
+ core::arch::asm!("svc 68",
inout("r0") to_asm(p_is_running) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2125,7 +2125,7 @@ pub unsafe fn sd_clock_hfclk_is_running(p_is_running: *mut u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_app_evt_wait() -> u32 {
let ret: u32;
- asm!("svc 65",
+ core::arch::asm!("svc 65",
lateout("r0") ret,
lateout("r1") _,
lateout("r2") _,
@@ -2143,7 +2143,7 @@ pub unsafe fn sd_app_evt_wait() -> u32 {
#[inline(always)]
pub unsafe fn sd_ppi_channel_enable_get(p_channel_enable: *mut u32) -> u32 {
let ret: u32;
- asm!("svc 32",
+ core::arch::asm!("svc 32",
inout("r0") to_asm(p_channel_enable) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2161,7 +2161,7 @@ pub unsafe fn sd_ppi_channel_enable_get(p_channel_enable: *mut u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_ppi_channel_enable_set(channel_enable_set_msk: u32) -> u32 {
let ret: u32;
- asm!("svc 33",
+ core::arch::asm!("svc 33",
inout("r0") to_asm(channel_enable_set_msk) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2179,7 +2179,7 @@ pub unsafe fn sd_ppi_channel_enable_set(channel_enable_set_msk: u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_ppi_channel_enable_clr(channel_enable_clr_msk: u32) -> u32 {
let ret: u32;
- asm!("svc 34",
+ core::arch::asm!("svc 34",
inout("r0") to_asm(channel_enable_clr_msk) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2204,7 +2204,7 @@ pub unsafe fn sd_ppi_channel_assign(
task_endpoint: *const self::c_void,
) -> u32 {
let ret: u32;
- asm!("svc 35",
+ core::arch::asm!("svc 35",
inout("r0") to_asm(channel_num) => ret,
inout("r1") to_asm(evt_endpoint) => _,
inout("r2") to_asm(task_endpoint) => _,
@@ -2223,7 +2223,7 @@ pub unsafe fn sd_ppi_channel_assign(
#[inline(always)]
pub unsafe fn sd_ppi_group_task_enable(group_num: u8) -> u32 {
let ret: u32;
- asm!("svc 36",
+ core::arch::asm!("svc 36",
inout("r0") to_asm(group_num) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2242,7 +2242,7 @@ pub unsafe fn sd_ppi_group_task_enable(group_num: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_ppi_group_task_disable(group_num: u8) -> u32 {
let ret: u32;
- asm!("svc 37",
+ core::arch::asm!("svc 37",
inout("r0") to_asm(group_num) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2262,7 +2262,7 @@ pub unsafe fn sd_ppi_group_task_disable(group_num: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_ppi_group_assign(group_num: u8, channel_msk: u32) -> u32 {
let ret: u32;
- asm!("svc 38",
+ core::arch::asm!("svc 38",
inout("r0") to_asm(group_num) => ret,
inout("r1") to_asm(channel_msk) => _,
lateout("r2") _,
@@ -2282,7 +2282,7 @@ pub unsafe fn sd_ppi_group_assign(group_num: u8, channel_msk: u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_ppi_group_get(group_num: u8, p_channel_msk: *mut u32) -> u32 {
let ret: u32;
- asm!("svc 39",
+ core::arch::asm!("svc 39",
inout("r0") to_asm(group_num) => ret,
inout("r1") to_asm(p_channel_msk) => _,
lateout("r2") _,
@@ -2323,7 +2323,7 @@ pub unsafe fn sd_ppi_group_get(group_num: u8, p_channel_msk: *mut u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_radio_notification_cfg_set(type_: u8, distance: u8) -> u32 {
let ret: u32;
- asm!("svc 69",
+ core::arch::asm!("svc 69",
inout("r0") to_asm(type_) => ret,
inout("r1") to_asm(distance) => _,
lateout("r2") _,
@@ -2349,7 +2349,7 @@ pub unsafe fn sd_radio_notification_cfg_set(type_: u8, distance: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_ecb_block_encrypt(p_ecb_data: *mut nrf_ecb_hal_data_t) -> u32 {
let ret: u32;
- asm!("svc 70",
+ core::arch::asm!("svc 70",
inout("r0") to_asm(p_ecb_data) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2379,7 +2379,7 @@ pub unsafe fn sd_ecb_blocks_encrypt(
p_data_blocks: *mut nrf_ecb_hal_data_block_t,
) -> u32 {
let ret: u32;
- asm!("svc 71",
+ core::arch::asm!("svc 71",
inout("r0") to_asm(block_count) => ret,
inout("r1") to_asm(p_data_blocks) => _,
lateout("r2") _,
@@ -2400,7 +2400,7 @@ pub unsafe fn sd_ecb_blocks_encrypt(
#[inline(always)]
pub unsafe fn sd_evt_get(p_evt_id: *mut u32) -> u32 {
let ret: u32;
- asm!("svc 75",
+ core::arch::asm!("svc 75",
inout("r0") to_asm(p_evt_id) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2421,7 +2421,7 @@ pub unsafe fn sd_evt_get(p_evt_id: *mut u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_temp_get(p_temp: *mut i32) -> u32 {
let ret: u32;
- asm!("svc 76",
+ core::arch::asm!("svc 76",
inout("r0") to_asm(p_temp) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2468,7 +2468,7 @@ pub unsafe fn sd_temp_get(p_temp: *mut i32) -> u32 {
#[inline(always)]
pub unsafe fn sd_flash_write(p_dst: *mut u32, p_src: *const u32, size: u32) -> u32 {
let ret: u32;
- asm!("svc 41",
+ core::arch::asm!("svc 41",
inout("r0") to_asm(p_dst) => ret,
inout("r1") to_asm(p_src) => _,
inout("r2") to_asm(size) => _,
@@ -2509,7 +2509,7 @@ pub unsafe fn sd_flash_write(p_dst: *mut u32, p_src: *const u32, size: u32) -> u
#[inline(always)]
pub unsafe fn sd_flash_page_erase(page_number: u32) -> u32 {
let ret: u32;
- asm!("svc 40",
+ core::arch::asm!("svc 40",
inout("r0") to_asm(page_number) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2546,7 +2546,7 @@ pub unsafe fn sd_flash_protect(
block_cfg3: u32,
) -> u32 {
let ret: u32;
- asm!("svc 42",
+ core::arch::asm!("svc 42",
inout("r0") to_asm(block_cfg0) => ret,
inout("r1") to_asm(block_cfg1) => _,
inout("r2") to_asm(block_cfg2) => _,
@@ -2578,7 +2578,7 @@ pub unsafe fn sd_flash_protect(
#[inline(always)]
pub unsafe fn sd_radio_session_open(p_radio_signal_callback: nrf_radio_signal_callback_t) -> u32 {
let ret: u32;
- asm!("svc 72",
+ core::arch::asm!("svc 72",
inout("r0") to_asm(p_radio_signal_callback) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2601,7 +2601,7 @@ pub unsafe fn sd_radio_session_open(p_radio_signal_callback: nrf_radio_signal_ca
#[inline(always)]
pub unsafe fn sd_radio_session_close() -> u32 {
let ret: u32;
- asm!("svc 73",
+ core::arch::asm!("svc 73",
lateout("r0") ret,
lateout("r1") _,
lateout("r2") _,
@@ -2648,7 +2648,7 @@ pub unsafe fn sd_radio_session_close() -> u32 {
#[inline(always)]
pub unsafe fn sd_radio_request(p_request: *const nrf_radio_request_t) -> u32 {
let ret: u32;
- asm!("svc 74",
+ core::arch::asm!("svc 74",
inout("r0") to_asm(p_request) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2679,7 +2679,7 @@ pub unsafe fn sd_radio_request(p_request: *const nrf_radio_request_t) -> u32 {
#[inline(always)]
pub unsafe fn sd_protected_register_write(p_register: *mut u32, value: u32) -> u32 {
let ret: u32;
- asm!("svc 43",
+ core::arch::asm!("svc 43",
inout("r0") to_asm(p_register) => ret,
inout("r1") to_asm(value) => _,
lateout("r2") _,
@@ -2849,7 +2849,7 @@ pub unsafe fn sd_softdevice_enable(
fault_handler: nrf_fault_handler_t,
) -> u32 {
let ret: u32;
- asm!("svc 16",
+ core::arch::asm!("svc 16",
inout("r0") to_asm(p_clock_lf_cfg) => ret,
inout("r1") to_asm(fault_handler) => _,
lateout("r2") _,
@@ -2874,7 +2874,7 @@ pub unsafe fn sd_softdevice_enable(
#[inline(always)]
pub unsafe fn sd_softdevice_disable() -> u32 {
let ret: u32;
- asm!("svc 17",
+ core::arch::asm!("svc 17",
lateout("r0") ret,
lateout("r1") _,
lateout("r2") _,
@@ -2892,7 +2892,7 @@ pub unsafe fn sd_softdevice_disable() -> u32 {
#[inline(always)]
pub unsafe fn sd_softdevice_is_enabled(p_softdevice_enabled: *mut u8) -> u32 {
let ret: u32;
- asm!("svc 18",
+ core::arch::asm!("svc 18",
inout("r0") to_asm(p_softdevice_enabled) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2912,7 +2912,7 @@ pub unsafe fn sd_softdevice_is_enabled(p_softdevice_enabled: *mut u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_softdevice_vector_table_base_set(address: u32) -> u32 {
let ret: u32;
- asm!("svc 19",
+ core::arch::asm!("svc 19",
inout("r0") to_asm(address) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -3740,7 +3740,7 @@ fn bindgen_test_layout_sd_mbr_command_t() {
#[inline(always)]
pub unsafe fn sd_mbr_command(param: *mut sd_mbr_command_t) -> u32 {
let ret: u32;
- asm!("svc 24",
+ core::arch::asm!("svc 24",
inout("r0") to_asm(param) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -8977,7 +8977,7 @@ fn bindgen_test_layout_ble_gap_conn_event_trigger_t() {
#[inline(always)]
pub unsafe fn sd_ble_gap_addr_set(p_addr: *const ble_gap_addr_t) -> u32 {
let ret: u32;
- asm!("svc 108",
+ core::arch::asm!("svc 108",
inout("r0") to_asm(p_addr) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -8999,7 +8999,7 @@ pub unsafe fn sd_ble_gap_addr_set(p_addr: *const ble_gap_addr_t) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_gap_addr_get(p_addr: *mut ble_gap_addr_t) -> u32 {
let ret: u32;
- asm!("svc 109",
+ core::arch::asm!("svc 109",
inout("r0") to_asm(p_addr) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -9027,7 +9027,7 @@ pub unsafe fn sd_ble_gap_addr_get(p_addr: *mut ble_gap_addr_t) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_gap_adv_addr_get(adv_handle: u8, p_addr: *mut ble_gap_addr_t) -> u32 {
let ret: u32;
- asm!("svc 147",
+ core::arch::asm!("svc 147",
inout("r0") to_asm(adv_handle) => ret,
inout("r1") to_asm(p_addr) => _,
lateout("r2") _,
@@ -9062,7 +9062,7 @@ pub unsafe fn sd_ble_gap_adv_addr_get(adv_handle: u8, p_addr: *mut ble_gap_addr_
#[inline(always)]
pub unsafe fn sd_ble_gap_whitelist_set(pp_wl_addrs: *const *const ble_gap_addr_t, len: u8) -> u32 {
let ret: u32;
- asm!("svc 110",
+ core::arch::asm!("svc 110",
inout("r0") to_asm(pp_wl_addrs) => ret,
inout("r1") to_asm(len) => _,
lateout("r2") _,
@@ -9106,7 +9106,7 @@ pub unsafe fn sd_ble_gap_device_identities_set(
len: u8,
) -> u32 {
let ret: u32;
- asm!("svc 111",
+ core::arch::asm!("svc 111",
inout("r0") to_asm(pp_id_keys) => ret,
inout("r1") to_asm(pp_local_irks) => _,
inout("r2") to_asm(len) => _,
@@ -9143,7 +9143,7 @@ pub unsafe fn sd_ble_gap_device_identities_set(
#[inline(always)]
pub unsafe fn sd_ble_gap_privacy_set(p_privacy_params: *const ble_gap_privacy_params_t) -> u32 {
let ret: u32;
- asm!("svc 112",
+ core::arch::asm!("svc 112",
inout("r0") to_asm(p_privacy_params) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -9166,7 +9166,7 @@ pub unsafe fn sd_ble_gap_privacy_set(p_privacy_params: *const ble_gap_privacy_pa
#[inline(always)]
pub unsafe fn sd_ble_gap_privacy_get(p_privacy_params: *mut ble_gap_privacy_params_t) -> u32 {
let ret: u32;
- asm!("svc 113",
+ core::arch::asm!("svc 113",
inout("r0") to_asm(p_privacy_params) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -9226,7 +9226,7 @@ pub unsafe fn sd_ble_gap_adv_set_configure(
p_adv_params: *const ble_gap_adv_params_t,
) -> u32 {
let ret: u32;
- asm!("svc 114",
+ core::arch::asm!("svc 114",
inout("r0") to_asm(p_adv_handle) => ret,
inout("r1") to_asm(p_adv_data) => _,
inout("r2") to_asm(p_adv_params) => _,
@@ -9282,7 +9282,7 @@ pub unsafe fn sd_ble_gap_adv_set_configure(
#[inline(always)]
pub unsafe fn sd_ble_gap_adv_start(adv_handle: u8, conn_cfg_tag: u8) -> u32 {
let ret: u32;
- asm!("svc 115",
+ core::arch::asm!("svc 115",
inout("r0") to_asm(adv_handle) => ret,
inout("r1") to_asm(conn_cfg_tag) => _,
lateout("r2") _,
@@ -9307,7 +9307,7 @@ pub unsafe fn sd_ble_gap_adv_start(adv_handle: u8, conn_cfg_tag: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_gap_adv_stop(adv_handle: u8) -> u32 {
let ret: u32;
- asm!("svc 116",
+ core::arch::asm!("svc 116",
inout("r0") to_asm(adv_handle) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -9356,7 +9356,7 @@ pub unsafe fn sd_ble_gap_conn_param_update(
p_conn_params: *const ble_gap_conn_params_t,
) -> u32 {
let ret: u32;
- asm!("svc 117",
+ core::arch::asm!("svc 117",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_conn_params) => _,
lateout("r2") _,
@@ -9389,7 +9389,7 @@ pub unsafe fn sd_ble_gap_conn_param_update(
#[inline(always)]
pub unsafe fn sd_ble_gap_disconnect(conn_handle: u16, hci_status_code: u8) -> u32 {
let ret: u32;
- asm!("svc 118",
+ core::arch::asm!("svc 118",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(hci_status_code) => _,
lateout("r2") _,
@@ -9423,7 +9423,7 @@ pub unsafe fn sd_ble_gap_disconnect(conn_handle: u16, hci_status_code: u8) -> u3
#[inline(always)]
pub unsafe fn sd_ble_gap_tx_power_set(role: u8, handle: u16, tx_power: i8) -> u32 {
let ret: u32;
- asm!("svc 119",
+ core::arch::asm!("svc 119",
inout("r0") to_asm(role) => ret,
inout("r1") to_asm(handle) => _,
inout("r2") to_asm(tx_power) => _,
@@ -9442,7 +9442,7 @@ pub unsafe fn sd_ble_gap_tx_power_set(role: u8, handle: u16, tx_power: i8) -> u3
#[inline(always)]
pub unsafe fn sd_ble_gap_appearance_set(appearance: u16) -> u32 {
let ret: u32;
- asm!("svc 120",
+ core::arch::asm!("svc 120",
inout("r0") to_asm(appearance) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -9461,7 +9461,7 @@ pub unsafe fn sd_ble_gap_appearance_set(appearance: u16) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_gap_appearance_get(p_appearance: *mut u16) -> u32 {
let ret: u32;
- asm!("svc 121",
+ core::arch::asm!("svc 121",
inout("r0") to_asm(p_appearance) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -9483,7 +9483,7 @@ pub unsafe fn sd_ble_gap_appearance_get(p_appearance: *mut u16) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_gap_ppcp_set(p_conn_params: *const ble_gap_conn_params_t) -> u32 {
let ret: u32;
- asm!("svc 122",
+ core::arch::asm!("svc 122",
inout("r0") to_asm(p_conn_params) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -9504,7 +9504,7 @@ pub unsafe fn sd_ble_gap_ppcp_set(p_conn_params: *const ble_gap_conn_params_t) -
#[inline(always)]
pub unsafe fn sd_ble_gap_ppcp_get(p_conn_params: *mut ble_gap_conn_params_t) -> u32 {
let ret: u32;
- asm!("svc 123",
+ core::arch::asm!("svc 123",
inout("r0") to_asm(p_conn_params) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -9535,7 +9535,7 @@ pub unsafe fn sd_ble_gap_device_name_set(
len: u16,
) -> u32 {
let ret: u32;
- asm!("svc 124",
+ core::arch::asm!("svc 124",
inout("r0") to_asm(p_write_perm) => ret,
inout("r1") to_asm(p_dev_name) => _,
inout("r2") to_asm(len) => _,
@@ -9561,7 +9561,7 @@ pub unsafe fn sd_ble_gap_device_name_set(
#[inline(always)]
pub unsafe fn sd_ble_gap_device_name_get(p_dev_name: *mut u8, p_len: *mut u16) -> u32 {
let ret: u32;
- asm!("svc 125",
+ core::arch::asm!("svc 125",
inout("r0") to_asm(p_dev_name) => ret,
inout("r1") to_asm(p_len) => _,
lateout("r2") _,
@@ -9629,7 +9629,7 @@ pub unsafe fn sd_ble_gap_authenticate(
p_sec_params: *const ble_gap_sec_params_t,
) -> u32 {
let ret: u32;
- asm!("svc 126",
+ core::arch::asm!("svc 126",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_sec_params) => _,
lateout("r2") _,
@@ -9706,7 +9706,7 @@ pub unsafe fn sd_ble_gap_sec_params_reply(
p_sec_keyset: *const ble_gap_sec_keyset_t,
) -> u32 {
let ret: u32;
- asm!("svc 127",
+ core::arch::asm!("svc 127",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(sec_status) => _,
inout("r2") to_asm(p_sec_params) => _,
@@ -9749,7 +9749,7 @@ pub unsafe fn sd_ble_gap_sec_params_reply(
#[inline(always)]
pub unsafe fn sd_ble_gap_auth_key_reply(conn_handle: u16, key_type: u8, p_key: *const u8) -> u32 {
let ret: u32;
- asm!("svc 128",
+ core::arch::asm!("svc 128",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(key_type) => _,
inout("r2") to_asm(p_key) => _,
@@ -9797,7 +9797,7 @@ pub unsafe fn sd_ble_gap_lesc_dhkey_reply(
p_dhkey: *const ble_gap_lesc_dhkey_t,
) -> u32 {
let ret: u32;
- asm!("svc 129",
+ core::arch::asm!("svc 129",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_dhkey) => _,
lateout("r2") _,
@@ -9828,7 +9828,7 @@ pub unsafe fn sd_ble_gap_lesc_dhkey_reply(
#[inline(always)]
pub unsafe fn sd_ble_gap_keypress_notify(conn_handle: u16, kp_not: u8) -> u32 {
let ret: u32;
- asm!("svc 130",
+ core::arch::asm!("svc 130",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(kp_not) => _,
lateout("r2") _,
@@ -9862,7 +9862,7 @@ pub unsafe fn sd_ble_gap_lesc_oob_data_get(
p_oobd_own: *mut ble_gap_lesc_oob_data_t,
) -> u32 {
let ret: u32;
- asm!("svc 131",
+ core::arch::asm!("svc 131",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_pk_own) => _,
inout("r2") to_asm(p_oobd_own) => _,
@@ -9908,7 +9908,7 @@ pub unsafe fn sd_ble_gap_lesc_oob_data_set(
p_oobd_peer: *const ble_gap_lesc_oob_data_t,
) -> u32 {
let ret: u32;
- asm!("svc 132",
+ core::arch::asm!("svc 132",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_oobd_own) => _,
inout("r2") to_asm(p_oobd_peer) => _,
@@ -9950,7 +9950,7 @@ pub unsafe fn sd_ble_gap_encrypt(
p_enc_info: *const ble_gap_enc_info_t,
) -> u32 {
let ret: u32;
- asm!("svc 133",
+ core::arch::asm!("svc 133",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_master_id) => _,
inout("r2") to_asm(p_enc_info) => _,
@@ -9990,7 +9990,7 @@ pub unsafe fn sd_ble_gap_sec_info_reply(
p_sign_info: *const ble_gap_sign_info_t,
) -> u32 {
let ret: u32;
- asm!("svc 134",
+ core::arch::asm!("svc 134",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_enc_info) => _,
inout("r2") to_asm(p_id_info) => _,
@@ -10014,7 +10014,7 @@ pub unsafe fn sd_ble_gap_conn_sec_get(
p_conn_sec: *mut ble_gap_conn_sec_t,
) -> u32 {
let ret: u32;
- asm!("svc 135",
+ core::arch::asm!("svc 135",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_conn_sec) => _,
lateout("r2") _,
@@ -10049,7 +10049,7 @@ pub unsafe fn sd_ble_gap_conn_sec_get(
#[inline(always)]
pub unsafe fn sd_ble_gap_rssi_start(conn_handle: u16, threshold_dbm: u8, skip_count: u8) -> u32 {
let ret: u32;
- asm!("svc 136",
+ core::arch::asm!("svc 136",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(threshold_dbm) => _,
inout("r2") to_asm(skip_count) => _,
@@ -10077,7 +10077,7 @@ pub unsafe fn sd_ble_gap_rssi_start(conn_handle: u16, threshold_dbm: u8, skip_co
#[inline(always)]
pub unsafe fn sd_ble_gap_rssi_stop(conn_handle: u16) -> u32 {
let ret: u32;
- asm!("svc 137",
+ core::arch::asm!("svc 137",
inout("r0") to_asm(conn_handle) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -10107,7 +10107,7 @@ pub unsafe fn sd_ble_gap_rssi_stop(conn_handle: u16) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_gap_rssi_get(conn_handle: u16, p_rssi: *mut i8, p_ch_index: *mut u8) -> u32 {
let ret: u32;
- asm!("svc 142",
+ core::arch::asm!("svc 142",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_rssi) => _,
inout("r2") to_asm(p_ch_index) => _,
@@ -10173,7 +10173,7 @@ pub unsafe fn sd_ble_gap_scan_start(
p_adv_report_buffer: *const ble_data_t,
) -> u32 {
let ret: u32;
- asm!("svc 138",
+ core::arch::asm!("svc 138",
inout("r0") to_asm(p_scan_params) => ret,
inout("r1") to_asm(p_adv_report_buffer) => _,
lateout("r2") _,
@@ -10197,7 +10197,7 @@ pub unsafe fn sd_ble_gap_scan_start(
#[inline(always)]
pub unsafe fn sd_ble_gap_scan_stop() -> u32 {
let ret: u32;
- asm!("svc 139",
+ core::arch::asm!("svc 139",
lateout("r0") ret,
lateout("r1") _,
lateout("r2") _,
@@ -10258,7 +10258,7 @@ pub unsafe fn sd_ble_gap_connect(
conn_cfg_tag: u8,
) -> u32 {
let ret: u32;
- asm!("svc 140",
+ core::arch::asm!("svc 140",
inout("r0") to_asm(p_peer_addr) => ret,
inout("r1") to_asm(p_scan_params) => _,
inout("r2") to_asm(p_conn_params) => _,
@@ -10280,7 +10280,7 @@ pub unsafe fn sd_ble_gap_connect(
#[inline(always)]
pub unsafe fn sd_ble_gap_connect_cancel() -> u32 {
let ret: u32;
- asm!("svc 141",
+ core::arch::asm!("svc 141",
lateout("r0") ret,
lateout("r1") _,
lateout("r2") _,
@@ -10343,7 +10343,7 @@ pub unsafe fn sd_ble_gap_connect_cancel() -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_gap_phy_update(conn_handle: u16, p_gap_phys: *const ble_gap_phys_t) -> u32 {
let ret: u32;
- asm!("svc 143",
+ core::arch::asm!("svc 143",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_gap_phys) => _,
lateout("r2") _,
@@ -10391,7 +10391,7 @@ pub unsafe fn sd_ble_gap_data_length_update(
p_dl_limitation: *mut ble_gap_data_length_limitation_t,
) -> u32 {
let ret: u32;
- asm!("svc 144",
+ core::arch::asm!("svc 144",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_dl_params) => _,
inout("r2") to_asm(p_dl_limitation) => _,
@@ -10433,7 +10433,7 @@ pub unsafe fn sd_ble_gap_data_length_update(
#[inline(always)]
pub unsafe fn sd_ble_gap_qos_channel_survey_start(interval_us: u32) -> u32 {
let ret: u32;
- asm!("svc 145",
+ core::arch::asm!("svc 145",
inout("r0") to_asm(interval_us) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -10453,7 +10453,7 @@ pub unsafe fn sd_ble_gap_qos_channel_survey_start(interval_us: u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_gap_qos_channel_survey_stop() -> u32 {
let ret: u32;
- asm!("svc 146",
+ core::arch::asm!("svc 146",
lateout("r0") ret,
lateout("r1") _,
lateout("r2") _,
@@ -10486,7 +10486,7 @@ pub unsafe fn sd_ble_gap_qos_channel_survey_stop() -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_gap_next_conn_evt_counter_get(conn_handle: u16, p_counter: *mut u16) -> u32 {
let ret: u32;
- asm!("svc 148",
+ core::arch::asm!("svc 148",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_counter) => _,
lateout("r2") _,
@@ -10520,7 +10520,7 @@ pub unsafe fn sd_ble_gap_conn_evt_trigger_start(
p_params: *const ble_gap_conn_event_trigger_t,
) -> u32 {
let ret: u32;
- asm!("svc 149",
+ core::arch::asm!("svc 149",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_params) => _,
lateout("r2") _,
@@ -10540,7 +10540,7 @@ pub unsafe fn sd_ble_gap_conn_evt_trigger_start(
#[inline(always)]
pub unsafe fn sd_ble_gap_conn_evt_trigger_stop(conn_handle: u16) -> u32 {
let ret: u32;
- asm!("svc 150",
+ core::arch::asm!("svc 150",
inout("r0") to_asm(conn_handle) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -11401,7 +11401,7 @@ pub unsafe fn sd_ble_l2cap_ch_setup(
p_params: *const ble_l2cap_ch_setup_params_t,
) -> u32 {
let ret: u32;
- asm!("svc 184",
+ core::arch::asm!("svc 184",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_local_cid) => _,
inout("r2") to_asm(p_params) => _,
@@ -11434,7 +11434,7 @@ pub unsafe fn sd_ble_l2cap_ch_setup(
#[inline(always)]
pub unsafe fn sd_ble_l2cap_ch_release(conn_handle: u16, local_cid: u16) -> u32 {
let ret: u32;
- asm!("svc 185",
+ core::arch::asm!("svc 185",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(local_cid) => _,
lateout("r2") _,
@@ -11482,7 +11482,7 @@ pub unsafe fn sd_ble_l2cap_ch_rx(
p_sdu_buf: *const ble_data_t,
) -> u32 {
let ret: u32;
- asm!("svc 186",
+ core::arch::asm!("svc 186",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(local_cid) => _,
inout("r2") to_asm(p_sdu_buf) => _,
@@ -11541,7 +11541,7 @@ pub unsafe fn sd_ble_l2cap_ch_tx(
p_sdu_buf: *const ble_data_t,
) -> u32 {
let ret: u32;
- asm!("svc 187",
+ core::arch::asm!("svc 187",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(local_cid) => _,
inout("r2") to_asm(p_sdu_buf) => _,
@@ -11600,7 +11600,7 @@ pub unsafe fn sd_ble_l2cap_ch_flow_control(
p_credits: *mut u16,
) -> u32 {
let ret: u32;
- asm!("svc 188",
+ core::arch::asm!("svc 188",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(local_cid) => _,
inout("r2") to_asm(credits) => _,
@@ -13265,7 +13265,7 @@ pub unsafe fn sd_ble_gattc_primary_services_discover(
p_srvc_uuid: *const ble_uuid_t,
) -> u32 {
let ret: u32;
- asm!("svc 155",
+ core::arch::asm!("svc 155",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(start_handle) => _,
inout("r2") to_asm(p_srvc_uuid) => _,
@@ -13304,7 +13304,7 @@ pub unsafe fn sd_ble_gattc_relationships_discover(
p_handle_range: *const ble_gattc_handle_range_t,
) -> u32 {
let ret: u32;
- asm!("svc 156",
+ core::arch::asm!("svc 156",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_handle_range) => _,
lateout("r2") _,
@@ -13345,7 +13345,7 @@ pub unsafe fn sd_ble_gattc_characteristics_discover(
p_handle_range: *const ble_gattc_handle_range_t,
) -> u32 {
let ret: u32;
- asm!("svc 157",
+ core::arch::asm!("svc 157",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_handle_range) => _,
lateout("r2") _,
@@ -13383,7 +13383,7 @@ pub unsafe fn sd_ble_gattc_descriptors_discover(
p_handle_range: *const ble_gattc_handle_range_t,
) -> u32 {
let ret: u32;
- asm!("svc 158",
+ core::arch::asm!("svc 158",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_handle_range) => _,
lateout("r2") _,
@@ -13423,7 +13423,7 @@ pub unsafe fn sd_ble_gattc_char_value_by_uuid_read(
p_handle_range: *const ble_gattc_handle_range_t,
) -> u32 {
let ret: u32;
- asm!("svc 160",
+ core::arch::asm!("svc 160",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_uuid) => _,
inout("r2") to_asm(p_handle_range) => _,
@@ -13459,7 +13459,7 @@ pub unsafe fn sd_ble_gattc_char_value_by_uuid_read(
#[inline(always)]
pub unsafe fn sd_ble_gattc_read(conn_handle: u16, handle: u16, offset: u16) -> u32 {
let ret: u32;
- asm!("svc 161",
+ core::arch::asm!("svc 161",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(handle) => _,
inout("r2") to_asm(offset) => _,
@@ -13498,7 +13498,7 @@ pub unsafe fn sd_ble_gattc_char_values_read(
handle_count: u16,
) -> u32 {
let ret: u32;
- asm!("svc 162",
+ core::arch::asm!("svc 162",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_handles) => _,
inout("r2") to_asm(handle_count) => _,
@@ -13557,7 +13557,7 @@ pub unsafe fn sd_ble_gattc_write(
p_write_params: *const ble_gattc_write_params_t,
) -> u32 {
let ret: u32;
- asm!("svc 163",
+ core::arch::asm!("svc 163",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_write_params) => _,
lateout("r2") _,
@@ -13584,7 +13584,7 @@ pub unsafe fn sd_ble_gattc_write(
#[inline(always)]
pub unsafe fn sd_ble_gattc_hv_confirm(conn_handle: u16, handle: u16) -> u32 {
let ret: u32;
- asm!("svc 164",
+ core::arch::asm!("svc 164",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(handle) => _,
lateout("r2") _,
@@ -13615,7 +13615,7 @@ pub unsafe fn sd_ble_gattc_attr_info_discover(
p_handle_range: *const ble_gattc_handle_range_t,
) -> u32 {
let ret: u32;
- asm!("svc 159",
+ core::arch::asm!("svc 159",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_handle_range) => _,
lateout("r2") _,
@@ -13658,7 +13658,7 @@ pub unsafe fn sd_ble_gattc_attr_info_discover(
#[inline(always)]
pub unsafe fn sd_ble_gattc_exchange_mtu_request(conn_handle: u16, client_rx_mtu: u16) -> u32 {
let ret: u32;
- asm!("svc 165",
+ core::arch::asm!("svc 165",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(client_rx_mtu) => _,
lateout("r2") _,
@@ -15339,7 +15339,7 @@ pub unsafe fn sd_ble_gatts_service_add(
p_handle: *mut u16,
) -> u32 {
let ret: u32;
- asm!("svc 168",
+ core::arch::asm!("svc 168",
inout("r0") to_asm(type_) => ret,
inout("r1") to_asm(p_uuid) => _,
inout("r2") to_asm(p_handle) => _,
@@ -15378,7 +15378,7 @@ pub unsafe fn sd_ble_gatts_include_add(
p_include_handle: *mut u16,
) -> u32 {
let ret: u32;
- asm!("svc 169",
+ core::arch::asm!("svc 169",
inout("r0") to_asm(service_handle) => ret,
inout("r1") to_asm(inc_srvc_handle) => _,
inout("r2") to_asm(p_include_handle) => _,
@@ -15421,7 +15421,7 @@ pub unsafe fn sd_ble_gatts_characteristic_add(
p_handles: *mut ble_gatts_char_handles_t,
) -> u32 {
let ret: u32;
- asm!("svc 170",
+ core::arch::asm!("svc 170",
inout("r0") to_asm(service_handle) => ret,
inout("r1") to_asm(p_char_md) => _,
inout("r2") to_asm(p_attr_char_value) => _,
@@ -15457,7 +15457,7 @@ pub unsafe fn sd_ble_gatts_descriptor_add(
p_handle: *mut u16,
) -> u32 {
let ret: u32;
- asm!("svc 171",
+ core::arch::asm!("svc 171",
inout("r0") to_asm(char_handle) => ret,
inout("r1") to_asm(p_attr) => _,
inout("r2") to_asm(p_handle) => _,
@@ -15494,7 +15494,7 @@ pub unsafe fn sd_ble_gatts_value_set(
p_value: *mut ble_gatts_value_t,
) -> u32 {
let ret: u32;
- asm!("svc 172",
+ core::arch::asm!("svc 172",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(handle) => _,
inout("r2") to_asm(p_value) => _,
@@ -15532,7 +15532,7 @@ pub unsafe fn sd_ble_gatts_value_get(
p_value: *mut ble_gatts_value_t,
) -> u32 {
let ret: u32;
- asm!("svc 173",
+ core::arch::asm!("svc 173",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(handle) => _,
inout("r2") to_asm(p_value) => _,
@@ -15610,7 +15610,7 @@ pub unsafe fn sd_ble_gatts_hvx(
p_hvx_params: *const ble_gatts_hvx_params_t,
) -> u32 {
let ret: u32;
- asm!("svc 174",
+ core::arch::asm!("svc 174",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_hvx_params) => _,
lateout("r2") _,
@@ -15660,7 +15660,7 @@ pub unsafe fn sd_ble_gatts_service_changed(
end_handle: u16,
) -> u32 {
let ret: u32;
- asm!("svc 175",
+ core::arch::asm!("svc 175",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(start_handle) => _,
inout("r2") to_asm(end_handle) => _,
@@ -15706,7 +15706,7 @@ pub unsafe fn sd_ble_gatts_rw_authorize_reply(
p_rw_authorize_reply_params: *const ble_gatts_rw_authorize_reply_params_t,
) -> u32 {
let ret: u32;
- asm!("svc 176",
+ core::arch::asm!("svc 176",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_rw_authorize_reply_params) => _,
lateout("r2") _,
@@ -15764,7 +15764,7 @@ pub unsafe fn sd_ble_gatts_sys_attr_set(
flags: u32,
) -> u32 {
let ret: u32;
- asm!("svc 177",
+ core::arch::asm!("svc 177",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_sys_attr_data) => _,
inout("r2") to_asm(len) => _,
@@ -15811,7 +15811,7 @@ pub unsafe fn sd_ble_gatts_sys_attr_get(
flags: u32,
) -> u32 {
let ret: u32;
- asm!("svc 178",
+ core::arch::asm!("svc 178",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_sys_attr_data) => _,
inout("r2") to_asm(p_len) => _,
@@ -15830,7 +15830,7 @@ pub unsafe fn sd_ble_gatts_sys_attr_get(
#[inline(always)]
pub unsafe fn sd_ble_gatts_initial_user_handle_get(p_handle: *mut u16) -> u32 {
let ret: u32;
- asm!("svc 179",
+ core::arch::asm!("svc 179",
inout("r0") to_asm(p_handle) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -15857,7 +15857,7 @@ pub unsafe fn sd_ble_gatts_attr_get(
p_md: *mut ble_gatts_attr_md_t,
) -> u32 {
let ret: u32;
- asm!("svc 180",
+ core::arch::asm!("svc 180",
inout("r0") to_asm(handle) => ret,
inout("r1") to_asm(p_uuid) => _,
inout("r2") to_asm(p_md) => _,
@@ -15897,7 +15897,7 @@ pub unsafe fn sd_ble_gatts_attr_get(
#[inline(always)]
pub unsafe fn sd_ble_gatts_exchange_mtu_reply(conn_handle: u16, server_rx_mtu: u16) -> u32 {
let ret: u32;
- asm!("svc 181",
+ core::arch::asm!("svc 181",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(server_rx_mtu) => _,
lateout("r2") _,
@@ -17103,7 +17103,7 @@ fn bindgen_test_layout_ble_cfg_t() {
#[inline(always)]
pub unsafe fn sd_ble_enable(p_app_ram_base: *mut u32) -> u32 {
let ret: u32;
- asm!("svc 96",
+ core::arch::asm!("svc 96",
inout("r0") to_asm(p_app_ram_base) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -17149,7 +17149,7 @@ pub unsafe fn sd_ble_enable(p_app_ram_base: *mut u32) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_cfg_set(cfg_id: u32, p_cfg: *const ble_cfg_t, app_ram_base: u32) -> u32 {
let ret: u32;
- asm!("svc 105",
+ core::arch::asm!("svc 105",
inout("r0") to_asm(cfg_id) => ret,
inout("r1") to_asm(p_cfg) => _,
inout("r2") to_asm(app_ram_base) => _,
@@ -17197,7 +17197,7 @@ pub unsafe fn sd_ble_cfg_set(cfg_id: u32, p_cfg: *const ble_cfg_t, app_ram_base:
#[inline(always)]
pub unsafe fn sd_ble_evt_get(p_dest: *mut u8, p_len: *mut u16) -> u32 {
let ret: u32;
- asm!("svc 97",
+ core::arch::asm!("svc 97",
inout("r0") to_asm(p_dest) => ret,
inout("r1") to_asm(p_len) => _,
lateout("r2") _,
@@ -17235,7 +17235,7 @@ pub unsafe fn sd_ble_evt_get(p_dest: *mut u8, p_len: *mut u16) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_uuid_vs_add(p_vs_uuid: *const ble_uuid128_t, p_uuid_type: *mut u8) -> u32 {
let ret: u32;
- asm!("svc 98",
+ core::arch::asm!("svc 98",
inout("r0") to_asm(p_vs_uuid) => ret,
inout("r1") to_asm(p_uuid_type) => _,
lateout("r2") _,
@@ -17265,7 +17265,7 @@ pub unsafe fn sd_ble_uuid_vs_add(p_vs_uuid: *const ble_uuid128_t, p_uuid_type: *
#[inline(always)]
pub unsafe fn sd_ble_uuid_vs_remove(p_uuid_type: *mut u8) -> u32 {
let ret: u32;
- asm!("svc 106",
+ core::arch::asm!("svc 106",
inout("r0") to_asm(p_uuid_type) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -17299,7 +17299,7 @@ pub unsafe fn sd_ble_uuid_decode(
p_uuid: *mut ble_uuid_t,
) -> u32 {
let ret: u32;
- asm!("svc 99",
+ core::arch::asm!("svc 99",
inout("r0") to_asm(uuid_le_len) => ret,
inout("r1") to_asm(p_uuid_le) => _,
inout("r2") to_asm(p_uuid) => _,
@@ -17327,7 +17327,7 @@ pub unsafe fn sd_ble_uuid_encode(
p_uuid_le: *mut u8,
) -> u32 {
let ret: u32;
- asm!("svc 100",
+ core::arch::asm!("svc 100",
inout("r0") to_asm(p_uuid) => ret,
inout("r1") to_asm(p_uuid_le_len) => _,
inout("r2") to_asm(p_uuid_le) => _,
@@ -17349,7 +17349,7 @@ pub unsafe fn sd_ble_uuid_encode(
#[inline(always)]
pub unsafe fn sd_ble_version_get(p_version: *mut ble_version_t) -> u32 {
let ret: u32;
- asm!("svc 101",
+ core::arch::asm!("svc 101",
inout("r0") to_asm(p_version) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -17384,7 +17384,7 @@ pub unsafe fn sd_ble_version_get(p_version: *mut ble_version_t) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_user_mem_reply(conn_handle: u16, p_block: *const ble_user_mem_block_t) -> u32 {
let ret: u32;
- asm!("svc 102",
+ core::arch::asm!("svc 102",
inout("r0") to_asm(conn_handle) => ret,
inout("r1") to_asm(p_block) => _,
lateout("r2") _,
@@ -17410,7 +17410,7 @@ pub unsafe fn sd_ble_user_mem_reply(conn_handle: u16, p_block: *const ble_user_m
#[inline(always)]
pub unsafe fn sd_ble_opt_set(opt_id: u32, p_opt: *const ble_opt_t) -> u32 {
let ret: u32;
- asm!("svc 103",
+ core::arch::asm!("svc 103",
inout("r0") to_asm(opt_id) => ret,
inout("r1") to_asm(p_opt) => _,
lateout("r2") _,
@@ -17438,7 +17438,7 @@ pub unsafe fn sd_ble_opt_set(opt_id: u32, p_opt: *const ble_opt_t) -> u32 {
#[inline(always)]
pub unsafe fn sd_ble_opt_get(opt_id: u32, p_opt: *mut ble_opt_t) -> u32 {
let ret: u32;
- asm!("svc 104",
+ core::arch::asm!("svc 104",
inout("r0") to_asm(opt_id) => ret,
inout("r1") to_asm(p_opt) => _,
lateout("r2") _,
diff --git a/nrf-softdevice-s132/src/lib.rs b/nrf-softdevice-s132/src/lib.rs
index d5bf6e7..bdfddda 100644
--- a/nrf-softdevice-s132/src/lib.rs
+++ b/nrf-softdevice-s132/src/lib.rs
@@ -3,7 +3,6 @@
#![allow(non_upper_case_globals)]
#![allow(non_snake_case)]
#![allow(dead_code)]
-#![feature(asm)]
mod bindings;