From: Martin Elshuber <martine@domain.hid>
To: adeos-main@gna.org
Subject: [Adeos-main] ADEOS NIOS II port - definitions in include/asm-nios2/ipipe.h
Date: Fri, 08 Apr 2011 17:21:40 +0200 [thread overview]
Message-ID: <4D9F2804.5030205@domain.hid> (raw)
Hello,
I faced a problem with Xenomai xntimer when using the
http://download.gna.org/adeos/patches/v2.6/nios2/adeos-ipipe-2.6.30-nios2-1.2-00.patch
patch.
xntimer uses the ipipe abstractions for hrclock and hrtimer and relies
on the constants
#define __ipipe_hrtimer_freq 1000000 /* 1 us */
#define __ipipe_hrclock_freq nasys_clock_freq
defined in include/asm-nios2/ipipe.h to do a final adjustment.
The two definitions above will fail, if either the hrtimer is not
clocked with 1Mhz, or
the hrclock is clocked with another frequency than nasys_clock_freq.
I am quite new to ADEOS, but guess that
#define __ipipe_hrtimer_freq na_hrtimer_clock_freq
#define __ipipe_hrclock_freq na_hrclock_clock_freq
is a better choice. At least for me this solves the problem.
Martin Elshuber
next reply other threads:[~2011-04-08 15:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 15:21 Martin Elshuber [this message]
2011-04-11 13:36 ` [Adeos-main] ADEOS NIOS II port - definitions in include/asm-nios2/ipipe.h Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D9F2804.5030205@domain.hid \
--to=martine@domain.hid \
--cc=adeos-main@gna.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.