diff options
author | cpldcpu <cpldcpu@gmail.com> | 2013-12-31 15:42:09 +0100 |
---|---|---|
committer | cpldcpu <cpldcpu@gmail.com> | 2013-12-31 15:42:09 +0100 |
commit | 6d2ac9e09f61d6ff267961ba9ff79b0a07e78e28 (patch) | |
tree | 6bd157b28f0a22c799a723a700343f15872d9c64 /firmware/bootloaderconfig.h | |
parent | 8f6ccdaccf624a3e2c727ff4e6ad2c7dc479b51b (diff) | |
download | micronucleus-6d2ac9e09f61d6ff267961ba9ff79b0a07e78e28.tar.gz micronucleus-6d2ac9e09f61d6ff267961ba9ff79b0a07e78e28.tar.bz2 micronucleus-6d2ac9e09f61d6ff267961ba9ff79b0a07e78e28.zip |
firmware: more global registers and unions types
Saves 70(!) bytes or so..
Diffstat (limited to 'firmware/bootloaderconfig.h')
-rw-r--r-- | firmware/bootloaderconfig.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/bootloaderconfig.h b/firmware/bootloaderconfig.h index 9c06de3..a93e6ff 100644 --- a/firmware/bootloaderconfig.h +++ b/firmware/bootloaderconfig.h @@ -13,6 +13,16 @@ #define __bootloaderconfig_h_included__ /* + * Bootloader defines + */ + +#ifndef __ASSEMBLER__ + typedef union { + uint16_t w; + uint8_t b[2]; + } uint16_union_t; +#endif +/* General Description: This file (together with some settings in Makefile) configures the boot loader according to the hardware. |