Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

stm32f4 IRQ manager correct static members initialization #17

Merged
merged 2 commits into from Apr 26, 2016

Conversation

forGGe
Copy link
Collaborator

@forGGe forGGe commented Apr 24, 2016

IRQ manager is a first entity that must be initialized in the system.
Placement new used inside init() methods helps to avoid issues
with static initialization order.

@forGGe
Copy link
Collaborator Author

forGGe commented Apr 24, 2016

/cc @vadimol


private:
//! Total IRQ count.
static constexpr auto irqs = 82;
Copy link
Collaborator

Choose a reason for hiding this comment

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

we probably need some platform define like PLATFORM_IRQ_COUNT. STM32F40_41xxx and STM32F427_437xx for example has different number of interrupts

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

IRQ manager is a first entity that must be initialized in the system.
Placement new used inside init() methods helps to avoid issues
with static initialization order.
@vadimol
Copy link
Collaborator

vadimol commented Apr 26, 2016

Looks good for me

@forGGe forGGe merged commit bb21dbb into develop Apr 26, 2016
forGGe added a commit that referenced this pull request Apr 26, 2016
stm32f4 IRQ manager correct static members initialization
@forGGe forGGe deleted the irq_manager_correct_init branch April 28, 2016 16:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants