Extract test LED specific code to test_led.[ch]
This commit is contained in:
9
left/src/test_led.c
Normal file
9
left/src/test_led.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "test_led.h"
|
||||
#include "fsl_port.h"
|
||||
|
||||
extern void InitTestLed()
|
||||
{
|
||||
CLOCK_EnableClock(TEST_LED_CLOCK);
|
||||
PORT_SetPinMux(TEST_LED_PORT, TEST_LED_PIN, kPORT_MuxAsGpio);
|
||||
GPIO_PinInit(TEST_LED_GPIO, TEST_LED_PIN, &(gpio_pin_config_t){kGPIO_DigitalOutput, 0});
|
||||
}
|
||||
Reference in New Issue
Block a user