Aalt, with Gcc You can include .h files in both .c & .S files #include "config.h" You can add the above statement in both c & assembly files & all or most C directive work in assembly too (compile switches & stuff). Cheers, -Mike. --- Aalt Lokhorst <lokhorst@...> wrote: > Hello all, > > I am using Rowley CrossWorks for ARM 1.5 software > but I think my > question is a general GCC question. > > I have a startup.s file which contains the vectors, > PLL and VPBDIV init > etc. > > The init of UART and Timer is done in 'C'. For a > correct init of > baudrate and timerperiods the C-routines also need > to have the PLL and > VPBDIV settings. > > I would like to hava a common config.h for the > assembler and the C-files > with the defines for the PLL, VPBDIV etc. I think > this should be > possible but I don't know exactly how to do this, or > if there are better > options. > > Any suggestions? (Or probably some comments why I > shouldn't do this) > > Thanks in Advance, > > Aalt > > -- > ============================== > Aalt Lokhorst > Schut Geometrische Meettechniek bv > Duinkerkenstraat 21 > 9723 BN Groningen > P.O. Box 5225 > 9700 GE Groningen > The Netherlands > Tel: +31-50-5877877 > Fax: +31-50-5877899 > E-mail: Lokhorst@... > ============================== > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Message
Re: [lpc2000] Common definitions for Assembler and C-source
2005-07-27 by Michael Anburaj
Attachments
- No local attachments were found for this message.