Skip to content

v-usb in CDC and timer issue. #13

Description

@hetii

Hello dear,
I build small project that combine irmp and v-usb together.
My project based on http://www.recursion.jp/prose/avrcdc/ and use latest v-usb drivers.

The point is int that when I run timer for irmp (15KHz) after a while of time I cannot send data to host by setting usbSetInterrupt(). uC is not freeze, I can still send data to it and for eg usbFunctionWriteOut() is called, but my data are not printed out anymore into terminal software(I use gtkterm or minicom under Linux).

What I notice when I restart just terminal software, communication back for a while and I got the last message that was buffered when usbSetInterrupt() was called.

In the attachment I put my complete code.
The uart part can be even omitted, as I check the issue is related just to timer and its isr + usbSetInterrupt()

Maybe there is some way to flush the data or get back synchronization with host?
Best Regards,

avr.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions