I have the L100-Discovery board. I copied over the board specs from the L152 discovery board and changed the appropriate pins (mostly LED and MCU). The compile then bombed. After changing the MCU to STM32L151xCA from STM32L100xC, it compiled and ran just fine. I then started troubleshooting it.
I think it has something to do with the fact that the L100 does NOT have a E or D. When I created a special category(#7), and tell the system that D and E are false, it all works. I also went ahead and separated out the DAC, the 100xC has a single channel on DAC1 and DAC2 and not two channels on DAC1.
I've included the compile error.
Compiling hal_lld.c
In file included from ../ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.h:848:0,
from ../ChibiOS/os/hal/include/hal.h:122,
from ../ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.c:27:
../ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.c: In function 'hal_lld_init':
../ChibiOS/os/hal/ports/STM32/STM32L1xx/stm32_registry.h:152:46: error: 'RCC_AHBENR_GPIOEEN' undeclared (first use in this function); did you mean 'RCC_AHBENR_GPIODEN'?
RCC_AHBENR_GPIOEEN | \
^
../ChibiOS/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h:178:20: note: in definition of macro
rccResetAHB'
RCC->AHBRSTR |= (mask); \
^~~~
../ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.c:104:40: note: in expansion of macro 'STM32_GPIO_EN_MASK'
rccResetAHB(~(RCC_AHBRSTR_FLITFRST | STM32_GPIO_EN_MASK));
^~~~~~~~~~~~~~~~~~
../ChibiOS/os/hal/ports/STM32/STM32L1xx/stm32_registry.h:152:46: note: each undeclared identifier is reported only once for each function it appears in
RCC_AHBENR_GPIOEEN | \
^
../ChibiOS/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h:178:20: note: in definition of macro
rccResetAHB'
RCC->AHBRSTR |= (mask); \
^~~~
../ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.c:104:40: note: in expansion of macro 'STM32_GPIO_EN_MASK'
rccResetAHB(~(RCC_AHBRSTR_FLITFRST | STM32_GPIO_EN_MASK));
^~~~~~~~~~~~~~~~~~
../ChibiOS/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:177: recipe for target 'build/obj/hal_lld.o' failed
make: *** [build/obj/hal_lld.o] Error 1