Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Macros | |
#define | NRF_PERIPH_GET_FREQUENCY(node) |
Get clock frequency that is used for the given node. | |
#define NRF_PERIPH_GET_FREQUENCY | ( | node | ) |
Get clock frequency that is used for the given node.
Macro checks if node has clock property and if yes then if clock has clock_frequency property then it is returned. If it has supported_clock_frequency property with the list of supported frequencies then the last one is returned with assumption that they are ordered and the last one is the highest. If node does not have clock then 16 MHz is returned which is the default frequency.
node | Devicetree node. |