-
Notifications
You must be signed in to change notification settings - Fork 0
/
lfs_nrf5_hal.h
48 lines (38 loc) · 1.35 KB
/
lfs_nrf5_hal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef _littlefs_nrf52a_hal_H_
#define _littlefs_nrf52a_hal_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @file littlefs_nrf52a_hal.h
*
* Description
*
*/
/*======= Includes ==========================================================*/
#include "lfs.h"
/*======= Public macro definitions ==========================================*/
/*======= Type Definitions and declarations =================================*/
typedef void (*wdt_feed)(void);
/*======= Public variable declarations ======================================*/
/*======= Public function declarations ======================================*/
/**
* @brief Initialize the littlefs hal implementation.
*
* This function populates the low level flash operation function pointers of
* the littlefs config struct.
*
* @param[out] c littlefs config struct.
* @param[in] wdt_feed_impl Optional watchdog feed function that the API will
* call when waiting for the fstorage to finish its
* operation. Can be NULL.
*
* @retval NRF_SUCCESS No errors were encountered
* @retval NRF_ERROR_XYZ Some error was encountered when initalizing the hal
* implementation.
*/
uint32_t littlefs_nrf52_init(struct lfs_config *c, wdt_feed wdt_feed_impl);
#ifdef __cplusplus
}
#endif
#endif /* _littlefs_nrf52a_hal_H_ */