[En-Nut-Discussion] Devnut_m3n: architecture dependend directories
bon at elektron.ikp.physik.tu-darmstadt.de
Mon Jan 16 12:04:14 CET 2012
thinking about getting your massive file move into and later out of my
playground make my (few) hairs even greyer ;-)
But shouldn't we have even more destinction, between vendor supplied files
and NutOs-supplied files? At least for the stm32 files like
are still the ST-Lib files with few modification, while files like
are rewritten by Ulrich. The postion of the file in the file tree should
clearly indicate the origin of the file.
If all your lpc files are self written, this doesn't hold for you...
Otherwise I suggest that conditional includes like in
#if defined (MCU_STMF1)
#elif defined (MCU_STML1)
#warning "Unknown STM32 family"
#if defined (MCU_LPC176x)
#warning "Unknown LPC family"
#warning "Unknown CM3 manufacturer"
and the include/cfg/arch.h should define the family additional to manufacturer.
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion