Initialize clocks where they're actually needed.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include "fsl_port.h"
|
||||
|
||||
void InitResetButton() {
|
||||
CLOCK_EnableClock(RESET_BUTTON_CLOCK);
|
||||
PORT_SetPinConfig(RESET_BUTTON_PORT, RESET_BUTTON_PIN,
|
||||
&(port_pin_config_t){.pullSelect=kPORT_PullUp, .mux=kPORT_MuxAsGpio});
|
||||
CLOCK_EnableClock(RESET_BUTTON_CLOCK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user