/* Enable or disable write protection of SSC registers.  */
void ssc_set_writeprotect(Ssc *p_ssc, uint32_t ul_enable)
/* Enable or disable write protection of SSC registers.  */
void ssc_set_writeprotect(Ssc *p_ssc, uint32_t ul_enable)
{
	if (ul_enable) {
		p_ssc->SSC_WPMR = SSC_WPMR_WPKEY_PASSWD | SSC_WPMR_WPEN;
	} else {
		p_ssc->SSC_WPMR = SSC_WPMR_WPKEY_PASSWD;
	}
}