/* Config all pins to the right pull state based on pmap_func table before soc deep sleep.  */
CONFIG_FW_CRITICAL_CODE_SECTION void pinmap_deepsleep(void)
/* Config all pins to the right pull state based on pmap_func table before soc deep sleep.  */
CONFIG_FW_CRITICAL_CODE_SECTION void pinmap_deepsleep(void)
{
	int i = 0;
	for (;;) {
		if (pmap_func[i].PinName == _PNC) {
			break;
		}
		if (pmap_func[i].DSleepPuPd == GPIO_PuPd_KEEP)
			goto next;
		if (pmap_func[i].DSleepPuPd == GPIO_PuPd_SHUTDOWN)
			PAD_CMD(pmap_func[i].PinName, DISABLE);
		else
			PAD_PullCtrl(pmap_func[i].PinName, pmap_func[i].DSleepPuPd);
next:		i++;
	}
}