John B Moore wrote:
If you look in the 2.6 kernel source at :
arch/m68knommu/platform/5307/pit.c
Which has moved to:
arch/m68knommu/platform/coldfire/pit.c
in modern versions of 2.6 kernels.
Regards
Greg
you will see an example of setting up PIT1 in the function
coldfire_pit_init.
John
*"g...@novadsp.com" <g...@novadsp.com>*
Sent by: uclinux-dev-boun...@uclinux.org
03/22/2010 03:27 PM
Please respond to
uClinux development list <uclinux-dev@uclinux.org>
To
uclinux-dev@uclinux.org
cc
Subject
Re: [uClinux-dev] Coldfire ucLinux bitbanging a PIO.
On a Coldfire 5233/5235/5307, you can use one of the programmable
interrupt timers to get a 10ms interval. This is a less evil solution
than using the timer tick. I don't know if all Coldfire processors have
more than one PIT though since I am by no means a Coldfire expert. Note
that on at least the 5233/5235/5307 ucLinux ports, PIT1 is already in
use as the timer tick. I personally use PIT2 for a 5ms timer needed for
one specific protocol without having to resort to the real time extensions.
Hello John
Thanks. I'm using an SSV board with 5282 CPU. I'll check the docs on the
timer.
Are you aware of any code examples?
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
This e-mail, including attachments, may contain information that is
confidential and/or proprietary, and may only be used by the person to
whom this email is addressed. If the recipient of this e-mail is not the
intended recipient or an authorized agent, the reader is hereby notified
that any dissemination, distribution, or copying of this e-mail is
prohibited. If this e-mail has been delivered to you in error, please
notify the sender by replying to this message and deleting this e-mail
immediately.
------------------------------------------------------------------------
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
--
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: g...@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close FAX: +61 7 3217 5323
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev