aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/KINETIS/FRDM-KL25Z
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/KINETIS/FRDM-KL25Z')
-rw-r--r--testhal/KINETIS/FRDM-KL25Z/USB_SERIAL/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/KINETIS/FRDM-KL25Z/USB_SERIAL/main.c b/testhal/KINETIS/FRDM-KL25Z/USB_SERIAL/main.c
index 897dc58..77c6063 100644
--- a/testhal/KINETIS/FRDM-KL25Z/USB_SERIAL/main.c
+++ b/testhal/KINETIS/FRDM-KL25Z/USB_SERIAL/main.c
@@ -91,12 +91,12 @@ static const ShellConfig shell_cfg1 = {
*/
static THD_WORKING_AREA(waThread1, 128);
static THD_FUNCTION(Thread1, arg) {
+ systime_t time;
(void)arg;
+
chRegSetThreadName("blinker");
while (true) {
- systime_t time;
-
time = serusbcfg.usbp->state == USB_ACTIVE ? 250 : 500;
palClearPad(GPIO_LED_RED, PIN_LED_RED);
chThdSleepMilliseconds(time);