mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Revert "cpu/msp430_common: extend flashpage API"
This reverts commit 741943f021
.
This commit is contained in:
parent
7595d533b4
commit
4b8355e1d3
@ -6,21 +6,6 @@
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
/* Populate information about rom size */
|
||||
_srom = ORIGIN(ROM);
|
||||
_erom = ORIGIN(ROM) + LENGTH(ROM);
|
||||
|
||||
.flash_writable (NOLOAD) : {
|
||||
KEEP(*(SORT(.flash_writable.*)))
|
||||
} > ROM
|
||||
|
||||
.end_fw (NOLOAD) : ALIGN(4) {
|
||||
_end_fw = . ;
|
||||
} > ROM
|
||||
}
|
||||
|
||||
/* provide address for register maps by taking the address of the first
|
||||
* register (as provided by the vendor files) */
|
||||
|
||||
|
@ -26,13 +26,6 @@
|
||||
#include "irq.h"
|
||||
#include "periph/flashpage.h"
|
||||
|
||||
/**
|
||||
* @brief Memory markers, defined in the linker script
|
||||
* @{
|
||||
*/
|
||||
extern uint32_t _end_fw;
|
||||
extern uint32_t _erom;
|
||||
|
||||
static inline int _unlock(void)
|
||||
{
|
||||
int state;
|
||||
@ -104,15 +97,3 @@ void flashpage_write(void *target_addr, const void *data, size_t len)
|
||||
/* lock flash and re-enable interrupts */
|
||||
_lock(state);
|
||||
}
|
||||
|
||||
unsigned flashpage_first_free(void)
|
||||
{
|
||||
return flashpage_page(&_end_fw) + 1;
|
||||
}
|
||||
|
||||
/* MSP430 cpu's last page holds the interrupt vector, so flashpage_last_free
|
||||
is the one before last */
|
||||
unsigned flashpage_last_free(void)
|
||||
{
|
||||
return flashpage_page(&_erom) - 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user