/* Sets the UPLL monitor mode. 
This function sets the UPLL monitor mode. The mode can be disabled, it can generate an interrupt when the error is disabled, or reset when the error is detected. */
void CLOCK_SetUpllMonitorMode(scg_upll_monitor_mode_t mode)
/* Sets the UPLL monitor mode. 
This function sets the UPLL monitor mode. The mode can be disabled, it can generate an interrupt when the error is disabled, or reset when the error is detected. */
void CLOCK_SetUpllMonitorMode(scg_upll_monitor_mode_t mode)
{
    uint32_t reg = SCG0->UPLLCSR;
    reg &= ~(SCG_UPLLCSR_UPLLCM_MASK | SCG_UPLLCSR_UPLLCMRE_MASK);
    reg |= (uint32_t)mode;
    SCG0->UPLLCSR = reg;
}