blob: cb36b0d7a9f8689e14ef857a2062ba1c046d9f82 (
plain)
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
|
#!/bin/sh
# This hackish script copies the necessary library files into the Maple IDE
# repository.
# Change this
DEST=`pwd`/../maple-ide/hardware/leaflabs/cores/maple/
ARCH=`uname -a`
FILES="
stm32lib/inc/cortexm3_macro.h
stm32lib/src/stm32f10x_flash.c
stm32lib/src/stm32f10x_nvic.c
stm32lib/src/stm32f10x_rcc.c
stm32lib/inc/stm32f10x_nvic.h
stm32lib/inc/stm32f10x_rcc.h
stm32lib/inc/stm32f10x_flash.h
stm32lib/inc/stm32f10x_adc.h
stm32lib/inc/stm32f10x_fsmc.h
stm32lib/inc/stm32f10x_dac.h
stm32lib/inc/stm32f10x_rtc.h
stm32lib/inc/stm32f10x_spi.h
stm32lib/inc/stm32f10x_pwr.h
stm32lib/inc/stm32f10x_iwdg.h
stm32lib/inc/stm32f10x_exti.h
stm32lib/inc/stm32f10x_bkp.h
stm32lib/inc/stm32f10x_i2c.h
stm32lib/inc/stm32f10x_dma.h
stm32lib/inc/stm32f10x_gpio.h
stm32lib/inc/stm32f10x_nvic.h
stm32lib/inc/stm32f10x_wwdg.h
stm32lib/inc/stm32f10x_lib.h
stm32lib/inc/stm32f10x_type.h
stm32lib/inc/stm32f10x_usart.h
stm32lib/inc/stm32f10x_tim.h
stm32lib/inc/stm32f10x_can.h
stm32lib/inc/stm32f10x_sdio.h
stm32lib/inc/stm32f10x_flash.h
stm32lib/inc/stm32f10x_dbgmcu.h
stm32lib/inc/stm32f10x_systick.h
stm32lib/inc/stm32f10x_crc.h
stm32lib/inc/stm32f10x_rcc.h
stm32lib/inc/stm32f10x_map.h
lib/systick.c
lib/timers.c
lib/adc.c
lib/syscalls.c
lib/stm32f10x_it.c
lib/exti.c
lib/gpio.c
lib/nvic.c
lib/usart.c
lib/util.c
lib/usb.h
lib/usb.c
lib/timers.h
lib/gpio.h
lib/nvic.h
lib/systick.h
lib/util.h
lib/adc.h
lib/usb_regs.h
lib/exti.h
lib/usart.h
lib/stm32f10x_conf.h
lib/bootVect.h
lib/libmaple.h
lib/libmaple_types.h
wiring/bits.h
wiring/comm/HardwareUsb.h
wiring/comm/HardwareSerial.h
wiring/io.h
wiring/wiring.h
wiring/WProgram.h
wiring/Print.h
wiring/pwm.h
wiring/binary.h
wiring/wiring_math.h
wiring/ext_interrupts.h
wiring/time.h
wiring/wiring.c
wiring/wiring_shift.c
wiring/wiring_analog.c
wiring/time.c
wiring/pwm.c
wiring/ext_interrupts.c
wiring/wiring_digital.c
wiring/wiring_math.cpp
wiring/Print.cpp
wiring/comm/HardwareSerial.cpp
wiring/comm/HardwareUsb.cpp
main.cxx"
# First see if this folder exists
if !(test -d $DEST/lanchon-stm32)
then
mkdir $DEST/lanchon-stm32
fi
# Then copy over linker files
cp -v stm32conf/* $DEST
cp -v stm32conf/lanchon-stm32/* $DEST/lanchon-stm32
# Finally the source files
cd src
cp -v $FILES $DEST
|