AnsweredAssumed Answered

K40 BSP API function to obtain system clock setting

Question asked by Sriram Chadalavada on Mar 26, 2013
Latest reply on Mar 27, 2013 by Martin Kojtal

Dear community,

    What is the API function in K series(For example, K40) BSP to obtain current system clock value?


    In some of the low level DSPI driver code provided by Freescale, this function has been used:


  clock_speed = _bsp_get_clock(_bsp_get_clock_configuration(), dspi_info_ptr->CLOCK_SOURCE);


    However, unless I'm missing something, the second parameter cannot be accessed by a higher level driver.


    My question is whether there is any other function to obtain the system clock or some way the second parameter in the above function is accessible from higher level driver code.