aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/KINETIS
diff options
context:
space:
mode:
authorFabio Utzig <utzig@utzig.org>2016-04-19 06:43:41 -0300
committerFabio Utzig <utzig@utzig.org>2016-04-19 06:43:41 -0300
commit157378440710c8f0705de5ea26ac858e784bad66 (patch)
treef9a3e7291e5ebdfa10146abe721041d4b0d0bed2 /testhal/KINETIS
parente128f885889123f3884c2d2c6048ea596ea45dec (diff)
parentc523fa6f7aa0e64600e0a82082bd4067cbc2a4a5 (diff)
downloadChibiOS-Contrib-157378440710c8f0705de5ea26ac858e784bad66.tar.gz
ChibiOS-Contrib-157378440710c8f0705de5ea26ac858e784bad66.tar.bz2
ChibiOS-Contrib-157378440710c8f0705de5ea26ac858e784bad66.zip
Merge pull request #58 from jstruebel/master
Added shell demo project
Diffstat (limited to 'testhal/KINETIS')
-rw-r--r--testhal/KINETIS/FRDM-K20D50M/USB_SERIAL/main.c4
-rw-r--r--testhal/KINETIS/FRDM-KL25Z/USB_SERIAL/main.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/testhal/KINETIS/FRDM-K20D50M/USB_SERIAL/main.c b/testhal/KINETIS/FRDM-K20D50M/USB_SERIAL/main.c
index 616c7c6..a6c90bf 100644
--- a/testhal/KINETIS/FRDM-K20D50M/USB_SERIAL/main.c
+++ b/testhal/KINETIS/FRDM-K20D50M/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);
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);