Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

How the USB sample work?

Altera_Forum
Honored Contributor II
1,013 Views

The Micrium offers a USB sample like this(Start.c): # include “USB.h” 

void MainTask (void) 

while(USB_IsConfigured() == 0){ 

USB_X_Delay(50); /*(1)*/ 

while(1) { 

char c; 

USB_Read(&c, 1); /*(2)*/ 

c++; 

USB_Write(&c, 1); 

I download the AN7000.rar file.It concludes USB_bsp.c,USB_bsp.h,USB_hw.c,SL811HS_reg.h. 

Then,I don't know how the USB_X_Delay,USB_Read,USB_Write work. 

I think i missed some code.But i cannot find them. 

Will you give me a hand? Thank you.
0 Kudos
0 Replies
Reply