Creating new root category dfu instead of adding flash information to info node so that all DFU / OTA related information is kept together.
21 lines
306 B
C
21 lines
306 B
C
/*
|
|
* Copyright (c) The Libre Solar Project Contributors
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* @brief Mock some functions from STM32 LL API or MCU registers
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
static inline uint32_t LL_GetFlashSize(void)
|
|
{
|
|
return 128;
|
|
}
|
|
|
|
#define FLASH_PAGE_SIZE 2048
|