Move ramcode to clean address. Also sort exported symbols and add a few

This commit is contained in:
Stefan `Sec` Zehl 2011-08-05 18:53:40 +02:00
parent 72e04c1d38
commit b1b5516b42
4 changed files with 85 additions and 71 deletions

View File

@ -7,7 +7,7 @@
TARGET = LPC13xx TARGET = LPC13xx
FLASH = 32K FLASH = 32K
SRAM = 8K SRAM = 8K
RAMCODE=2548 RAMCODE=2560
# For USB HID support the LPC134x reserves 384 bytes from the sram, # For USB HID support the LPC134x reserves 384 bytes from the sram,
# if you don't want to use the USB features, just use 0 here. # if you don't want to use the USB features, just use 0 here.

View File

@ -28,7 +28,7 @@ uint8_t execute_file (const char * fname){
dst=(void (*)(void)) (sram_top); dst=(void (*)(void)) (sram_top);
lcdPrint("T:"); lcdPrintIntHex(dst); lcdNl(); lcdPrint("T:"); lcdPrintIntHex(dst); lcdNl();
*/ */
dst=(void (*)(void)) 0x1000160C; dst=(void (*)(void)) (0x10002000 - RAMCODE);
res=f_open(&file, fname, FA_OPEN_EXISTING|FA_READ); res=f_open(&file, fname, FA_OPEN_EXISTING|FA_READ);

View File

@ -1,24 +1,20 @@
#lcd
DoChar
DoInt DoInt
DoIntX DoIntX
DoString DoString
GetLight
GetUUID32
GetVoltage
IntToStr IntToStr
IntToStrX IntToStrX
_timectr Font_7x8
delayms font
delayms_queue getFontHeight
getInputRaw setExtFont
getInputWaitRelease lcdBuffer
getSeconds
gpioGetValue
gpioSetValue
handleMenu
iapReadSerialNumber
isNight
lcdClear lcdClear
lcdDisplay lcdDisplay
lcdFill
lcdGetPixel
lcdLoadImage
lcdNl lcdNl
lcdPrint lcdPrint
lcdPrintInt lcdPrintInt
@ -27,65 +23,84 @@ lcdPrintln
lcdRefresh lcdRefresh
lcdSetPixel lcdSetPixel
lcdShift lcdShift
lcdShowAnim
#input
getInput
getInputRaw
getInputWait
getInputWaitRelease
getInputWaitTimeout
#crypto
xxtea_decode_words
xxtea_encode_words
ECIES_decryptkeygen
ECIES_encyptkeygen
bitstr_parse_export
#fs
f_close
f_get_rc_string
f_lseek
f_open
f_read
f_write
# funk
_nrfresets
nrf_check_reset
nrf_config_set
nrf_rcv_pkt_end
nrf_rcv_pkt_poll_dec
nrf_rcv_pkt_start
nrf_rcv_pkt_time_encr
nrf_read_reg
nrf_snd_pkt_crc_encr
#queue
delayms
delayms_queue
delayms_queue_plus
push_queue
the_queue
work_queue
#config
readFile
selectFile
writeFile
saveConfig
the_config
#gpio
gpioGetValue
gpioSetDir
gpioSetValue
sspReceive
sspSend
sspSendReceive
#mesh
meshGetMessage
meshbuffer meshbuffer
meshgen meshgen
meshincctr meshincctr
mygmtime meshnice
push_queue #external
the_config
the_queue
work_queue
selectFile
nrf_snd_pkt_crc_encr
nrf_rcv_pkt_time_encr
getInput
ECIES_encyptkeygen
f_open
f_read
strlen
strcpy strcpy
xxtea_encode_words strlen
getRandom
crc16
f_write
f_close
ECIES_decryptkeygen
bitstr_parse_export
f_get_rc_string
xxtea_decode_words
systickGetTicks
lcdFill
memcpy memcpy
DoChar memset
font #stuff
Font_Invadersnouse GetLight
Font_7x8 GetUUID32
lcdBuffer GetVoltage
meshGetMessage isNight
_timectr
crc16
getRandom
getSeconds
iapReadSerialNumber
input
handleMenu
menuflags
mygmtime
nickfont
nickname nickname
systickGetTicks
uint32touint8p uint32touint8p
uint8ptouint32 uint8ptouint32
memset #Add stuff here
nrf_config_set
nrf_read_reg
nrf_check_reset
sspSend
sspReceive
sspSendReceive
getInputWait
lcdGetPixel
nickfont
setExtFont
getFontHeight
menuflags
delayms_queue_plus
getInputWaitTimeout
readFile
writeFile
input
saveConfig
lcdShowAnim
lcdLoadImage
meshnice
_nrfresets
f_lseek

View File

@ -38,7 +38,6 @@ SECTIONS
KEEP(*(.irq_vectors)) KEEP(*(.irq_vectors))
KEEP(*(table)) KEEP(*(table))
*(.text.boot_entry) *(.text.boot_entry)
*(.text.main)
. = 0x000002FC ; /* or 1FC for LPC2000 */ . = 0x000002FC ; /* or 1FC for LPC2000 */
KEEP(*(crp)) KEEP(*(crp))
*(.text*) *(.text*)