From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4648C26F.1020002@domain.hid> Date: Mon, 14 May 2007 22:11:27 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <4648C077.2050003@domain.hid> In-Reply-To: <4648C077.2050003@domain.hid> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB0067B495A967519CF4AACD3" Sender: jan.kiszka@domain.hid Subject: Re: [Xenomai-help] rt_task_set_periodic and different time base List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Koftinoff Cc: xenomai@xenomai.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB0067B495A967519CF4AACD3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Jeff Koftinoff wrote: > Hi everyone. >=20 > I am going to be running xenomai on custom hardware to process audio. = I=20 > want my processes to be scheduled via rt_task_set_periodic(), but I do = > not want to specify time in jiffies or nanoseconds. >=20 > I need to specify time in terms of audio sample interrupts which can be= =20 > generated by an external signal and can be slightly variable via a VCXO= =20 > for synchronization. >=20 > The processes that I run must be synchronous to the audio, which is=20 > asynchronous to any other clock period/time in the system. >=20 > Should I modify Xenomai to make my audio interrupt the source of the=20 > jiffies? What is recommended in this case? There exists some vague ideas to provide an infrastructure with Xenomai that allows to smoothly synchronise its local clock on whatever external (jittery) source, but note that "vague" above. Moreover, I don't think you actually want this for your scenario. You may rather look for a hard sync on each audio tick, no? >=20 > My original thought was to use rt_intr_wait() in my user mode program=20 > and do the scheduling of sub-tasks myself. Sounds what you need (or directly derive an RTDM device with appropriate interface for your audio-hw :)). >=20 > But it would be ideal if rt_task_set_periodic() could just use the=20 > appropriate time source itself. Why? Jan --------------enigB0067B495A967519CF4AACD3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGSMJvniDOoMHTA+kRApD6AJ4hny3LLv/8GtRDL6D688RzgIJ6fgCdGaYW L5HB59n8eqB/GQr94bJicLg= =/9d0 -----END PGP SIGNATURE----- --------------enigB0067B495A967519CF4AACD3--