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

type of AHBPrescTable[] and APBPrescTable[] #52

Open
CanastraRF opened this issue Dec 16, 2024 · 0 comments
Open

type of AHBPrescTable[] and APBPrescTable[] #52

CanastraRF opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
hal HAL-LL driver-related issue or pull-request. question Further information is requested rcc Reset and Clock Controller

Comments

@CanastraRF
Copy link

Hi

Why is the type of AHBPrescTable[] and APBPrescTable[] uint32_t?

const uint32_t AHBPrescTable[16U] = {0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 1UL, 2UL, 3UL, 4UL, 6UL, 7UL, 8UL, 9UL};
const uint32_t APBPrescTable[8U] = {0UL, 0UL, 0UL, 0UL, 1UL, 2UL, 3UL, 4UL};

All other families has got uint8_t

const uint8_t AHBPrescTable[16U] = {0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 1U, 2U, 3U, 4U, 6U, 7U, 8U, 9U};
const uint8_t APBPrescTable[8U] = {0U, 0U, 0U, 0U, 1U, 2U, 3U, 4U};

can you explain?

@ALABSTM ALABSTM added rcc Reset and Clock Controller question Further information is requested hal HAL-LL driver-related issue or pull-request. labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hal HAL-LL driver-related issue or pull-request. question Further information is requested rcc Reset and Clock Controller
Projects
Development

No branches or pull requests

3 participants