[En-Nut-Discussion] Low level port access with porttran.h
Harald Kipp
harald.kipp at egnite.de
Sat Sep 5 11:17:24 CEST 2009
Hi Andre,
Andre Riesberg wrote:
> I am writing a 1-wire interface. This interface has a strict timing so I
> use the macros from "porttran.h".
This is exactly the reason why we have slow, but convenient GpioXXX
functions and weird, but fast GPIO_XXX macros.
> I use an AT90CAN128 and I think "inb" ist the typical macro (for an AVR)
> to read one byte from a port. "inr" is for the ARM cpu's.
There should have been an inr() (r stands for register) for the AVR as
well, which is exactly the same as inb() on this platform.
Thanks for reporting this.
Harald
More information about the En-Nut-Discussion
mailing list