-
-
Notifications
You must be signed in to change notification settings - Fork 48
[328PB] Missing definitions in power.h #66
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
Comments
Just for reference, power.h does not work with ATmega324PB either. |
The following things have to be changed in order to get the power functions working for m324PB and m328PB controller: power.h iom324pb.h and iom328pb.h |
Huh? That seems like a bad approach - that IS correctly defined in the io header - there are two SPI and TWI peripherals, and as far as I can tell they both get a bit in a PRR register to shut them down... So we should instead leave iom32*pb.h untouched, and add the following to power.h so that it can understand the real register names - and will provide the power management functions for the second SPI and TWI peripherals too #if defined(__AVR_HAVE_PRR0_PRSPI0) #if defined(__AVR_HAVE_PRR1_PRSPI1) #if defined(__AVR_HAVE_PRR2_PRSPI1) #if defined(__AVR_HAVE_PRR0_PRTWI0) #if defined(__AVR_HAVE_PRR1_PRTWI1) #if defined(__AVR_HAVE_PRR2_PRTWI1) And as you said, add those parts to the list... |
Yes, that is also possible. I though to use the existing definitions from the other controllers, but you are right, because |
@SpenceKonde some typos on that code but it's that the path. |
Yeah, I was doing it in github off the top of my head *shrug*
…____________
Spence Konde
Azzy’S Electronics
New products! Check them out at tindie.com/stores/DrAzzy
GitHub: github.com/SpenceKonde
ATTinyCore: Arduino support for almost every ATTiny microcontroller
Contact: [email protected]
On Sun, May 3, 2020, 08:59 chaveiro ***@***.***> wrote:
@SpenceKonde <https://github.com/SpenceKonde> some typos that but it's
that the path.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#66 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEWZMIP4OMUIEFRITAMLRPVTEHANCNFSM4JOUN6KA>
.
|
Unfortunately i'm not sure where is the repository for hardware\tools\avr\avr\include\avr\power.h file. https://github.com/arduino/toolchain-avr/ seems just a bunch of scripts that compiles the AVR Toolchain for arduino project, but no source for that file there. How to report a bug to Microchip ? |
See info.txt in alsoneeded directory for more information on this. These files need to replace the standard versions of them in order to fix arduino#66, arduino#67, and an issue with eeprom_is_ready() in eeprom.h that manifests on the newer parts. Unfortunately I'm not good enough at shell scripting to make the build scripts slip these fixes in
See info.txt in alsoneeded directory for more information on this. These files need to replace the standard versions of them in order to fix arduino#66, arduino#67, and an issue with eeprom_is_ready() in eeprom.h that manifests on the newer parts. Unfortunately I'm not good enough at shell scripting to make the build scripts slip these fixes in
I've seen that some changes has been merged. If not how can I test the new patches? |
These fixes are in arduino7 version of toolchain, which is included by default on 1.8.13. This issue should be closed. |
Just tested, its working. |
I thought it was a problem of MiniCore but after some troubleshooting its not.
#117
So far I have found that thoose functions are missing:
But I think that others might also missing. The same code compiled for the 168PB works fine.
I'm using Arduino 1.8.0 that is shipped with:
The text was updated successfully, but these errors were encountered: