Yahoo Groups archive

Lpc2000

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

Message

RE: [lpc2000] LPC2200 Application Note on SPI (AN10369)

2006-05-11 by Andrew Berney

It creates a pre-processor definition (#define) such that where ever SPIF is
used in the code it compiles it as though it was: (1<<7).
Or if you mean what does 1<<7 do? Then the << is a bitwise operator in C
that shifts the value (in this case 0x01) 7 places to the left becomes 0x80.

Get yourself a decent book on C, there's plenty out there...

Andy


-----Original Message-----
From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com]On Behalf
Of wickedmonster2002
Sent: 11 May 2006 15:42
To: lpc2000@yahoogroups.com
Subject: [lpc2000] LPC2200 Application Note on SPI (AN10369)


I am confused. What does #define SPIF (1<<7) mean? Everything else I
understand.







Yahoo! Groups Links

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.