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

Update core_ca.h #216

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

NVMarkovich
Copy link

Small bugs fixed

Small bugs fixed
@JonatanAntoni
Copy link
Member

@Masmiseim36, could you double check this one?

@@ -1015,7 +1015,7 @@ typedef struct

/* GICInterface HPPIR Register */
#define GICInterface_HPPIR_INTID_Pos 0U /*!< PTIM HPPIR: INTID Position */
#define GICInterface_HPPIR_INTID_Msk (0xFFFFFFU /*<< GICInterface_HPPIR_INTID_Pos*/) /*!< PTIM HPPIR: INTID Mask */
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

@NVMarkovich Which documentation are you referring to?

Copy link
Author

Choose a reason for hiding this comment

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

IHI0048B_gic_architecture_specification_GICv2-GICv1.pdf

Copy link
Contributor

Choose a reason for hiding this comment

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

@JonatanAntoni: I think the CMSIS documentation also needs to be updated
grafik

#define GICInterface_DIR_INTID_Pos 0U /*!< PTIM DIR: INTID Position */
#define GICInterface_DIR_INTID_Msk (0xFFFFFFU /*<< GICInterface_DIR_INTID_Pos*/) /*!< PTIM DIR: INTID Mask */
#define GICInterface_DIR_INTID_Pos 0U /*!< GICInterface DIR: INTID Position */
#define GICInterface_DIR_INTID_Msk (0xFFFFFFU /*<< GICInterface_DIR_INTID_Pos*/) /*!< GICInterface DIR: INTID Mask */
#define GICInterface_DIR_INTID(x) (((uint32_t)(((uint32_t)(x)) /*<< GICInterface_DIR_INTID_Pos*/)) & GICInterface_DIR_INTID_Msk)
Copy link
Contributor

@Masmiseim36 Masmiseim36 Feb 3, 2025

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

You are right, I was referring to an older spec for Architecture version 2.0: ARM IHI 0048B (ID061411)

Copy link
Author

Choose a reason for hiding this comment

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

Here the remark is about the PTIM comment, not about the value

#define ISR_I_Msk (1UL << ISR_I_Pos) /*!< \brief ISR: I Mask */

#define ISR_F_Pos 11U /*!< \brief ISR: F Position */
#define ISR_F_Pos 6U /*!< \brief ISR: F Position */
#define ISR_F_Msk (1UL << ISR_F_Pos) /*!< \brief ISR: F Mask */
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

The values appear to have been corrected in the sixth version of the CMSIS documentation:
https://arm-software.github.io/CMSIS_6/latest/Core_A/unionISR__Type.html

Copy link
Author

Choose a reason for hiding this comment

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

May be the CMSIS documentation needs change too?

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