ameba micropython sdk first commit

This commit is contained in:
xidameng 2020-07-31 22:16:12 +08:00
commit 8508ee6139
5619 changed files with 1874619 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#ifndef __STM32_FLASH_H__
#define __STM32_FLASH_H__
#include <stdint.h>
uint32_t flash_SectorAddress(uint16_t sector_nb);
#if defined STM32F2XX || STM32F4XX
int flash_EraseSector(uint16_t sector_nb);
#elif defined STM32f1xx
int flash_EraseSector(uint32_t Page_Address);
#endif
int flash_Wrtie(uint32_t address, char* buf, uint32_t len);
int flash_Read(uint32_t address, char* buf, uint32_t len);
#endif // __STM32_FLASH_H__