- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I get the following error when building the eCos library for Nios II: /cygdrive/c/altera/kits/nios2_60/components/ecos/ecos-current/packages/hal/sopc/altera_avalon_timer/current/src/altera_avalon_timer.c:95: error: `CPU1_TIMER_FREQ' undeclared (first use in this function) It seems that the CPU1_TIMER_FREQ should be declared in the automatically generated file install_dir/include/cyg/hal/system.h, but this declaration is missing:/*
* cpu1_timer configuration
*
*/
# define CPU1_TIMER_NAME "/dev/cpu1_timer"# define CPU1_TIMER_TYPE "altera_avalon_timer"# define CPU1_TIMER_BASE 0x00101500# define CPU1_TIMER_IRQ 0# define CPU1_TIMER_ALWAYS_RUN 0# define CPU1_TIMER_FIXED_PERIOD 0# define CPU1_TIMER_SNAPSHOT 1# define CPU1_TIMER_PERIOD 1# define CPU1_TIMER_PERIOD_UNITS "ms"# define CPU1_TIMER_RESET_OUTPUT 0# define CPU1_TIMER_TIMEOUT_PULSE_OUTPUT 0# define CPU1_TIMER_MULT 0.001# define CPU1_TIMER_ALT_AVALON_TIMER_PERIOD_UNITS ALT_AVALON_TIMER_PERIOD_UNITS_MS
Adding the declaration manually solves the problem, but it is annoying http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif Any ideas how to solve this problem?
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page