flabbergast's ARM/STM32 examples using libopencm3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.l0.mk 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ##
  2. ## This file is part of the libopencm3 project.
  3. ##
  4. ## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
  5. ## Copyright (C) 2010 Piotr Esden-Tempski <piotr@esden.net>
  6. ##
  7. ## This library is free software: you can redistribute it and/or modify
  8. ## it under the terms of the GNU Lesser General Public License as published by
  9. ## the Free Software Foundation, either version 3 of the License, or
  10. ## (at your option) any later version.
  11. ##
  12. ## This library is distributed in the hope that it will be useful,
  13. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ## GNU Lesser General Public License for more details.
  16. ##
  17. ## You should have received a copy of the GNU Lesser General Public License
  18. ## along with this library. If not, see <http://www.gnu.org/licenses/>.
  19. ##
  20. LIBNAME = opencm3_stm32l0
  21. DEFS += -DSTM32L0
  22. FP_FLAGS ?= -msoft-float
  23. ARCH_FLAGS = -mthumb -mcpu=cortex-m0plus $(FP_FLAGS)
  24. ################################################################################
  25. # OpenOCD specific variables
  26. OOCD ?= openocd
  27. OOCD_INTERFACE ?= stlink-v2-1
  28. OOCD_BOARD ?= stm32l0discovery
  29. ################################################################################
  30. # Black Magic Probe specific variables
  31. # Set the BMP_PORT to a serial port and then BMP is used for flashing
  32. BMP_PORT ?=
  33. ################################################################################
  34. # texane/stlink specific variables
  35. #STLINK_PORT ?= :4242
  36. include ../libopencm3.rules.mk