avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] AT90CAN128 Header continued


From: Bruce Graham
Subject: [avr-libc-dev] AT90CAN128 Header continued
Date: Thu, 13 May 2004 17:31:54 -0400

All,

Since Timer 1 and Timer 3 are virtually identical it shoul come as no
surprise that our header file has "cut and paste" disease.
The definitions for the timer 3 output compare registers have the 3 and
the letters A, B, and C dyslexically reversed as they were for Timer 1.
In addition the address for OCRC3 should be 0x9C.

    #define    OCRC3    _SFR_MEM16(0x9A)

should read

    #define    OCR3C    _SFR_MEM16(0x9C)

The other OCR3x names need to be fixed accordingly.

Next:  there is no definition for the CANMSG register.  Add the
following line after the definition for CANSTMH

    #define    CANMSG    _SFR_MEM8(0xFA)

Continually checking,
Bruce






reply via email to

[Prev in Thread] Current Thread [Next in Thread]