Convert macros for controlling test LEDs to functions

This commit is contained in:
Eric Tang
2018-06-24 20:34:23 -07:00
parent 0155447c6a
commit c6b180b8f5
8 changed files with 40 additions and 14 deletions

View File

@@ -6,5 +6,5 @@ extern void TestLed_Init(void)
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});
TEST_LED_ON();
TestLed_On();
}