Move OS CLOCK rate to target define

pull/680/head
Michael Brudevold 2014-11-12 10:59:27 -06:00
parent dcaa34a9d6
commit 52ac44b482
2 changed files with 1 additions and 4 deletions

View File

@ -152,9 +152,6 @@
#elif defined(TARGET_STM32F103RB)
# define OS_CLOCK 72000000
#elif defined(TARGET_MTS_MDOT)
# define OS_CLOCK 48000000
# else
# error "no target defined"
# endif

View File

@ -594,7 +594,7 @@ class MTS_MDOT(Target):
Target.__init__(self)
self.core = "Cortex-M4F"
self.extra_labels = ['STM', 'STM32F4', 'STM32F405RG']
self.macros = ['HSE_VALUE=26000000']
self.macros = ['HSE_VALUE=26000000', 'OS_CLOCK=48000000']
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM", "IAR"]
self.is_disk_virtual = True
self.default_toolchain = "ARM"