bugAVR C Runtime Library - Bugs: bug #35215, error: 'CLKPS2' undeclared when...

 
 

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

bug #35215: error: 'CLKPS2' undeclared when using clock_prescale_get() function

Submitter:  Pitchumani <pitchumani>
Submitted:  Mon 02 Jan 2012 07:13:35 AM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  9 - Immediate Item Group:  Header files
Status:  Fixed Assigned to:  pitchumani
Percent Complete:  0% Open/Closed:  Open
Release:  1.7.1 Fixed Release:  None

Mon 13 May 2013 06:45:25 AM UTC, comment #2: 

This should be fixed in SVN revision r2396 - the patch (http://lists.nongnu.org/archive/html/avr-libc-dev/2013-05/msg00025.html) was sent to the mailing list. Apologies for not checking the bug list first.

Senthil Kumar Selvaraj <saaadhu>
Group Member
Mon 02 Jan 2012 07:27:03 AM UTC, comment #1: 

Patch for fixing issue is attached. Please check.

(file #24720)

Pitchumani <pitchumani>
Group Member
Mon 02 Jan 2012 07:13:35 AM UTC, original submission:  

Target devices: atmega16hvb/ atmega16hvbrevb/ atmega32hvb/ atmega32hvbrevb

Following errors are issued when 'clock_prescale_get()' function is called.

error: 'CLKPS2' undeclared (first use in this function)
error: 'CLKPS3' undeclared (first use in this function)

Cause:
'clock_prescale_get()' macro definitions for atmega16hvb, atmega16hvbrevb, atmega32hvb and atmega32hvbrevb devices in power.h are wrong. It uses undefined macros 'CLKPS2' and 'CLKPS3'.

Pitchumani <pitchumani>
Group Member

 

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

Attached Files
file #24720:  avr-libc-bug35215.patch added by pitchumani (2KiB - application/octet-stream - patch for defect fix)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by saaadhu (Posted a comment)
  • -email is unavailable- added by arcanum (Updated the item)
  • -email is unavailable- added by pitchumani (Submitted the item)
  •  

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-20 pitchumani StatusNone Fixed
        Assigned toNone pitchumani
    2012-11-16 arcanum Priority5 - Normal 9 - Immediate
    2012-01-02 pitchumani Attached File- Added avr-libc-bug35215.patch, #24720

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code