В одном месте:
#define PBSD 4 /* Peripheral bus speed divider (1, 2, or 4) */
В другом месте:
VPBDIV = PBSD;
В третьем месте:
#define VPBDIV (*((volatile unsigned long *) 0xE01FC100))
В документации на чип:
APBDIV - address 0xE01FC100
[skip]
APB Divider register (APBDIV - address 0xE01FC100) bit description
1:0 00 APB bus clock is one fourth of the processor clock.
01 APB bus clock is the same as the processor clock.
10 APB bus clock is one half of the processor clock.
Хакеры, а? Если бы только не продолжение документации:
7:2 Reserved, user software should not write ones to reserved bits.
#define PBSD 4 /* Peripheral bus speed divider (1, 2, or 4) */
В другом месте:
VPBDIV = PBSD;
В третьем месте:
#define VPBDIV (*((volatile unsigned long *) 0xE01FC100))
В документации на чип:
APBDIV - address 0xE01FC100
[skip]
APB Divider register (APBDIV - address 0xE01FC100) bit description
1:0 00 APB bus clock is one fourth of the processor clock.
01 APB bus clock is the same as the processor clock.
10 APB bus clock is one half of the processor clock.
Хакеры, а? Если бы только не продолжение документации:
7:2 Reserved, user software should not write ones to reserved bits.
Tags:
no subject
no subject