summaryrefslogtreecommitdiff
path: root/nrf-softdevice-mbr
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2020-12-26 03:41:01 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2020-12-26 04:06:54 +0100
commited223a5514521465af62ed24c1d5dd82db5ace8b (patch)
tree4800746f6467afb9a1267d22db842dc4d40523b1 /nrf-softdevice-mbr
parent348b57ce0cc1b50288cdce77dfe1cd994454bbd8 (diff)
downloadnrf-softdevice-ed223a5514521465af62ed24c1d5dd82db5ace8b.zip
Rustfmt the generated bindings.
Diffstat (limited to 'nrf-softdevice-mbr')
-rw-r--r--nrf-softdevice-mbr/src/bindings.rs47
1 files changed, 22 insertions, 25 deletions
diff --git a/nrf-softdevice-mbr/src/bindings.rs b/nrf-softdevice-mbr/src/bindings.rs
index 79d4615..633e819 100644
--- a/nrf-softdevice-mbr/src/bindings.rs
+++ b/nrf-softdevice-mbr/src/bindings.rs
@@ -1,4 +1,3 @@
-
/*
* Copyright (c) 2012 - 2019, Nordic Semiconductor ASA
* All rights reserved.
@@ -596,29 +595,28 @@ fn bindgen_test_layout_sd_mbr_command_t() {
);
}
- #[doc = "@brief Issue Master Boot Record commands"]
- #[doc = ""]
- #[doc = " Commands used when updating a SoftDevice and bootloader."]
- #[doc = ""]
- #[doc = " The @ref SD_MBR_COMMAND_COPY_BL and @ref SD_MBR_COMMAND_VECTOR_TABLE_BASE_SET requires"]
- #[doc = " parameters to be retained by the MBR when resetting the IC. This is done in a separate flash"]
- #[doc = " page. The location of the flash page should be provided by the application in either"]
- #[doc = " @ref MBR_PARAM_PAGE_ADDR or @ref MBR_UICR_PARAM_PAGE_ADDR. If both addresses are set, the MBR"]
- #[doc = " will prioritize @ref MBR_PARAM_PAGE_ADDR. This page will be cleared by the MBR and is used to"]
- #[doc = " store the command before reset. When an address is specified, the page it refers to must not be"]
- #[doc = " used by the application. If no address is provided by the application, i.e. both"]
- #[doc = " @ref MBR_PARAM_PAGE_ADDR and @ref MBR_UICR_PARAM_PAGE_ADDR is 0xFFFFFFFF, MBR commands which use"]
- #[doc = " flash will be unavailable and return @ref NRF_ERROR_NO_MEM."]
- #[doc = ""]
- #[doc = " @param[in] param Pointer to a struct describing the command."]
- #[doc = ""]
- #[doc = " @note For a complete set of return values, see ::sd_mbr_command_copy_sd_t,"]
- #[doc = " ::sd_mbr_command_copy_bl_t, ::sd_mbr_command_compare_t,"]
- #[doc = " ::sd_mbr_command_vector_table_base_set_t, ::sd_mbr_command_irq_forward_address_set_t"]
- #[doc = ""]
- #[doc = " @retval ::NRF_ERROR_NO_MEM No MBR parameter page provided"]
- #[doc = " @retval ::NRF_ERROR_INVALID_PARAM if an invalid command is given."]
-
+#[doc = "@brief Issue Master Boot Record commands"]
+#[doc = ""]
+#[doc = " Commands used when updating a SoftDevice and bootloader."]
+#[doc = ""]
+#[doc = " The @ref SD_MBR_COMMAND_COPY_BL and @ref SD_MBR_COMMAND_VECTOR_TABLE_BASE_SET requires"]
+#[doc = " parameters to be retained by the MBR when resetting the IC. This is done in a separate flash"]
+#[doc = " page. The location of the flash page should be provided by the application in either"]
+#[doc = " @ref MBR_PARAM_PAGE_ADDR or @ref MBR_UICR_PARAM_PAGE_ADDR. If both addresses are set, the MBR"]
+#[doc = " will prioritize @ref MBR_PARAM_PAGE_ADDR. This page will be cleared by the MBR and is used to"]
+#[doc = " store the command before reset. When an address is specified, the page it refers to must not be"]
+#[doc = " used by the application. If no address is provided by the application, i.e. both"]
+#[doc = " @ref MBR_PARAM_PAGE_ADDR and @ref MBR_UICR_PARAM_PAGE_ADDR is 0xFFFFFFFF, MBR commands which use"]
+#[doc = " flash will be unavailable and return @ref NRF_ERROR_NO_MEM."]
+#[doc = ""]
+#[doc = " @param[in] param Pointer to a struct describing the command."]
+#[doc = ""]
+#[doc = " @note For a complete set of return values, see ::sd_mbr_command_copy_sd_t,"]
+#[doc = " ::sd_mbr_command_copy_bl_t, ::sd_mbr_command_compare_t,"]
+#[doc = " ::sd_mbr_command_vector_table_base_set_t, ::sd_mbr_command_irq_forward_address_set_t"]
+#[doc = ""]
+#[doc = " @retval ::NRF_ERROR_NO_MEM No MBR parameter page provided"]
+#[doc = " @retval ::NRF_ERROR_INVALID_PARAM if an invalid command is given."]
#[inline(always)]
pub unsafe fn sd_mbr_command(param: *mut sd_mbr_command_t) -> u32 {
let ret: u32;
@@ -631,4 +629,3 @@ pub unsafe fn sd_mbr_command(param: *mut sd_mbr_command_t) -> u32 {
);
ret
}
-