Make SW2 move the mouse pointer downwards.

This commit is contained in:
László Monda
2016-02-27 12:44:38 +01:00
parent b3984c050b
commit 00c9659c16
2 changed files with 11 additions and 53 deletions

View File

@@ -38,10 +38,14 @@ void BOARD_InitPins(void)
PORT_SetPinMux(PORTE, 0u, kPORT_MuxAlt3);
PORT_SetPinMux(PORTE, 1u, kPORT_MuxAlt3);
// Set up SW3.
CLOCK_EnableClock(kCLOCK_PortB);
// Set up SW2.
port_pin_config_t switchConfig = {0};
switchConfig.pullSelect = kPORT_PullUp;
switchConfig.mux = kPORT_MuxAsGpio;
CLOCK_EnableClock(kCLOCK_PortC);
PORT_SetPinConfig(PORTC, 1U, &switchConfig);
// Set up SW3.
CLOCK_EnableClock(kCLOCK_PortB);
PORT_SetPinConfig(PORTB, 17U, &switchConfig);
}