[En-Nut-Discussion] External interrupts on Ethernut 3
Henrik Maier
hmnews at proconx.com
Mon Mar 30 05:23:17 CEST 2009
I also would be very interested in a Nut/OS MCP2515 driver. I do have some
MCP2515 driver code which is Nut/OS independent which I can share and which
can be incorporated into a future Nut/OS driver.
Henrik
> -----Original Message-----
> From: en-nut-discussion-bounces at egnite.de [mailto:en-nut-discussion-
> bounces at egnite.de] On Behalf Of Ole Reinhardt
> Sent: Saturday, 28 March 2009 1:57 AM
> To: Ethernut User Chat (English)
> Subject: Re: [En-Nut-Discussion] External interrupts on Ethernut 3
>
> Hello,
>
> > Sorry for spamming the list.
>
> No problem, but I did not fully understand your question / problem. It
> seemed you had mailed with somebody private before moving to the
> list...
> So I was missing the background of your question.
>
> > Apparently manipulating the registers of the microcontroller is not
> > necessary, which of course is logical for this kind of os.
>
> Yes, you should be able to use NutRegisterIrq for your purpose.
>
> > Originally I was adapting the SJA1000 driver for MCP2515 and in the
> > initialization of the SJA1000 driver there was some direct register
> access
> > which I assumed was necessary because that driver was in the Nut/OS
> > distribution.
>
> The SJA1000 driver uses direct register access, as this device is
> connected to the data bus of the AVR. In your case you'll just use the
> SPI driver as base, right?
>
> > The interrupt handling still does not work but at least I get
> interrupts
> > (Which unfortunately jam the system currently).
>
> If you want you may send me some code example and I'd take a look on
> it.
> Btw: I'd be happy if you would contribute your code, as I'll need the
> MCP2515 in an upcomming project as well...
>
> Best regards,
>
> Ole Reinhardt
>
> --
> _____________________________________________________________
> | |
> | Embedded-IT Hard- und Softwarelösungen |
> | |
> | Ole Reinhardt Tel. / Fax: +49 (0)271 7420433 |
> | Luisenstraße 29 Mobil: +49 (0)177 7420433 |
> | 57076 Siegen eMail: ole.reinhardt at embedded-it.de |
> | Germany Web: http://www.embedded-it.de |
> | UstID / VAT: DE198944716 |
> |_____________________________________________________________|
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list