テスト用のあれこれ共用フォルダ
Revisión | 6d0f2ff74adfd3a64189284168a1e36e86d4d565 (tree) |
---|---|
Tiempo | 2018-08-10 13:12:02 |
Autor | takemasa <suikan@user...> |
Commiter | takemasa |
Added CMSIS-5 dsp setting as here-document
@@ -39,4 +39,21 @@ popd | ||
39 | 39 | cat ~/shared_foo/management/installation/terminal.template | sed -e 's/baudrate/115200/' | sed -e 's/devname/ttySPRESENSE/' > ~/spresense/sdk/terminal |
40 | 40 | chmod +x ~/spresense/sdk/terminal |
41 | 41 | |
42 | +# Additional definition to use CMSIS-5-DSP | |
43 | +cat >> /home/takemasa/spresense/sdk/Make.defs <<-'EOF' | |
44 | + | |
45 | + CFLAGS += -I$(SDKDIR)/../CMSIS_5/CMSIS/DSP/Include | |
46 | + CFLAGS += -I$(SDKDIR)/../CMSIS_5/CMSIS/Core/Include | |
47 | + CFLAGS += -DARM_MATH_CM4 | |
48 | + CFLAGS += -D__FPU_PRESENT=1 | |
49 | + | |
50 | + CXXFLAGS += -I$(SDKDIR)/../CMSIS_5/CMSIS/DSP/Include | |
51 | + CXXFLAGS += -I$(SDKDIR)/../CMSIS_5/CMSIS/Core/Include | |
52 | + CXXFLAGS += -DARM_MATH_CM4 | |
53 | + CXXFLAGS += -D__FPU_PRESENT=1 | |
54 | + | |
55 | + EXTRA_LIBS += -larm_cortexM4lf_math | |
56 | + EXTRA_LIBPATHS += -L$(SDKDIR)/../CMSIS_5/CMSIS/Lib/GCC | |
57 | + | |
58 | +EOF | |
42 | 59 |