Skip to content

Use enum to determine previous CPU mode #3

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

Merged
merged 9 commits into from
Apr 19, 2024
Merged

Use enum to determine previous CPU mode #3

merged 9 commits into from
Apr 19, 2024

Conversation

sebromero
Copy link
Contributor

@sebromero sebromero commented Apr 18, 2024

In this PR I made a proposal of using an enum to check for the previous CPU mode instead of using multiple functions. This makes for a cleaner API.

Copy link

Memory usage change @ 447ed19

Board flash % RAM for global variables %
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
Click for full report table
Board examples/AllowDeepSleep
flash
% examples/AllowDeepSleep
RAM for global variables
% examples/DeepSleepLockDebug
flash
% examples/DeepSleepLockDebug
RAM for global variables
% examples/Standby
flash
% examples/Standby
RAM for global variables
%
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
Click for full report CSV
Board,examples/AllowDeepSleep<br>flash,%,examples/AllowDeepSleep<br>RAM for global variables,%,examples/DeepSleepLockDebug<br>flash,%,examples/DeepSleepLockDebug<br>RAM for global variables,%,examples/Standby<br>flash,%,examples/Standby<br>RAM for global variables,%
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A

@sebromero sebromero requested a review from alrvid April 19, 2024 08:03
@sebromero sebromero requested a review from alrvid April 19, 2024 11:11
Copy link

Memory usage change @ c02f480

Board flash % RAM for global variables %
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
Click for full report table
Board examples/AllowDeepSleep
flash
% examples/AllowDeepSleep
RAM for global variables
% examples/DeepSleepLockDebug
flash
% examples/DeepSleepLockDebug
RAM for global variables
% examples/Standby
flash
% examples/Standby
RAM for global variables
%
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
Click for full report CSV
Board,examples/AllowDeepSleep<br>flash,%,examples/AllowDeepSleep<br>RAM for global variables,%,examples/DeepSleepLockDebug<br>flash,%,examples/DeepSleepLockDebug<br>RAM for global variables,%,examples/Standby<br>flash,%,examples/Standby<br>RAM for global variables,%
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A

Copy link

Memory usage change @ 5d7bd02

Board flash % RAM for global variables %
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
Click for full report table
Board examples/AllowDeepSleep
flash
% examples/AllowDeepSleep
RAM for global variables
% examples/DeepSleepLockDebug
flash
% examples/DeepSleepLockDebug
RAM for global variables
% examples/Standby
flash
% examples/Standby
RAM for global variables
%
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
Click for full report CSV
Board,examples/AllowDeepSleep<br>flash,%,examples/AllowDeepSleep<br>RAM for global variables,%,examples/DeepSleepLockDebug<br>flash,%,examples/DeepSleepLockDebug<br>RAM for global variables,%,examples/Standby<br>flash,%,examples/Standby<br>RAM for global variables,%
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A

@sebromero sebromero merged commit ca4f2a3 into main Apr 19, 2024
7 checks passed
@sebromero sebromero deleted the refactorings branch April 19, 2024 13:14
alrvid pushed a commit to alrvid/Arduino_LowPowerPortentaH7 that referenced this pull request Apr 29, 2024
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

Successfully merging this pull request may close these issues.

3 participants