Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tandrews
PostPosted: Nov 01, 2011 - 03:13 PM
Rookie


Joined: Mar 11, 2006
Posts: 41


Hi,

I want to know if there is a cleaner way to do the following. i.e. I would like to avoid modifying the ASF code as shown below, because when I upgrade ASF in months/years to come I'm sure I will have forgotten why I did this, and end up breaking it...

To move the (USB) RAMdisk to SDRAM, I have changed asf/common/components/memory/virtual_mem/virtual_mem.c from this:

Code:

static uint8_t vmem_data[VMEM_NB_SECTOR * VMEM_SECTOR_SIZE];


to this:

Code:

__attribute__((__section__(".bss_sdram")))
static uint8_t vmem_data[VMEM_NB_SECTOR * VMEM_SECTOR_SIZE];


I'm using an EVK1100.

Many thanks,
Thomas
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits