Find help, specifications and source code for the LPC900. The LPC900 challenges Microchip and AVR based on the worlds most popular 8-bit architecture the 80C51. With a 2-clock core the LPC900 series is a high performance, very flexible and low cost 8-bit microcontroller family. Designers using or interested in these devices are encouraged to share their know-how and ask questions.
External Variables - Alvin Schmitt - Dec 23 21:42:52 2008
Hi -- I need to make some variables global by having them all outside of functions and
procedures. I would like to have them all in one file to make life easy. Is there a way to
declare a file such as a .c file using the Keil C compiler that I could put at the top of
the source tree and how would I go about this? Thank you. Alvin.....
APSTRON LLC
P.O. Box 10336
Blacksburg VA 24062-0336
www.blacksburg.net/~schmitta

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )
Re: External Variables - Sutton Mehaffey - Dec 23 21:57:04 2008
You can declare them in a separate 'C' file, but you also have to
declare them 'extern' within the files that use them.
Sutton
--- In l...@yahoogroups.com, Alvin Schmitt
wrote:
>
> =A0
> Hi=A0 -- I need to make some variables global by having them all
outside of functions and procedures. I would like to have them all in
one file to make life easy. Is there a way to declare a file such as a
.c file using the Keil C compiler that I could put at the top of the
source tree and how would I go about this? Thank you. Alvin.....
>=20
> APSTRON LLC=20
> P.O. Box 10336=20
> Blacksburg VA 24062-0336=20
>=20
> www.blacksburg.net/~schmitta
>
------------------------------------

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )Re: Re: External Variables - Alvin Schmitt - Dec 23 22:21:52 2008
Thank you very much for your help. Alvin....
APSTRON LLC
P.O. Box 10336
Blacksburg VA 24062-0336
www.blacksburg.net/~schmitta
--- On Tue, 12/23/08, Sutton Mehaffey
wrote:
From: Sutton Mehaffey
Subject: [lpc900_users] Re: External Variables
To: l...@yahoogroups.com
Date: Tuesday, December 23, 2008, 9:56 PM
You can declare them in a separate 'C' file, but you also have to
declare them 'extern' within the files that use them.
Sutton
--- In lpc900_users@ yahoogroups. com, Alvin Schmitt
wrote:
>
>
> Hi -- I need to make some variables global by having them all
outside of functions and procedures. I would like to have them all in
one file to make life easy. Is there a way to declare a file such as a
.c file using the Keil C compiler that I could put at the top of the
source tree and how would I go about this? Thank you. Alvin.....
>
> APSTRON LLC
> P.O. Box 10336
> Blacksburg VA 24062-0336
>
> www.blacksburg. net/~schmitta
>

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )Re: External Variables - rahul shinde - Dec 24 1:58:18 2008
Hi,
you need to declare the variables and function definition in *.h file and include the file
in the main.c and all other modules .....
you need to declare the variables and function only once.....no need to declare the
variables with extern keywords.....
regards
rahul shinde
----- Original Message -----
From: Alvin Schmitt
To: l...@yahoogroups.com
Sent: Wednesday, December 24, 2008 8:12 AM
Subject: [lpc900_users] External Variables
Hi -- I need to make some variables global by having them all outside of
functions and procedures. I would like to have them all in one file to make life easy. Is
there a way to declare a file such as a .c file using the Keil C compiler that I could put
at the top of the source tree and how would I go about this? Thank you. Alvin.....
APSTRON LLC
P.O. Box 10336
Blacksburg VA 24062-0336
www.blacksburg.net/~schmitta
______________________________
controlSUITE software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )Re: External Variables - Sutton Mehaffey - Dec 24 16:04:05 2008
That doesn't work for me. Keil generates errors if you don't have
externals.
Sutton
--- In l...@yahoogroups.com, "rahul shinde"
wrote:
>
> Hi,
>
> you need to declare the variables and function definition in *.h
file and include the file in the main.c and all other modules .....
> you need to declare the variables and function only once.....no need
to declare the variables with extern keywords.....
>
> regards
> rahul shinde
>
> ----- Original Message -----
> From: Alvin Schmitt
> To: l...@yahoogroups.com
> Sent: Wednesday, December 24, 2008 8:12 AM
> Subject: [lpc900_users] External Variables
>
> Hi -- I need to make some variables global by having them
all outside of functions and procedures. I would like to have them all
in one file to make life easy. Is there a way to declare a file such
as a .c file using the Keil C compiler that I could put at the top of
the source tree and how would I go about this? Thank you. Alvin.....
>
> APSTRON LLC
> P.O. Box 10336
> Blacksburg VA 24062-0336
>
> www.blacksburg.net/~schmitta
>
------------------------------------

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )