Extract test LED specific code to test_led.[ch]

This commit is contained in:
László Monda
2016-10-11 03:00:24 +02:00
parent 09e6314770
commit 6885bf0449
3 changed files with 37 additions and 13 deletions

9
left/src/test_led.c Normal file
View 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});
}