analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
61 stars 82 forks source link

fix(CMSIS,PeriphDrivers): Fix logic error in SYS Clock Enable/Disable functions and INRO frequency for MAX32662 #895

Closed kilicomercan closed 8 months ago

kilicomercan commented 8 months ago

1) INRO/NANORING clock is 80kHz according to the UG. But, it was defined as 8kHz in system_max32662.h. See page 36 -> https://www.analog.com/media/en/technical-documentation/user-guides/max32662-ug-7640.pdf image

2) Logic error exists related to if controls in MXC_SYS_ClockDisable and MXC_SYS_ClockEnable functions. See sys_me12.c

sihyung-maxim commented 8 months ago

Thanks for the fix. Adding this for reference - just in case. image

ozersa commented 7 months ago

Regarding this change it will be nice if this line be updated in appropriate way.

image

kilicomercan commented 7 months ago

Thanks @ozersa , I will open a new PR on this.