diff options
Diffstat (limited to 'examples/device/device_virtual_com')
| -rw-r--r-- | examples/device/device_virtual_com/src/main.c | 6 | ||||
| -rw-r--r-- | examples/device/device_virtual_com/xpresso/.project | 20 |
2 files changed, 23 insertions, 3 deletions
diff --git a/examples/device/device_virtual_com/src/main.c b/examples/device/device_virtual_com/src/main.c index b72c0ee22..3ee3a74d3 100644 --- a/examples/device/device_virtual_com/src/main.c +++ b/examples/device/device_virtual_com/src/main.c @@ -114,7 +114,7 @@ void led_blinking_task(void) { enum { BLINK_INTEVAL = 1000 }; - static uint32_t led_on_mask = 0; + static bool led_state = false; static uint32_t last_blink = 0; // not enough time @@ -122,8 +122,8 @@ void led_blinking_task(void) last_blink += BLINK_INTEVAL; - board_leds(led_on_mask, 1 - led_on_mask); - led_on_mask = 1 - led_on_mask; // toggle + board_led_control(BOARD_LED0, led_state); + led_state = 1 - led_state; // toggle } //--------------------------------------------------------------------+ diff --git a/examples/device/device_virtual_com/xpresso/.project b/examples/device/device_virtual_com/xpresso/.project index ecd387b48..bd43de66d 100644 --- a/examples/device/device_virtual_com/xpresso/.project +++ b/examples/device/device_virtual_com/xpresso/.project @@ -40,4 +40,24 @@ <locationURI>PARENT-4-PROJECT_LOC/tinyusb</locationURI> </link> </linkedResources> + <filteredResources> + <filter> + <id>1520932840443</id> + <name></name> + <type>22</type> + <matcher> + <id>org.eclipse.ui.ide.multiFilter</id> + <arguments>1.0-name-matches-false-false-*.d</arguments> + </matcher> + </filter> + <filter> + <id>1520932840444</id> + <name></name> + <type>22</type> + <matcher> + <id>org.eclipse.ui.ide.multiFilter</id> + <arguments>1.0-name-matches-false-false-*.o</arguments> + </matcher> + </filter> + </filteredResources> </projectDescription> |
