设定时钟外设调试开关
en_result_t Clk_DebugClk(en_clk_debug_t enPeri, boolean_t bFlag)
{
switch (enPeri)
{
case ClkDBGTim0:
case ClkDBGTim1:
case ClkDBGTim2:
case ClkDBGLpTim:
case ClkDBGTim4:
case ClkDBGTim5:
case ClkDBGTim6:
case ClkDBGTPca:
case ClkDBGTWdt:
case ClkDBGTRtc:
case ClkDBGTTick:
setBit(&M0P_CLOCK->DEBUG_ACTIVE, 1 << enPeri, bFlag);
break;
default:
return ErrorInvalidParameter;
}
return Ok;
} |