Skip to main content
RWhit
Associate
October 17, 2019
Question

Can anyone document APBPrescTable ?

  • October 17, 2019
  • 2 replies
  • 781 views

In the standard peripheral library, the array APBPrescTable is used to configure the clock prescaler values.

Can anyone explain what these 16 values mean? How do they correspond with the prescalers described in the chip manual ("AHB Prescaler" etc.)?

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
October 17, 2019

Which SPL? I searched through the 'F0 and the 'F4 ones, and did find no APBPrescTable.

JW

RWhit
RWhitAuthor
Associate
October 18, 2019
It is in stm32f4xx_rcc.c:
static __I uint8_t APBAHBPrescTable[16] = {0, 0, 0, 0, 1, 2, 3, 4, 1, 2, 3, 4, 6, 7, 8, 9};