Skip to content

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

Open
@avrs-admin

Description

@avrs-admin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions