mirror of
https://github.com/sengeiou/realtek_ameba_mp_sdk.git
synced 2026-07-04 10:35:43 +00:00
ameba micropython sdk first commit
This commit is contained in:
commit
8508ee6139
5619 changed files with 1874619 additions and 0 deletions
15
sdk/component/common/drivers/flash/stm32_flash.h
Normal file
15
sdk/component/common/drivers/flash/stm32_flash.h
Normal 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__
|
||||
Loading…
Add table
Add a link
Reference in a new issue