Yahoo Groups archive

Lpc2000

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

Message

Common definitions for Assembler and C-source

2005-07-27 by Aalt Lokhorst

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@...
==============================

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.