add missed port

pull/448/head
Yihui Xiong 2014-08-18 11:12:18 +08:00
parent 601712595f
commit 0cd6ca6600
1 changed files with 16 additions and 0 deletions

View File

@ -68,10 +68,26 @@ uint32_t Set_GPIO_Clock(uint32_t port_idx) {
gpio_add = GPIOD_BASE;
__GPIOD_CLK_ENABLE();
break;
case PortE:
gpio_add = GPIOE_BASE;
__GPIOE_CLK_ENABLE();
break;
case PortF:
gpio_add = GPIOF_BASE;
__GPIOF_CLK_ENABLE();
break;
case PortG:
gpio_add = GPIOG_BASE;
__GPIOG_CLK_ENABLE();
break;
case PortH:
gpio_add = GPIOH_BASE;
__GPIOH_CLK_ENABLE();
break;
case PortI:
gpio_add = GPIOI_BASE;
__GPIOI_CLK_ENABLE();
break;
default:
error("Pinmap error: wrong port number.");
break;