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++
12590 Discussions

NIOSII Altera Monitor C code help!!!

Altera_Forum
Honored Contributor II
957 Views

typedef volatile struct 

uint32_t period; 

uint32_t pulse_width; 

 

 

} PWM; 

 

 

voidmain(void){ pwm * const pled = ... 

pled->period = 5; pled->pulse_width = 4; 

asm("nop"); asm("nop"); asm("nop"); pled->pulse_width = 2;} 

For the code above. 

I would like to know what modules I need to create for the computer. For example if i need, a PIO module in SOPC called pLED or period or pulse_width or all of them.  

Thanks.
0 Kudos
0 Replies
Reply