Skip to content

Commit 2af37a6

Browse files
committed
TARGET_MCU_NRF51822 - Move declaration of fs_callback into the proper file.
1 parent bf28f88 commit 2af37a6

File tree

2 files changed

+4
-17
lines changed
  • features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/libraries

2 files changed

+4
-17
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/libraries/fds/fds.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
#include "nrf_error.h"
4141
#include "app_util.h"
4242

43+
static void fs_callback(uint8_t op_code,
44+
uint32_t result,
45+
uint32_t const * p_data,
46+
fs_length_t length_words);
4347

4448
/** Our fstorage configuration.
4549
* The other fields will be assigned automatically during compilation. */

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/libraries/fstorage/fstorage.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,6 @@ typedef void (*fs_cb_t)(uint8_t op_code,
7474
fs_length_t length_words);
7575

7676

77-
/**@brief Function prototype for a callback handler.
78-
*
79-
* @details This function is expected to be implemented by the module that
80-
* registers for fstorage usage. Its usage is described
81-
* in the function pointer type fs_cb_t.
82-
*
83-
* @param[in] op_code Flash operation code.
84-
* @param[in] result Result of the flash operation.
85-
* @param[in] p_data Pointer to the resulting data (or NULL if not in use).
86-
* @param[in] length_words Length of data in words.
87-
*/
88-
static void fs_callback(uint8_t op_code,
89-
uint32_t result,
90-
uint32_t const * p_data,
91-
fs_length_t length_words);
92-
93-
9477
/**@brief Flash storage config variable.
9578
*
9679
* @details The fstorage module will update the start_addr and end_address according to

0 commit comments

Comments
 (0)