Hi,
Thank you so much for your interest in our products and for using our community.
Regarding your questions:
1. The STM counter can be driven by AIPS_PLAT_CLK, FXOSC_CLK or FIRC_CLK.
2. For example:
Assuming STM0_CLK source clock is AIPS_PLAT_CLK @24MHz.
To configure the timer

To configure the compare channel

3. The Stm_Ip_GetCompareValue() function gets the compare value for selected channel, it could be useful for redundancy or if you have two task, one sets the CMPx an the other can gets the value if necessary.
Hope it helps you.
Have a nice day!