forked from holgerschurig/md380
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
205 lines (188 loc) · 7.41 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
PROJECT=md380
.PHONY:: all clean
all obj/md380.bin:: freertos/.git/HEAD
@ninja | cat
clean::
ninja -t clean
#############################################################################
#
# Documentation
#
#############################################################################
.PHONY:: doc
# Hardware
doc:: doc/MD380_Schematics.pdf
doc/MD380_Schematics.pdf:
mkdir -p doc
wget -O $@ -c http://www.pc5e.nl/downloads/md380/documents/MD-380UHF-RF-schematic.pdf
doc:: doc/STM32F405.pdf
doc/STM32F405.pdf:
mkdir -p doc
wget -O $@ -c http://www.st.com/resource/en/datasheet/STM32F405rg.pdf
doc:: doc/STM32F405_Reference_Manual.pdf
doc/STM32F405_Reference_Manual.pdf:
mkdir -p doc
wget -O $@ -c http://www.st.com/resource/en/reference_manual/dm00031020.pdf
doc:: doc/STM32F405_Programming_Manual.pdf
doc/STM32F405_Programming_Manual.pdf:
mkdir -p doc
wget -O $@ -c http://www.st.com/resource/en/programming_manual/dm00046982.pdf
doc:: doc/SKY72310_Frequency_Synthesizer.pdf
doc/SKY72310_Frequency_Synthesizer.pdf:
mkdir -p doc
wget -O $@ -c http://www.skyworksinc.com/uploads/documents/200705E.pdf
doc:: doc/GT3136_Detector.pdf
doc/GT3136_Detector.pdf:
mkdir -p doc
wget -O $@ -c "http://www.devicemart.co.kr/include/down.php?file=/data/goods/goodsfile/1074873_file_0.pdf&mode=goods&name=GT3136%20Rev.pdf"
doc:: doc/XC6204_PMIC.pdf
doc/XC6204_PMIC.pdf:
mkdir -p doc
wget -O $@ -c https://www.torexsemi.com/file/xc6204/XC6204-XC6205.pdf
doc:: doc/ILI9481_LCD_Display.pdf
doc/ILI9481_LCD_Display.pdf:
mkdir -p doc
wget -O $@ -c http://www.ncsys.co.jp/webshop/GTV350MPZI04\(ILI9481\).pdf
doc:: doc/TDA2822D_Audio_Amplifier.pdf
doc/TDA2822D_Audio_Amplifier.pdf:
mkdir -p doc
wget -O $@ -c http://www.st.com/resource/en/datasheet/tda2822d.pdf
doc:: doc/TC75S51F_OpAmp.pdf
doc/TC75S51F_OpAmp.pdf:
mkdir -p doc
wget -O $@ -c "https://toshiba.semicon-storage.com/info/docget.jsp?did=21004&prodName=TC75S51F"
doc:: doc/UMC4N_Power_Transistor.pdf
doc/UMC4N_Power_Transistor.pdf:
mkdir -p doc
wget -O $@ -c http://www1.futureelectronics.com/doc/ROHM/UMC4NTR.pdf
doc:: doc/NJM2902_OpAmp.pdf
doc/NJM2902_OpAmp.pdf:
mkdir -p doc
wget -O $@ -c http://www.mouser.com/ds/2/294/NJM2902_E-218313.pdf
doc:: doc/NJM2100_OpAmp.pdf
doc/NJM2100_OpAmp.pdf:
mkdir -p doc
wget -O $@ -c http://www.njr.com/semicon/PDF/NJM2100_E.pdf
doc:: doc/NRM2904_OpAmp.pdf
doc/NRM2904_OpAmp.pdf:
mkdir -p doc
wget -O $@ -c http://www.njr.com/semicon/PDF/NJM2904_E.pdf
doc:: doc/W15Q128FV_Flash
doc/W15Q128FV_Flash:
mkdir -p doc
wget -O $@ -c "https://www.winbond.com/resource-files/w25q128fv_revhh1_100913_website1.pdf"
doc:: doc/PST9124_Reset.pdf
doc/PST9124_Reset.pdf:
mkdir -p doc
wget -O $@ -c "https://www.digchip.com/datasheets/download_datasheet.php?id=790415&part-number=PST9124"
doc:: doc/LM2734X_Buck_Converter.pdf
doc/LM2734X_Buck_Converter.pdf:
mkdir -p doc
wget -O $@ -c http://www.ti.com/lit/ds/symlink/lm2734.pdf
doc:: doc/Cortex-M4_TRM.pdf
doc/Cortex-M4_TRM.pdf:
wget -O $@ -c http://infocenter.arm.com/help/topic/com.arm.doc.100166_0001_00_en/arm_cortexm4_processor_trm_100166_0001_00_en.pdf
# Software
doc:: doc/STM32Cube_UM1725_HAL_LL_Driver_description.pdf
doc/STM32Cube_UM1725_HAL_LL_Driver_description.pdf:
mkdir -p doc
wget -O $@ -c http://www.st.com/resource/en/user_manual/dm00105879.pdf
doc:: doc/STM32Cube_UM1734_USB_Device_Library.pdf
doc/STM32Cube_UM1734_USB_Device_Library.pdf:
mkdir -p doc
wget -O $@ -c http://www.st.com/resource/en/user_manual/dm00108129.pdf
doc:: doc/UC-OS-II.pdf
doc/UC-OS-II.pdf:
mkdir -p doc
wget -O $@ -c https://doc.micrium.com/download/attachments/10753158/100-uC-OS-II-002.pdf
# Misc
doc:: doc/CS8x0_Service_Manual.pdf
doc/CS8x0_Service_Manual.pdf:
wget -O $@ -c http://www.connectsystems.com/software/CS810_documents/CS800%20Service%20Manual.pdf
#############################################################################
#
# Freertos
#
#############################################################################
# Woah, the GIT mirror has much faster download times than
# sourceforge's file download. Let's use it:
.PHONY:: getrtos
getrtos: freertos/.git/HEAD
freertos/.git/HEAD:
git clone --depth 1 https://github.com/cjlano/freertos
# I have a prune target that removes the unneeded things. That way I
# can much faster search with "ag" (or "grep -r") inside freertos/
.PHONY:: prunertos
prunertos:
rm -rf freertos/FreeRTOS-Plus
rm -rf freertos/FreeRTOS/Demo/ARM7*
rm -rf freertos/FreeRTOS/Demo/ARM9*
rm -rf freertos/FreeRTOS/Demo/AVR*
rm -rf freertos/FreeRTOS/Demo/CORTEX_A*
rm -rf freertos/FreeRTOS/Demo/CORTEX_C*
rm -rf freertos/FreeRTOS/Demo/CORTEX_E*
rm -rf freertos/FreeRTOS/Demo/CORTEX_K*
rm -rf freertos/FreeRTOS/Demo/CORTEX_L*
rm -rf freertos/FreeRTOS/Demo/CORTEX_LPC*
rm -rf freertos/FreeRTOS/Demo/CORTEX_M0*
rm -rf freertos/FreeRTOS/Demo/CORTEX_M4F_ATSAM4E_Atmel_Studio
rm -rf freertos/FreeRTOS/Demo/CORTEX_M4F_CEC1302_Keil_GCC/
rm -rf freertos/FreeRTOS/Demo/CORTEX_M4F_CEC1302_MikroC/
rm -rf freertos/FreeRTOS/Demo/CORTEX_M4F_CEC_MEC_17xx_Keil_GCC/
rm -rf freertos/FreeRTOS/Demo/CORTEX_M4F_Infineon_*
rm -rf freertos/FreeRTOS/Demo/CORTEX_M4F_M0_LPC43xx_Keil/
rm -rf freertos/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/
rm -rf freertos/FreeRTOS/Demo/CORTEX_M4_*
rm -rf freertos/FreeRTOS/Demo/CORTEX_M7*
rm -rf freertos/FreeRTOS/Demo/CORTEX_MB*
rm -rf freertos/FreeRTOS/Demo/CORTEX_MPU*
rm -rf freertos/FreeRTOS/Demo/CORTEX_R*
rm -rf freertos/FreeRTOS/Demo/CORTEX_STM32F100_Atollic
rm -rf freertos/FreeRTOS/Demo/CORTEX_STM32F103_IAR/
rm -rf freertos/FreeRTOS/Demo/CORTEX_STM32F103_Keil/
rm -rf freertos/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/
rm -rf freertos/FreeRTOS/Demo/CORTEX_STM32L152_IAR/
rm -rf freertos/FreeRTOS/Demo/CORTEX_Sm*
rm -rf freertos/FreeRTOS/Demo/CORTUS*
rm -rf freertos/FreeRTOS/Demo/ColdFire*
rm -rf freertos/FreeRTOS/Demo/Cygnal
rm -rf freertos/FreeRTOS/Demo/Flshlite
rm -rf freertos/FreeRTOS/Demo/H8S
rm -rf freertos/FreeRTOS/Demo/HCS12*
rm -rf freertos/FreeRTOS/Demo/IA32*
rm -rf freertos/FreeRTOS/Demo/M*
rm -rf freertos/FreeRTOS/Demo/MSP*
rm -rf freertos/FreeRTOS/Demo/NEC*
rm -rf freertos/FreeRTOS/Demo/Nios*
rm -rf freertos/FreeRTOS/Demo/PC
rm -rf freertos/FreeRTOS/Demo/PIC*
rm -rf freertos/FreeRTOS/Demo/PPC*
rm -rf freertos/FreeRTOS/Demo/RL78*
rm -rf freertos/FreeRTOS/Demo/RX*
rm -rf freertos/FreeRTOS/Demo/SuperH*
rm -rf freertos/FreeRTOS/Demo/TriCore*
rm -rf freertos/FreeRTOS/Demo/Unsupported*
rm -rf freertos/FreeRTOS/Demo/WIN32*
rm -rf freertos/FreeRTOS/Demo/WizNET*
rm -rf freertos/FreeRTOS/Demo/Xilinx*
rm -rf freertos/FreeRTOS/Demo/dsPIC*
rm -rf freertos/FreeRTOS/Demo/lwIP*
rm -rf freertos/FreeRTOS/Demo/msp*
rm -rf freertos/FreeRTOS/Demo/uIP*
rm -rf freertos/FreeRTOS/Source/portable/BCC
rm -rf freertos/FreeRTOS/Source/portable/CCS
rm -rf freertos/FreeRTOS/Source/portable/CodeWarrior
rm -rf freertos/FreeRTOS/Source/portable/IAR
rm -rf freertos/FreeRTOS/Source/portable/Keil
rm -rf freertos/FreeRTOS/Source/portable/MikroC
rm -rf freertos/FreeRTOS/Source/portable/MPLAB
rm -rf freertos/FreeRTOS/Source/portable/MSVC-MingW
rm -rf freertos/FreeRTOS/Source/portable/oWatcom
rm -rf freertos/FreeRTOS/Source/portable/Paradigm
rm -rf freertos/FreeRTOS/Source/portable/Renesas
rm -rf freertos/FreeRTOS/Source/portable/Rowley
rm -rf freertos/FreeRTOS/Source/portable/RVDS
rm -rf freertos/FreeRTOS/Source/portable/SDCC
rm -rf freertos/FreeRTOS/Source/portable/Softune
rm -rf freertos/FreeRTOS/Source/portable/Tasking
rm -rf freertos/FreeRTOS/Source/portable/WizC