Skip to content

power_usart3_enable() and power_usart3_disable() missing from power.h #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pippo-75 opened this issue Aug 24, 2016 · 6 comments
Closed

Comments

@pippo-75
Copy link

Hi all, I report a bug(?) in power.h library, distributed with IDE 1.6.10 Win.
The error is:
exit status 1
'Power_usart3_disable' was not declared in this scope
ide1 6 10_usart3

The library lacks the definition for USART3. Solved by adding the following lines (from 852 to 855):

# if defined (__ AVR_HAVE_PRR1_PRUSART3)
# define power_usart3_enable () (PRR1 & = (uint8_t) ~ (1 << PRUSART3))
# define power_usart3_disable () (PRR1 | = (uint8_t) (1 << PRUSART3))
# endif

A problem with the Wire library (Note: the IDE 1.6.9 compiled all, without errors):
To make sure that the IDE 1.6.10 correctly loads the LiquidCrystal_I2C library,
I had to move the content of the src folder to the root (Wire folder).

Now compile fine.

@facchinm
Copy link
Member

Hi @pippo-75,
the problem here is avr-libc. This patch (vancegroup-mirrors/avr-libc@12d7b0a) reworked power.h but lost power_usart3* functions. Thanks for reporting, I'm escalating this to avr-libc developers.
About LiquidCrystal_I2C, I had no problem with the version included in the Library Manager (from @marcoschwartz). Which one are you using?

@facchinm
Copy link
Member

Problem reported and patch submitted here http://savannah.nongnu.org/bugs/index.php?48898

@JM-FRANCE
Copy link

How can this be included in the next build of the Arduino IDE?

@facchinm
Copy link
Member

facchinm commented Nov 7, 2016

The patch was applied to avr-libc trunk, but not released yet. We'll ship it as soon as Microchip/Atmel releases a toolchain with the patch applied (or sooner, if avr-libc should publish a bugfix version)

@per1234 per1234 changed the title IDE 1.6.10 - library power.h power_usart3_enable() and power_usart3_disable() missing from power.h Jul 5, 2017
@tomjennings
Copy link

power_usart3_disable() and power_usart3_enable() remain undefined.

@sandeepmistry sandeepmistry transferred this issue from arduino/Arduino Sep 16, 2019
@facchinm
Copy link
Member

Latest toolchain for avr contains the fix in avr-libc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants