Skip to content
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

nrfbsim: Provide a few updated to enable more apps #80145

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

aescolar
Copy link
Member

@aescolar aescolar commented Oct 21, 2024

A few minor updates which enable more apps.
One commit provides a macro defined for ARM some apps need. The other 2 are minor updates to the native simulator and HW models.

  • boards nrf_bsim: Add NVIC_GetPendingIRQ() equivalent
  • boards nrf_bsim: Provide IRQ_PRIO_LOWEST
  • manifest: Update nRF hw models to latest
  • native_simulator: Get latest from upstream

Align with native_simulator's upstream main
51b27b67addd0073dc86e3d83f492c5cac5c3361

Which includes:
* 51b27b nsi_utils: Add macro for weak declarations

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
@aescolar aescolar requested a review from hermabe October 21, 2024 12:32
@zephyrbot zephyrbot added area: native port Host native arch port (native_sim) platform: nRF BSIM Nordic Semiconductors, nRF BabbleSim labels Oct 21, 2024
@zephyrbot
Copy link
Collaborator

zephyrbot commented Oct 21, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
nrf_hw_models zephyrproject-rtos/nrf_hw_models@eeed259 zephyrproject-rtos/nrf_hw_models@aca798c (main) zephyrproject-rtos/nrf_hw_models@eeed2591..aca798cf

Note: This message is automatically posted and updated by the Manifest GitHub Action.

hermabe
hermabe previously approved these changes Oct 21, 2024
@aescolar
Copy link
Member Author

CC @ilhanates

Update the HW models module to:
aca798cf7cf0c5dc1fd89c66cf62670051feb8d0

Including the following:
* aca798c IRQ controller: Add missing prototype
* 4f108bc IRQ controller: Add API to check if int is pending
* a514448 MDK: provide replacement for SystemCoreClock*

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Some apps use it, so let's provide it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Add a substitute for NVIC_GetPendingIRQ()

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
@@ -18,6 +18,7 @@ void nrfbsim_WFE_model(void);
void nrfbsim_SEV_model(void);

#define IRQ_ZERO_LATENCY BIT(1) /* Unused in this board*/
#define IRQ_PRIO_LOWEST UINT8_MAX
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#define IRQ_PRIO_LOWEST UINT8_MAX
#define IRQ_PRIO_LOWEST UINT8_MAX

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't like the defines aligned? :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a tab, is it not? ... no. of spaces to align i can not make out in github, but definitely see a tab though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is 2 tabs to align with the single tab in the line above

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tab only allowed at the beginning of lines in Zephyr, atleast that is how compliance used to be.

@cvinayak cvinayak dismissed their stale review October 23, 2024 14:32

authors descretion to fix tabs in between defines.

@aescolar aescolar added this to the v4.0.0 milestone Oct 24, 2024
@fabiobaltieri fabiobaltieri merged commit 1c75408 into zephyrproject-rtos:main Oct 24, 2024
29 checks passed
@aescolar aescolar deleted the nrfbsim_system branch October 24, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: native port Host native arch port (native_sim) manifest manifest-nrf_hw_models platform: nRF BSIM Nordic Semiconductors, nRF BabbleSim
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants