123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- #ifndef NRF_DFU_UTILS_H__
- #define NRF_DFU_UTILS_H__
- #include <stdint.h>
- #include <stdbool.h>
- #include "nrf_dfu_types.h"
- #include "app_util.h"
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #define ALIGN_TO_PAGE(val) ALIGN_NUM((CODE_PAGE_SIZE), (val))
- uint32_t nrf_dfu_bank0_start_addr(void);
- uint32_t nrf_dfu_bank1_start_addr(void);
- uint32_t nrf_dfu_app_start_address(void);
- uint32_t nrf_dfu_softdevice_start_address(void);
- uint32_t nrf_dfu_cache_prepare(uint32_t required_size, bool single_bank, bool keep_app, bool keep_softdevice);
- void nrf_dfu_softdevice_invalidate(void);
- void nrf_dfu_bank_invalidate(nrf_dfu_bank_t * const p_bank);
- #ifdef __cplusplus
- }
- #endif
- #endif
|