PLATFORM_INCLUDE.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ##
  2. ## This is the OLD file included by the build process. It will be removed at some point in time.
  3. ##
  4. $(warning ######################## WARNING ################################## )
  5. $(warning ## You are using old build system with PLATFORM_INCLUDE.mk - you ## )
  6. $(warning ## should update your app to use the new build system, see ## )
  7. $(warning ## http://wiki.newae.com/Target_Firmware_Build_System ## )
  8. $(warning ##################################################################### )
  9. PLTNAME = Unknown Platform
  10. ifeq ($(PLATFORM),CW301_AVR)
  11. MCU = atmega328
  12. HAL = avr
  13. PLTNAME = Multi-Target Board, AVR Target
  14. else ifeq ($(PLATFORM),CW301_XMEGA)
  15. MCU = atxmega16a4
  16. HAL = xmega
  17. PLTNAME = Multi-Target Board, XMEGA Target
  18. else ifeq ($(PLATFORM),CW303)
  19. #d4 not officially supported, by has same reg map
  20. MCU = atxmega128d3
  21. HAL = xmega
  22. PLTNAME = CW-Lite XMEGA
  23. else ifeq ($(PLATFORM),CW304)
  24. MCU = atmega328
  25. HAL = avr
  26. PLTNAME = CW-Lite NOTDUINO
  27. else ifeq ($(PLATFORM),CW308_MEGARF)
  28. MCU = atmega128rfa1
  29. # MCU = atmega2564rfr2
  30. HAL = avr
  31. PLTNAME = CW308T: ATMegaRF Target
  32. else ifeq ($(PLATFORM),CW308_SAM4L)
  33. HAL = sam4l
  34. PLTNAME = CW308T: SAM4L Target
  35. else
  36. $(error Invalid or empty PLATFORM: $(PLATFORM))
  37. endif
  38. ifeq ($(HAL),avr)
  39. VPATH = $(HALPATH)/avr
  40. HALSRC = uart.c
  41. EXTRAINCDIRS += $(HALPATH)/avr
  42. else ifeq ($(HAL),xmega)
  43. VPATH=$(HALPATH)/xmega
  44. HALSRC = XMEGA_AES_driver.c uart.c usart_driver.c xmega_hal.c
  45. EXTRAINCDIRS += $(HALPATH)/xmega
  46. else
  47. $(error: Unknown HAL: $(HAL))
  48. endif
  49. CDEFS += -DHAL_TYPE=HAL_$(HAL) -DPLATFORM=$(PLATFORM)