AVR C Runtime Library - Bugs: bug #58862, avr/wdt.h LLVM11 error for...
You are not allowed to post comments on this tracker with your current authentication level.
bug #58862: avr/wdt.h LLVM11 error for atmega328p
Submitter: | Kim <kimstik> | ||
Submitted: | Fri 31 Jul 2020 11:32:44 AM UTC | ||
Category: | Header | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | Header files |
Status: | None | Assigned to: | None |
Percent Complete: | 0% | Open/Closed: | Open |
Release: | 2.0.0 | Fixed Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
No changes have been made to this item
Powered by Savane 3.13-3230.
Corresponding source code
Error message:
avr\include\avr/wdt.h:419:12: error: value '64' out of range for constraint 'I'
: "I" (_SFR_IO_ADDR(_WD_CONTROL_REG)),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avr\include\avr/sfr_defs.h:183:27: note: expanded from macro '_SFR_IO_ADDR'
#define _SFR_IO_ADDR(sfr) (_SFR_MEM_ADDR(sfr) - __SFR_OFFSET)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------
I guess that wdt_enable()/wdt_disable() should have conditional preprocessor code instead of conditional inline.