Implement saftey memory dump feature and increase heap space
This commit is contained in:
		@@ -22,6 +22,7 @@
 | 
			
		||||
#define __SAFETY_MEMORY_H__
 | 
			
		||||
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include <stddef.h>
 | 
			
		||||
 | 
			
		||||
/** @addtogroup safety-memory
 | 
			
		||||
 * @{
 | 
			
		||||
@@ -245,6 +246,15 @@ int safety_memory_get_config_override_count(uint32_t *count);
 | 
			
		||||
 */
 | 
			
		||||
int safety_memory_get_config_override(uint32_t idx, struct config_override *config_override);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Get a base64 dump of the whole safety memory.
 | 
			
		||||
 * @param[out] buffer Buffer to write the base 64 dump into.
 | 
			
		||||
 * @param buffsize Size of buffer. Must be large enough to hold the data plus a '\0' terminator
 | 
			
		||||
 * @param[out] used_size Number of written bytes including the '\0' terminator. May be NULL.
 | 
			
		||||
 * @return 0 if successful
 | 
			
		||||
 */
 | 
			
		||||
int safety_memory_dump_base64(char *buffer, size_t buffsize, size_t *used_size);
 | 
			
		||||
 | 
			
		||||
#endif /* __SAFETY_MEMORY_H__ */
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 
 | 
			
		||||
@@ -55,3 +55,5 @@ int backup_ram_get_data(uint32_t addr, uint32_t *data, uint32_t count);
 | 
			
		||||
int backup_ram_write_data(uint32_t addr, const uint32_t *data, uint32_t count);
 | 
			
		||||
 | 
			
		||||
uint32_t backup_ram_get_size_in_words(void);
 | 
			
		||||
 | 
			
		||||
volatile void *backup_ram_get_base_ptr(void);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user