mirror of https://github.com/ARMmbed/mbed-os.git
add missed port
parent
601712595f
commit
0cd6ca6600
|
@ -68,10 +68,26 @@ uint32_t Set_GPIO_Clock(uint32_t port_idx) {
|
||||||
gpio_add = GPIOD_BASE;
|
gpio_add = GPIOD_BASE;
|
||||||
__GPIOD_CLK_ENABLE();
|
__GPIOD_CLK_ENABLE();
|
||||||
break;
|
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:
|
case PortH:
|
||||||
gpio_add = GPIOH_BASE;
|
gpio_add = GPIOH_BASE;
|
||||||
__GPIOH_CLK_ENABLE();
|
__GPIOH_CLK_ENABLE();
|
||||||
break;
|
break;
|
||||||
|
case PortI:
|
||||||
|
gpio_add = GPIOI_BASE;
|
||||||
|
__GPIOI_CLK_ENABLE();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
error("Pinmap error: wrong port number.");
|
error("Pinmap error: wrong port number.");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue