1 project('cmsis-dfp-stm32f4', 'c',
5 cmsis_dep = subproject('cmsis').get_variable('cmsis_dep')
7 cmsis_dfp_stm32f4_inc = include_directories('Include')
9 cmsis_dfp_stm32f4_lib = library(
11 files('Source' / 'Templates' / 'system_stm32f4xx.c'),
12 include_directories: cmsis_dfp_stm32f4_inc,
13 dependencies: [cmsis_dep],
15 '-D' + get_option('stm32f4_mcu'),
16 '-DHSE_VALUE=' + get_option('hse_hz') + 'U',
17 '-DHSI_VALUE=' + get_option('hsi_hz') + 'U'
20 cmsis_dfp_stm32f4_dep = declare_dependency(
21 include_directories: cmsis_dfp_stm32f4_inc,
22 link_with: cmsis_dfp_stm32f4_lib,
24 '-D' + get_option('stm32f4_mcu'),
25 '-DCMSIS_device_header=\'"stm32f4xx.h"\''