GithubHelp home page GithubHelp logo

Comments (9)

Cysign avatar Cysign commented on July 27, 2024 8

By removing line 440 and line 475 I was able to compile properly.

line 440:
if (usart3 == USART3_OFF) power_usart3_disable();

line 475:
if (usart3 == USART3_OFF) power_usart3_enable();

from low-power.

rocketscream avatar rocketscream commented on July 27, 2024 2

@AnoxySoftware thank you for the suggestion. I'm going to do a clean up on the libraries.

from low-power.

vossilius avatar vossilius commented on July 27, 2024

+1

from low-power.

bsoufflet avatar bsoufflet commented on July 27, 2024

+1 also on LowPower version 1.60 and arduino IDE 1.8.1 + Arduino Mega :

LowPower.cpp: In member function 'void LowPowerClass::idle(period_t, adc_t, timer5_t, timer4_t, timer3_t, timer2_t, timer1_t, timer0_t, spi_t, usart3_t, usart2_t, usart1_t, usart0_t, twi_t)':
LowPower.cpp:440:49: error: 'power_usart3_disable' was not declared in this scope
if (usart3 == USART3_OFF) power_usart3_disable();
^
LowPower.cpp:475:48: error: 'power_usart3_enable' was not declared in this scope
if (usart3 == USART3_OFF) power_usart3_enable();
^

from low-power.

Cysign avatar Cysign commented on July 27, 2024

Same here. Did anyone fix this?

from low-power.

AnoxySoftware avatar AnoxySoftware commented on July 27, 2024

A better solution is to use a preprocessor macro in case this get's added back someday in the power.h of avr:

	#if defined(__AVR_HAVE_PRR_PRUSART3)
	if (usart3 == USART3_OFF)	power_usart3_disable();
	#endif
	#if defined(__AVR_HAVE_PRR_PRUSART3)
	if (usart3 == USART3_OFF)	power_usart3_enable();
	#endif

from low-power.

tvixen avatar tvixen commented on July 27, 2024

Arduino Mega 2560 issue still not fixed.

In Arduino Compiler 1.8.5 we get this error:
LowPower.cpp:597: error: 'power_usart3_enable' was not declared in this scope
if (usart3 == USART3_OFF) power_usart3_enable();
exit status 1
'power_usart3_disable' was not declared in this scope

For your information, its working with Nano, and Uno.

from low-power.

maxholgasson avatar maxholgasson commented on July 27, 2024

Same here. Still using 1.8.4

from low-power.

Chilkos avatar Chilkos commented on July 27, 2024

Unfortunately still not fixed, probably not good to have marked as closed seeing as the readme states this board is supported. Deleting the lines above does let it compile, however these are now at lines 567 & 602

from low-power.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.