avr-libc icon indicating copy to clipboard operation
avr-libc copied to clipboard

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

Open avrs-admin opened this issue 3 years ago • 2 comments

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

avrs-admin avatar Jan 31 '22 00:01 avrs-admin

Pitchumani Mon 02 Jan 2012 08:27:03 AM CET

Patch for fixing issue is attached. Please check.

(file #24720)

avrs-admin avatar Jan 31 '22 00:01 avrs-admin

Senthil Kumar Selvaraj Mon 13 May 2013 08:45:25 AM CEST

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.

avrs-admin avatar Jan 31 '22 00:01 avrs-admin