[memory] access 16k eeprom area by pointer, don't specifically allocate it

Partially revert "[memory] allocate separate 16k eeprom area"

This partially reverts commit eba62ba245.
main-solar-only
Richard Meadows 2016-08-05 16:04:13 +01:00
rodzic 1415b6488b
commit 396de997dd
2 zmienionych plików z 2 dodań i 12 usunięć

Wyświetl plik

@ -115,14 +115,6 @@ SECTIONS
__fixed_end = .;
} > FLASH
/* EEPROM goes in its own section */
.eeprom :
{
. = ALIGN(4);
*(.eeprom .eeprom*)
. = ALIGN(4);
} > EEPROM
/* .ARM.exidx is sorted, so has to go in its own output section. */
PROVIDE_HIDDEN (__exidx_start = .);
.ARM.exidx :

Wyświetl plik

@ -37,10 +37,8 @@
/**
* Allocate a 16KB section of flash memory, aligned to an NVM row
*/
const uint8_t nvm_section[MEM_SIZE]
__attribute__ ((aligned (256)))
__attribute__ ((section (".eeprom")))
= { 0xFF };
volatile uint8_t* nvm_section =
(uint8_t*)(0x0003C000); /* 256K - 16K */
/**
* Poll the status register until the busy bit is cleared