Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: RTC problem

2005-07-22 by Dave

--- In lpc2000@yahoogroups.com, Owen Mooney <ojm@s...> wrote:
> I think this is most of it below.
> 
> #define BIT0     0x00000001
> #define BIT1     0x00000002
> #define BIT2     0x00000004
> ... etc
> 
> // 2138 interupt sources
> 
> #define    WDT_NUM  0
> #define TIMER0_NUM  4
> #define TIMER1_NUM  5
> #define  UART0_NUM  6
> 
> // 2138 interupt sources as bit masks
> 
> #define    WDT_BIT  BIT0
> #define TIMER0_BIT  BIT4
> #define TIMER1_BIT  BIT5
> #define  UART0_BIT  BIT6

Hello,

  try this:

#define WDT_BIT     (1 << WDT_NUM)
#define TIMER0_BIT  (1 << TIMER0_NUM)
#define TIMER1_BIT  (1 << TIMER1_NUM)
#define UART0_BIT   (1 << UART0_NUM)

 etc...

Dave

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.