bugAVR C Runtime Library - Bugs: bug #37627, #define PA0_DDR DDRADC without...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #37627: #define PA0_DDR DDRADC without ever defining DDRADC

Submitter:  None
Submitted:  Wed 24 Oct 2012 03:13:11 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  9 - Immediate Item Group:  Header files
Status:  None Assigned to:  None
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  1.8.0
Fixed Release:  None

Wed 24 Oct 2012 05:40:17 PM UTC, comment #1: 

I have found some more...

In avr/iom16hva2.h:
#define NV_DDR   DDRNV
#define NV_PORT  PORTNV
#define NV_PIN   PINNV
#define NV_BIT   NV
and following lines don't seem right to me either.

Also:
avr/iom16hvb.h
avr/iom16hvbrevb.h
avr/iom32hvb.h
avr/iom64hve.h


Anonymous
Wed 24 Oct 2012 03:13:11 PM UTC, original submission:  

A number of header files contains macros definitions like:
#define PA0_DDR   DDRADC
#define PA0_PORT  PORTADC
#define PA0_PIN   PINADC
#define PA0_BIT   ADC0
or
#define PCINT1_DDR   DDRADC
#define PCINT1_PORT  PORTADC
#define PCINT1_PIN   PINADC
#define PCINT1_BIT   ADC1

without ever defining DDRADC, PORTADC, ADC0...

I assume these lines were supposed to read:
#define PA0_DDR   DDRA
#define PA0_PORT  PORTA
#define PA0_PIN   PINA
#define PA0_BIT   0
??

This applies to all device pin definitions in:
avr/iotn861a.h
avr/iom88pa.h
avr/iotn20.h
avr/iotn461a.h
avr/iotn40.h
avr/iotn261a.h

Anonymous

 

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

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 arcanum (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-11-16 arcanum Priority5 - Normal 9 - Immediate

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code