This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Atmel DataFlash Driver and EB55


Hi,

I want to compile your DataFlash-Driver into my kernel, but I've got a 
(hopefully) little problem :
arm-elf-gcc -c  -I/home/block/embedded/ft/kernel/ecos_install/include 
-I/home/block/ecos/packages/devs/flash/arm/eb55/current 
-I/home/block/ecos/packages/devs/flash/arm/eb55/current/src 
-I/home/block/ecos/packages/devs/flash/arm/eb55/current/tests -I. 
-I/home/block/ecos/packages/devs/flash/arm/eb55/current/src/ 
-finline-limit=7000 -mcpu=arm7tdmi -mno-short-load-words -Wall 
-Wpointer-arith -Wstrict-prototypes -Winline -Wundef  -g -O2 
-ffunction-sections -fdata-sections  -fno-exceptions   
-Wp,-MD,src/eb55_flash.tmp -o 
src/devs_flash_arm_eb55_flash.o /home/block/ecos/packages/devs/flash/arm/eb55/current/src/eb55_flash.c
/home/block/ecos/packages/devs/flash/arm/eb55/current/src/eb55_flash.c:74: 
parse error before '&' token
make: Leaving directory `/home/block/embedded/ft/kernel/ecos_build'
/home/block/ecos/packages/devs/flash/arm/eb55/current/src/eb55_flash.c:74: 
warning: `config_cyg_dataflash_dev0' defined but not used

Line 74 of eb55_flash.c equal your line in the patch :
CYG_DATAFLASH_FLASH_DRIVER(cyg_dataflash_dev0, cyg_spi_dataflash_dev0, 
0x01200000, 0, -1);

I find CYG_DATAFLASH_FLASH_DRIVER in the file dataflash.h on line 121 : 
#define CYG_DATAFLASH_FLASH_DRIVER(name, _sdev, _addr, _start, _end)    \
    static cyg_dataflash_flash_dev_config_t config_ ## name = {         \
        .spi_dev      = &_sdev,                                         \
        .address      = _addr,                                          \
        .start_sector = _start,                                         \
        .end_sector   = _end                                            \
    };                                                                  \
    CYG_FLASH_DRIVER(name, &cyg_dataflash_flash_dev_funs,               \
                     &config_ ## name, 0,                               \
                     sizeof(cyg_dataflash_flash_dev_priv_t))

So I think the CYG_FLASH_DRIVER is the problem of all. Can't find it in my 
fresh CVS-respository.
Can you help me !?

Thank you

Sebastian Block

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]