/* Enable or disable write protect of DACC registers.  */
void dacc_set_writeprotect(Dacc *p_dacc, uint32_t ul_enable)
/* Enable or disable write protect of DACC registers.  */
void dacc_set_writeprotect(Dacc *p_dacc, uint32_t ul_enable)
{
	if (ul_enable) {
		p_dacc->DACC_WPMR = DACC_WPMR_WPKEY_PASSWD
			          | DACC_WPMR_WPEN;
	} else {
		p_dacc->DACC_WPMR = DACC_WPMR_WPKEY_PASSWD;
	}
}