/* System clock peripheral aon disable. 
Use this function to enable system clock peripheral aon. */
enum status_code system_clock_peripheral_aon_disable(enum system_peripheral_aon peripheral_aon)
/* System clock peripheral aon disable. 
Use this function to enable system clock peripheral aon. */
enum status_code system_clock_peripheral_aon_disable(enum system_peripheral_aon peripheral_aon)
{
	switch (peripheral_aon) {
		case PERIPHERAL_AON_SLEEP_TIMER:
			AON_GP_REGS0->AON_MISC_CTRL.reg &= \
				~AON_GP_REGS_AON_MISC_CTRL_AON_SLEEP_TIMER_CLK_EN;
		break;
		case PERIPHERAL_AON_PD:
			AON_GP_REGS0->AON_MISC_CTRL.reg &= \
				~AON_GP_REGS_AON_MISC_CTRL_AON_EXT_32KHZ_OUT_EN;
		break;
		default:
			return STATUS_ERR_INVALID_ARG;
	}
	return STATUS_OK;
}