Add ThingSet nodes for DFU (device firmeare upgrade)

Creating new root category dfu instead of adding flash information to
info node so that all DFU / OTA related information is kept together.
This commit is contained in:
Martin Jäger
2021-05-11 10:57:57 +02:00
committed by Martin Jäger
parent 187b9c4c4e
commit 0e8f93bc08
2 changed files with 40 additions and 7 deletions
+20
View File
@@ -0,0 +1,20 @@
/*
* 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