bugµracoli - Bugs: bug #32518, Src/Lib/Ioutil/acc_mma7455.c fails...

 
 

bug #32518: Src/Lib/Ioutil/acc_mma7455.c fails to compile

Submitter:  Joerg Wunsch <joerg_wunsch>
Submitted:  Thu 17 Feb 2011 05:06:45 PM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  5 - Normal Status:  Fixed
Assigned to:  dath Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 17 Feb 2011 08:26:57 PM UTC, comment #1: 

Daniel fixed it in rev 1.7 of acc_mma7455.c.

Joerg Wunsch <joerg_wunsch>
Group administrator
Thu 17 Feb 2011 05:06:45 PM UTC, original submission:  

When compiling the CVS Head for e.g. a zgbt1281a2uart0
module, I get:


avr-gcc -o build/zgbt1281a2uart0/lib/Ioutil/acc_mma7455.o -c -Wall -Wundef -Os -gstabs -fno-inline -mmcu=atmega1281 -Dzgbt1281a2uart0 -Dzgbt1281a2uart0 -DF_CPU=8000000UL -Ibuild/zgbt1281a2uart0/lib/Inc -ISrc/Lib/Inc -Ibuild/zgbt1281a2uart0/lib/Ioutil -ISrc/Lib/Ioutil -Iinstall/inc Src/Lib/Ioutil/acc_mma7455.c
Src/Lib/Ioutil/acc_mma7455.c: In function 'acc_regrd':
Src/Lib/Ioutil/acc_mma7455.c:61: warning: implicit declaration of function 'ACC_SELN_LO'
Src/Lib/Ioutil/acc_mma7455.c:67: warning: implicit declaration of function 'ACC_SELN_HI'
Src/Lib/Ioutil/acc_mma7455.c: In function 'acc_init':
Src/Lib/Ioutil/acc_mma7455.c:110: error: 'ACC_SELN_PORT' undeclared (first use in this function)
Src/Lib/Ioutil/acc_mma7455.c:110: error: (Each undeclared identifier is reported only once
Src/Lib/Ioutil/acc_mma7455.c:110: error: for each function it appears in.)
Src/Lib/Ioutil/acc_mma7455.c:110: error: 'ACC_SELN_bp' undeclared (first use in this function)
Src/Lib/Ioutil/acc_mma7455.c:111: error: 'ACC_SELN_DDR' undeclared (first use in this function)
scons: *** [build/zgbt1281a2uart0/lib/Ioutil/acc_mma7455.o] Error 1
scons: building terminated because of errors.


It seems, by now only the LittleG board actually defines
anything like that:


% grep -R ACC_SELN_LO .
./install/inc/boards/board_lgee.h:#define ACC_SELN_LO()     do{ ACC_SELN_PORT &= ~_BV(ACC_SELN_bp); }while(0)
./install/inc/boards/board_lgee.h:#define ACC_SELN_LO()     do{ ACC_SELN_PORT &= ~_BV(ACC_SELN_bp); }while(0)
./Src/Lib/Inc/boards/board_lgee.h:#define ACC_SELN_LO()     do{ ACC_SELN_PORT &= ~_BV(ACC_SELN_bp); }while(0)
./Src/Lib/Inc/boards/board_lgee.h:#define ACC_SELN_LO()     do{ ACC_SELN_PORT &= ~_BV(ACC_SELN_bp); }while(0)
./Src/Lib/Ioutil/acc_mma7455.c: ACC_SELN_LO();
./Src/Lib/Ioutil/acc_mma7455.c: ACC_SELN_LO();
./Src/Lib/Ioutil/acc_mma7455.c: ACC_SELN_LO();


I guess the compilation should then only be enabled for
boards that actually support it.

Joerg Wunsch <joerg_wunsch>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-02-17 joerg_wunsch StatusNone Fixed
        Assigned toNone dath
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code