Yahoo Groups archive

Lpc2000

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

Message

Re: LPC2148 - Crossworks

2006-04-17 by mgiaco82

@Eric: Sorry I have not used USB till now. So I can't give you any 
information.

Thanks for the information.

Yes, there are a lot of examples on the EA page. But they are coded 
for the GCC and I have some problems concerning that fact.

In the UART Lib as an example they use:

cpsr = disableIRQ();                  // disable global interrupts
U0IER &= ~UIER_ETBEI;                 // disable TX interrupts
restoreIRQ(cpsr);                     // restore global interrupts

but in Crossworks I can´t find the function disableIRQ with returns 
the cpsr and I also can´t find the function restoreIRQ(xxx).

When using the functions from the winarm example-pages with 
crossworks, it doesn´t work.  

How can I port the code for crossworks?

Thanks for your help!

Mathias

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.