[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apple2 - Contiki Compile Report
Laine wrote:
> >
> > The problem is CH_ENTER which is defined as '\n' by the Contiki header files,
> > but the apple2.h header file contains
> >
> > #define CH_CURS_DOWN 0x0A
> >
> > which is the same as '\n' with the Apple2 character translation applied.
> >
> > One of both is probably wrong, but since I'm no apple specialist, I cannot
> > tell which one.
>
> #define CH_CURS_DOWN 0x0A
> ifdef apple
> #define CH_ENTER_DOWN 0x0D // apple return key
> endif
>
> Apple ( \n) = 0x0D
Thank You. That fixed that error.
But why do you need the ifdef?
Since the file is apple2.h it should already apply only to apples2's
--
Rob