:orphan: .. title:: CLOCK_NPCX_APB2_PRESCALER .. option:: CONFIG_CLOCK_NPCX_APB2_PRESCALER *APB2 prescaler* Type: ``int`` Help ==== .. code-block:: none This sets the APB2 prescaler which changes the frequency of APB2_CLK. APB2_CLK frequency = OSC_CLK / APB2_PRE. The APB2 prescaler allowed value is from 1 to 10. The generated frequency of APB2_CLK should comply with the following requirements: - The frequency of APB2_CLK must be set to: 8MHz <= APB2_CLK <= 50MHz. - The frequency of APB2_CLK must be an integer division (including 1) of the frequency of the Core clock. Direct dependencies =================== \ :option:`SOC_FAMILY_NPCX ` && \ :option:`CLOCK_CONTROL ` *(Includes any dependencies from ifs and menus.)* Default ======= - 8 Kconfig definition ================== At ``/clock_control/Kconfig.npcx:38`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:32`` → ``/Kconfig:54`` → ``/clock_control/Kconfig:43`` Menu path: (Top) → Device Drivers → Hardware clock controller support .. code-block:: kconfig config CLOCK_NPCX_APB2_PRESCALER int "APB2 prescaler" range 1 10 default 8 depends on SOC_FAMILY_NPCX && CLOCK_CONTROL help This sets the APB2 prescaler which changes the frequency of APB2_CLK. APB2_CLK frequency = OSC_CLK / APB2_PRE. The APB2 prescaler allowed value is from 1 to 10. The generated frequency of APB2_CLK should comply with the following requirements: - The frequency of APB2_CLK must be set to: 8MHz <= APB2_CLK <= 50MHz. - The frequency of APB2_CLK must be an integer division (including 1) of the frequency of the Core clock. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*