Enable usb cdc interrupt receive

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

Posts: 3
Joined: Mon Jun 22, 2015 11:38 am

Enable usb cdc interrupt receive

Mon Jul 13, 2015 10:24 pm

Hi all, for my project i use sam4s and i necessity to implement the interrupt receive. I use module asf usb cdc.
I have to do this interrupt with USART0:

void USART0_IrqHandler() {

// Local variables
char input;

input = (char) USART_GetChar(USART0);

// Check if buffer is not full
if (cyclic_GetSize() < US0_BUFFER_SIZE) {

cyclicBuffer[cyclicDataEnd] = input;
cyclicDataEnd = (cyclicDataEnd+1) & US0_BUFFER_SIZE_MASK;

Now i have to do implement this interrupt routine with module usb cdc. Can you help me please?


Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 1 guest