avr-libc
avr-libc copied to clipboard
[bug #35215] error: 'CLKPS2' undeclared when using clock_prescale_get() function
Mon 02 Jan 2012 08:13:35 AM CET
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'.
file #24720: avr-libc-bug35215.patch
This issue was migrated from https://savannah.nongnu.org/bugs/?35215
Pitchumani
Patch for fixing issue is attached. Please check.
Senthil Kumar Selvaraj
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.