浏览代码

Add a skeleton for the library

There are now a few extra lines in the Makefile that make the PD Buddy
firmware library's makefile get included, and the variables it defines
get used.  There's no code to compile or include yet though.
Clara Hobbs 7 年前
父节点
当前提交
499275a826
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 4
    0
      Makefile
  2. 5
    0
      lib/pd-buddy.mk

+ 4
- 0
Makefile 查看文件

@@ -82,6 +82,7 @@ PROJECT = pd-buddy-firmware
82 82
 
83 83
 # Imported source files and paths
84 84
 CHIBIOS = ChibiOS
85
+PDBLIB = lib
85 86
 # Startup files.
86 87
 include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/startup_stm32f0xx.mk
87 88
 # HAL-OSAL files (optional).
@@ -94,6 +95,7 @@ include $(CHIBIOS)/os/rt/rt.mk
94 95
 include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
95 96
 # Other files (optional).
96 97
 include $(CHIBIOS)/test/rt/test.mk
98
+include $(PDBLIB)/pd-buddy.mk
97 99
 
98 100
 # Define linker script file here
99 101
 LDSCRIPT=$(CHIBIOS)/../ld/STM32F072x8.ld
@@ -109,6 +111,7 @@ CSRC = $(STARTUPSRC) \
109 111
        $(BOARDSRC) \
110 112
        $(TESTSRC) \
111 113
        $(CHIBIOS)/os/hal/lib/streams/chprintf.c \
114
+       $(PDBSRC) \
112 115
        $(wildcard src/*.c)
113 116
 
114 117
 # C++ sources that can be compiled in ARM or THUMB mode depending on the global
@@ -141,6 +144,7 @@ ASMSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
141 144
 INCDIR = $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
142 145
          $(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
143 146
          $(CHIBIOS)/os/hal/lib/streams $(CHIBIOS)/os/various \
147
+	 $(PDBINC) \
144 148
 	 config
145 149
 
146 150
 #

+ 5
- 0
lib/pd-buddy.mk 查看文件

@@ -0,0 +1,5 @@
1
+# Source files for the PD Buddy firmware library
2
+PDBSRC = $(wildcard $(PDBLIB)/src/*.c)
3
+
4
+# Include directories
5
+PDBINC = $(PDBLIB)/inc

正在加载...
取消
保存