Go to the source code of this file.
|
| #define | FLASH_KEY_1 0x45670123 |
| |
| #define | FLASH_KEY_2 0xCDEF89AB |
| |
| #define | PHAL_FLASH_TIMEOUT 500000U |
| |
| #define | ADDR_FLASH_SECTOR_0 ((uint32_t)0x08000000) /* Base @ of Sector 0, 16 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_1 ((uint32_t)0x08004000) /* Base @ of Sector 1, 16 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_2 ((uint32_t)0x08008000) /* Base @ of Sector 2, 16 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_3 ((uint32_t)0x0800C000) /* Base @ of Sector 3, 16 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_4 ((uint32_t)0x08010000) /* Base @ of Sector 4, 64 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_5 ((uint32_t)0x08020000) /* Base @ of Sector 5, 128 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_6 ((uint32_t)0x08040000) /* Base @ of Sector 6, 128 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_7 ((uint32_t)0x08060000) /* Base @ of Sector 7, 128 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_8 ((uint32_t)0x08080000) /* Base @ of Sector 8, 128 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_9 ((uint32_t)0x080A0000) /* Base @ of Sector 9, 128 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_10 ((uint32_t)0x080C0000) /* Base @ of Sector 10, 128 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_11 ((uint32_t)0x080E0000) /* Base @ of Sector 11, 128 Kbyte */ |
| |
| #define | ADDR_FLASH_SECTOR_12 ((uint32_t)0x08100000) /* 128 KiB */ |
| |
| #define | ADDR_FLASH_SECTOR_13 ((uint32_t)0x08120000) /* 128 KiB */ |
| |
| #define | ADDR_FLASH_SECTOR_14 ((uint32_t)0x08140000) /* 128 KiB */ |
| |
| #define | ADDR_FLASH_SECTOR_15 ((uint32_t)0x08160000) /* 128 KiB */ |
| |
| #define | USER_FLASH_END_ADDRESS ((uint32_t)0x0817FFFF) /* Last usable flash address */ |
| |
| #define | MAX_FLASH_SECTOR (16 - 1) |
| |
- Author
- Chris McGalliard - port of L4 by Adam Busch (busch.nosp@m.8@pu.nosp@m.rdue..nosp@m.edu)
- Version
- 0.1
- Date
- 2023-08-28
- Copyright
- Copyright (c) 2023
◆ ADDR_FLASH_SECTOR_0
| #define ADDR_FLASH_SECTOR_0 ((uint32_t)0x08000000) /* Base @ of Sector 0, 16 Kbyte */ |
◆ ADDR_FLASH_SECTOR_1
| #define ADDR_FLASH_SECTOR_1 ((uint32_t)0x08004000) /* Base @ of Sector 1, 16 Kbyte */ |
◆ ADDR_FLASH_SECTOR_10
| #define ADDR_FLASH_SECTOR_10 ((uint32_t)0x080C0000) /* Base @ of Sector 10, 128 Kbyte */ |
◆ ADDR_FLASH_SECTOR_11
| #define ADDR_FLASH_SECTOR_11 ((uint32_t)0x080E0000) /* Base @ of Sector 11, 128 Kbyte */ |
◆ ADDR_FLASH_SECTOR_12
| #define ADDR_FLASH_SECTOR_12 ((uint32_t)0x08100000) /* 128 KiB */ |
◆ ADDR_FLASH_SECTOR_13
| #define ADDR_FLASH_SECTOR_13 ((uint32_t)0x08120000) /* 128 KiB */ |
◆ ADDR_FLASH_SECTOR_14
| #define ADDR_FLASH_SECTOR_14 ((uint32_t)0x08140000) /* 128 KiB */ |
◆ ADDR_FLASH_SECTOR_15
| #define ADDR_FLASH_SECTOR_15 ((uint32_t)0x08160000) /* 128 KiB */ |
◆ ADDR_FLASH_SECTOR_2
| #define ADDR_FLASH_SECTOR_2 ((uint32_t)0x08008000) /* Base @ of Sector 2, 16 Kbyte */ |
◆ ADDR_FLASH_SECTOR_3
| #define ADDR_FLASH_SECTOR_3 ((uint32_t)0x0800C000) /* Base @ of Sector 3, 16 Kbyte */ |
◆ ADDR_FLASH_SECTOR_4
| #define ADDR_FLASH_SECTOR_4 ((uint32_t)0x08010000) /* Base @ of Sector 4, 64 Kbyte */ |
◆ ADDR_FLASH_SECTOR_5
| #define ADDR_FLASH_SECTOR_5 ((uint32_t)0x08020000) /* Base @ of Sector 5, 128 Kbyte */ |
◆ ADDR_FLASH_SECTOR_6
| #define ADDR_FLASH_SECTOR_6 ((uint32_t)0x08040000) /* Base @ of Sector 6, 128 Kbyte */ |
◆ ADDR_FLASH_SECTOR_7
| #define ADDR_FLASH_SECTOR_7 ((uint32_t)0x08060000) /* Base @ of Sector 7, 128 Kbyte */ |
◆ ADDR_FLASH_SECTOR_8
| #define ADDR_FLASH_SECTOR_8 ((uint32_t)0x08080000) /* Base @ of Sector 8, 128 Kbyte */ |
◆ ADDR_FLASH_SECTOR_9
| #define ADDR_FLASH_SECTOR_9 ((uint32_t)0x080A0000) /* Base @ of Sector 9, 128 Kbyte */ |
◆ FLASH_KEY_1
| #define FLASH_KEY_1 0x45670123 |
◆ FLASH_KEY_2
| #define FLASH_KEY_2 0xCDEF89AB |
◆ MAX_FLASH_SECTOR
| #define MAX_FLASH_SECTOR (16 - 1) |
◆ PHAL_FLASH_TIMEOUT
| #define PHAL_FLASH_TIMEOUT 500000U |
◆ USER_FLASH_END_ADDRESS
| #define USER_FLASH_END_ADDRESS ((uint32_t)0x0817FFFF) /* Last usable flash address */ |
◆ anonymous enum
| Enumerator |
|---|
| FLASH_OK | |
| FLASH_FAIL | |
| FLASH_ADDR_NOT_CLEARED | |
| FLASH_TIMEOUT | |
◆ PHAL_flashErase()
| uint8_t PHAL_flashErase |
( |
uint32_t * | addr, |
|
|
uint32_t | words ) |
◆ PHAL_flashErasePage()
| uint8_t PHAL_flashErasePage |
( |
uint8_t | page | ) |
|
◆ PHAL_flashReadU32()
| uint32_t PHAL_flashReadU32 |
( |
uint32_t | addr | ) |
|
◆ PHAL_flashWriteU32()
| uint8_t PHAL_flashWriteU32 |
( |
uint32_t | address, |
|
|
uint32_t | value ) |
◆ PHAL_flashWriteU32_Buffered()
| uint8_t PHAL_flashWriteU32_Buffered |
( |
uint32_t | Address, |
|
|
uint32_t * | data, |
|
|
uint32_t | count ) |
◆ PHAL_flashWriteU64()
| uint8_t PHAL_flashWriteU64 |
( |
uint32_t | address, |
|
|
uint64_t | data ) |