miniFOC 1.0.3
This open-source project aims to accomplish a FOC(Field Oriented Control) scheme that is operatable with minimum costs in China.
flash.h
Go to the documentation of this file.
1/**************************************************************************/
9#ifndef MINIFOC_HARDWARE_FLASH_H_
10#define MINIFOC_HARDWARE_FLASH_H_
11
12void flash_write_parameters(void);
13void flash_read_parameters(void);
14void flash_erase_page(void);
15void flash_program_word(unsigned int addr, unsigned int *data, unsigned char counter);
16unsigned int flash_read_word(unsigned int addr);
17
18#endif //MINIFOC_HARDWARE_FLASH_H_
unsigned int flash_read_word(unsigned int addr)
read flash word from address
Definition: flash.c:114
void flash_write_parameters(void)
program all parameters to flash
Definition: flash.c:26
void flash_read_parameters(void)
read all parameters from flash
Definition: flash.c:46
void flash_erase_page(void)
erase flash page in last sector
Definition: flash.c:76
void flash_program_word(unsigned int addr, unsigned int *data, unsigned char counter)
program flash word to address
Definition: flash.c:95