Add reset_button.c and test_led.c. Clean up init_peripherials.c

This commit is contained in:
László Monda
2016-10-05 02:05:05 +02:00
parent 5936129ebc
commit f0b63a6f7b
8 changed files with 79 additions and 42 deletions

8
right/src/reset_button.c Normal file
View File

@@ -0,0 +1,8 @@
#include "reset_button.h"
#include "fsl_port.h"
void InitResetButton() {
PORT_SetPinConfig(RESET_BUTTON_PORT, RESET_BUTTON_PIN,
&(port_pin_config_t){.pullSelect=kPORT_PullUp, .mux=kPORT_MuxAsGpio});
CLOCK_EnableClock(RESET_BUTTON_CLOCK);
}