summaryrefslogtreecommitdiff
path: root/nrf-softdevice-s140
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-s140
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-s140')
-rw-r--r--nrf-softdevice-s140/src/bindings.rs274
-rw-r--r--nrf-softdevice-s140/src/lib.rs1
2 files changed, 137 insertions, 138 deletions
diff --git a/nrf-softdevice-s140/src/bindings.rs b/nrf-softdevice-s140/src/bindings.rs
index 9d2190c..7159ba9 100644
--- a/nrf-softdevice-s140/src/bindings.rs
+++ b/nrf-softdevice-s140/src/bindings.rs
@@ -1731,7 +1731,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") _,
@@ -1750,7 +1750,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") _,
@@ -1768,7 +1768,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") _,
@@ -1786,7 +1786,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") _,
@@ -1804,7 +1804,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") _,
@@ -1824,7 +1824,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") _,
@@ -1842,7 +1842,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") _,
@@ -1860,7 +1860,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") _,
@@ -1879,7 +1879,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") _,
@@ -1895,7 +1895,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") _,
@@ -1916,7 +1916,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") _,
@@ -1939,7 +1939,7 @@ pub unsafe fn sd_power_pof_enable(pof_enable: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_usbpwrrdy_enable(usbpwrrdy_enable: u8) -> u32 {
let ret: u32;
- asm!("svc 77",
+ core::arch::asm!("svc 77",
inout("r0") to_asm(usbpwrrdy_enable) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1962,7 +1962,7 @@ pub unsafe fn sd_power_usbpwrrdy_enable(usbpwrrdy_enable: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_usbdetected_enable(usbdetected_enable: u8) -> u32 {
let ret: u32;
- asm!("svc 78",
+ core::arch::asm!("svc 78",
inout("r0") to_asm(usbdetected_enable) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -1985,7 +1985,7 @@ pub unsafe fn sd_power_usbdetected_enable(usbdetected_enable: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_usbremoved_enable(usbremoved_enable: u8) -> u32 {
let ret: u32;
- asm!("svc 79",
+ core::arch::asm!("svc 79",
inout("r0") to_asm(usbremoved_enable) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2005,7 +2005,7 @@ pub unsafe fn sd_power_usbremoved_enable(usbremoved_enable: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_usbregstatus_get(usbregstatus: *mut u32) -> u32 {
let ret: u32;
- asm!("svc 80",
+ core::arch::asm!("svc 80",
inout("r0") to_asm(usbregstatus) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2028,7 +2028,7 @@ pub unsafe fn sd_power_usbregstatus_get(usbregstatus: *mut u32) -> 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") _,
@@ -2051,7 +2051,7 @@ pub unsafe fn sd_power_pof_threshold_set(threshold: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_pof_thresholdvddh_set(threshold: u8) -> u32 {
let ret: u32;
- asm!("svc 56",
+ core::arch::asm!("svc 56",
inout("r0") to_asm(threshold) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2070,7 +2070,7 @@ pub unsafe fn sd_power_pof_thresholdvddh_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") _,
@@ -2089,7 +2089,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") _,
@@ -2108,7 +2108,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") _,
@@ -2127,7 +2127,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") _,
@@ -2146,7 +2146,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") _,
@@ -2165,7 +2165,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") _,
@@ -2184,7 +2184,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") _,
@@ -2205,7 +2205,7 @@ pub unsafe fn sd_power_dcdc_mode_set(dcdc_mode: u8) -> u32 {
#[inline(always)]
pub unsafe fn sd_power_dcdc0_mode_set(dcdc_mode: u8) -> u32 {
let ret: u32;
- asm!("svc 64",
+ core::arch::asm!("svc 64",
inout("r0") to_asm(dcdc_mode) => ret,
lateout("r1") _,
lateout("r2") _,
@@ -2227,7 +2227,7 @@ pub unsafe fn sd_power_dcdc0_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") _,
@@ -2248,7 +2248,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") _,
@@ -2269,7 +2269,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") _,
@@ -2307,7 +2307,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") _,
@@ -2325,7 +2325,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") _,
@@ -2343,7 +2343,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") _,
@@ -2361,7 +2361,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") _,
@@ -2386,7 +2386,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) => _,
@@ -2405,7 +2405,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") _,
@@ -2424,7 +2424,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") _,
@@ -2444,7 +2444,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") _,
@@ -2464,7 +2464,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") _,
@@ -2505,7 +2505,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") _,
@@ -2531,7 +2531,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") _,
@@ -2561,7 +2561,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") _,
@@ -2582,7 +2582,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") _,
@@ -2603,7 +2603,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") _,
@@ -2650,7 +2650,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) => _,
@@ -2691,7 +2691,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") _,
@@ -2723,7 +2723,7 @@ pub unsafe fn sd_flash_page_erase(page_number: u32) -> u32 {
#[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") _,
@@ -2746,7 +2746,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") _,
@@ -2793,7 +2793,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") _,
@@ -2824,7 +2824,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") _,
@@ -2994,7 +2994,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") _,
@@ -3019,7 +3019,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") _,
@@ -3037,7 +3037,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") _,
@@ -3057,7 +3057,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") _,
@@ -3885,7 +3885,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") _,
@@ -9135,7 +9135,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") _,
@@ -9157,7 +9157,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") _,
@@ -9185,7 +9185,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") _,
@@ -9220,7 +9220,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") _,
@@ -9264,7 +9264,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) => _,
@@ -9301,7 +9301,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") _,
@@ -9324,7 +9324,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") _,
@@ -9384,7 +9384,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) => _,
@@ -9439,7 +9439,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") _,
@@ -9464,7 +9464,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") _,
@@ -9513,7 +9513,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") _,
@@ -9546,7 +9546,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") _,
@@ -9580,7 +9580,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) => _,
@@ -9599,7 +9599,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") _,
@@ -9618,7 +9618,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") _,
@@ -9640,7 +9640,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") _,
@@ -9661,7 +9661,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") _,
@@ -9692,7 +9692,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) => _,
@@ -9718,7 +9718,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") _,
@@ -9786,7 +9786,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") _,
@@ -9863,7 +9863,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) => _,
@@ -9906,7 +9906,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) => _,
@@ -9954,7 +9954,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") _,
@@ -9985,7 +9985,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") _,
@@ -10019,7 +10019,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) => _,
@@ -10065,7 +10065,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) => _,
@@ -10107,7 +10107,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) => _,
@@ -10147,7 +10147,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) => _,
@@ -10171,7 +10171,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") _,
@@ -10206,7 +10206,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) => _,
@@ -10234,7 +10234,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") _,
@@ -10265,7 +10265,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) => _,
@@ -10330,7 +10330,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") _,
@@ -10354,7 +10354,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") _,
@@ -10414,7 +10414,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) => _,
@@ -10436,7 +10436,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") _,
@@ -10501,7 +10501,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") _,
@@ -10552,7 +10552,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) => _,
@@ -10594,7 +10594,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") _,
@@ -10614,7 +10614,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") _,
@@ -10647,7 +10647,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") _,
@@ -10681,7 +10681,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") _,
@@ -10701,7 +10701,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") _,
@@ -11562,7 +11562,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) => _,
@@ -11595,7 +11595,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") _,
@@ -11643,7 +11643,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) => _,
@@ -11702,7 +11702,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) => _,
@@ -11761,7 +11761,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) => _,
@@ -13426,7 +13426,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) => _,
@@ -13465,7 +13465,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") _,
@@ -13506,7 +13506,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") _,
@@ -13544,7 +13544,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") _,
@@ -13584,7 +13584,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) => _,
@@ -13620,7 +13620,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) => _,
@@ -13659,7 +13659,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) => _,
@@ -13718,7 +13718,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") _,
@@ -13745,7 +13745,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") _,
@@ -13776,7 +13776,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") _,
@@ -13819,7 +13819,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") _,
@@ -15500,7 +15500,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) => _,
@@ -15539,7 +15539,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) => _,
@@ -15582,7 +15582,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) => _,
@@ -15618,7 +15618,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) => _,
@@ -15655,7 +15655,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) => _,
@@ -15693,7 +15693,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) => _,
@@ -15771,7 +15771,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") _,
@@ -15821,7 +15821,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) => _,
@@ -15867,7 +15867,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") _,
@@ -15925,7 +15925,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) => _,
@@ -15972,7 +15972,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) => _,
@@ -15991,7 +15991,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") _,
@@ -16018,7 +16018,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) => _,
@@ -16058,7 +16058,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") _,
@@ -17264,7 +17264,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") _,
@@ -17310,7 +17310,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) => _,
@@ -17358,7 +17358,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") _,
@@ -17396,7 +17396,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") _,
@@ -17426,7 +17426,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") _,
@@ -17460,7 +17460,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) => _,
@@ -17488,7 +17488,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) => _,
@@ -17510,7 +17510,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") _,
@@ -17545,7 +17545,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") _,
@@ -17571,7 +17571,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") _,
@@ -17599,7 +17599,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-s140/src/lib.rs b/nrf-softdevice-s140/src/lib.rs
index d5bf6e7..bdfddda 100644
--- a/nrf-softdevice-s140/src/lib.rs
+++ b/nrf-softdevice-s140/src/lib.rs
@@ -3,7 +3,6 @@
#![allow(non_upper_case_globals)]
#![allow(non_snake_case)]
#![allow(dead_code)]
-#![feature(asm)]
mod bindings;