Forum Discussion
Altera_Forum
Honored Contributor
16 years agoThanks for the reply.
Ok. At least I'm not going crazy... I tried that prior to posting and only LED 1 blinks. I thought maybe I was doing something wrong. Here's my system.h. The DATA_WIDTH field looks wrong to me.
/*
* led_pio configuration
*
*/
# define ALT_MODULE_CLASS_led_pio altera_avalon_pio# define LED_PIO_BASE 0x8000190# define LED_PIO_BIT_CLEARING_EDGE_REGISTER 0# define LED_PIO_CAPTURE 0# define LED_PIO_DATA_WIDTH 2# define LED_PIO_DO_TEST_BENCH_WIRING 0# define LED_PIO_DRIVEN_SIM_VALUE 0x0# define LED_PIO_EDGE_TYPE "NONE"# define LED_PIO_FREQ 60000000u# define LED_PIO_HAS_IN 0# define LED_PIO_HAS_OUT 1# define LED_PIO_HAS_TRI 0# define LED_PIO_IRQ -1# define LED_PIO_IRQ_INTERRUPT_CONTROLLER_ID -1# define LED_PIO_IRQ_TYPE "NONE"# define LED_PIO_NAME "/dev/led_pio"# define LED_PIO_RESET_VALUE 0x0# define LED_PIO_SPAN 16# define LED_PIO_TYPE "altera_avalon_pio"