The short name should contain 4 ... 8 lower case letters and numbers, e.g. tiny230. It is used for naming the board in the scons build process (scons tiny230
) and identifying the generated libraries and executables (ls install/*/*_tiny230.*
).
The long name should contain 12 ... 16 upper case letters and numbers and underlines, e.g. TINY_230. It is used as symbolic name for a unique board identifier, defined in Src/Lib/Inc/const.h.
The board abstraction header files are located in the directory Src/Lib/Inc/boards.
Before you start to write your own board abstraction file from scratch, have a look into the already existing files. Either you copy one of the existing files and modify it or you simply add an alias to an existing board. See board_rbb.h for an example, how the aliases rbb230, rbb231 and rbb212 are handled.
The alias method should always used, if the boards belongs to the same family and are rebuilds/clones of existing ones, but should have a new name.
Src/Lib/Inc/const.h #define ZGB_LINK_231 (51) Src/Lib/Inc/const.h #define ZGB_LINK_212 (52) Src/Lib/Inc/const.h Src/Lib/Inc/const.h /* DIY and wirewrap projects */ Src/Lib/Inc/const.h #define TINY_230 (90) Src/Lib/Inc/const.h #define STK500_MEGA8 (91) Src/Lib/Inc/const.h #define STK500_MEGA16 (92)
If your newly added radio board uses a MCU, that is not yet used, you also need to add a unique define
[tiny230] aliases = tiny231 comment = Joerg's (DL8DTL) ATtiny44 with AT86RF230 include = boards/board_tiny230.h cpu = attiny84 bootoffset = 0x0 ccflags = f_cpu = 8000000UL no_app = diag rdiag wuart wuart2 sniffer no_xmpl = xmpl_keys xmpl_key_events xmpl_hif xmpl_hif_echo xmpl_radio_stream
[sectionname] | This is name of the board, it must be a unique among all board and alias names. | |
aliases | A space seperated list of aliased derivates of this board | |
comment | The comment is displayed when scons -h is used. | |
include | Name of the board abstraction header file. | |
cpu | MCU name which is used in mmcu option of avr-gcc. | |
bootoffset | Location address of the boot loader. | |
ccflags | Additional compiler parameters, like -I or -D options. | |
f_cpu | MCU clock frequency | |
no_app | applications that should be excluded from the build, e.g. due to the lack of ressources. | |
no_xmpl | examples that should be excluded from the build, e.g. due to the lack of ressources. | |
more_xmpls | board specific example applications. |
scons install\inc\board_cfg.h scons tiny230