Add reset_button.c and test_led.c. Clean up init_peripherials.c
This commit is contained in:
9
right/src/test_led.c
Normal file
9
right/src/test_led.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "test_led.h"
|
||||
#include "fsl_port.h"
|
||||
|
||||
extern void InitTestLed()
|
||||
{
|
||||
PORT_SetPinMux(TEST_LED_GPIO_PORT, TEST_LED_GPIO_PIN, kPORT_MuxAsGpio);
|
||||
GPIO_PinInit(TEST_LED_GPIO, TEST_LED_GPIO_PIN, &(gpio_pin_config_t){kGPIO_DigitalOutput, 0});
|
||||
CLOCK_EnableClock(TEST_LED_CLOCK);
|
||||
}
|
||||
Reference in New Issue
Block a user