NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
config_flash.c File Reference
#include "drivers/config_flash.h"
#include "platform.h"
#include <string.h>
#include <errno.h>
Include dependency graph for config_flash.c:

Macros

#define CONFIG_FLASH_SIZE   (__config_end - __config_start)
 

Functions

void _clear_flags (void)
 
int flash_write (uintptr_t base, const void *data, size_t size)
 
int flash_erase_page (uintptr_t base)
 
int flash_read (uintptr_t base, void *data, size_t size)
 
size_t flash_get_page_size (void)
 
size_t flash_get_num_pages (void)
 

Variables

uint8_t * __config_start
 
uint8_t * __config_end
 

Macro Definition Documentation

#define CONFIG_FLASH_SIZE   (__config_end - __config_start)

Function Documentation

void _clear_flags ( void  )
int flash_erase_page ( uintptr_t  base)

Here is the call graph for this function:

size_t flash_get_num_pages ( void  )
size_t flash_get_page_size ( void  )
int flash_read ( uintptr_t  base,
void *  data,
size_t  size 
)
int flash_write ( uintptr_t  base,
const void *  data,
size_t  size 
)

Here is the call graph for this function:

Variable Documentation

uint8_t* __config_end
uint8_t* __config_start