aboutsummaryrefslogtreecommitdiffstats
path: root/copy-to-ide
blob: 689966f448badb63d0314355f3c5c17014b97333 (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
#!/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="LICENSE
    ./libmaple/nvic.h
    ./libmaple/util.h
    ./libmaple/adc.h
    ./libmaple/usb_regs.h
    ./libmaple/rcc.h
    ./libmaple/exti.h
    ./libmaple/usart.h
    ./libmaple/usb.h
    ./libmaple/timers.h
    ./libmaple/bootVect.h
    ./libmaple/systick.h
    ./libmaple/flash.h
    ./libmaple/spi.h
    ./libmaple/gpio.h
    ./libmaple/libmaple.h
    ./libmaple/libmaple_types.h
    ./libmaple/rcc.c
    ./libmaple/exti.c
    ./libmaple/syscalls.c
    ./libmaple/usart.c
    ./libmaple/systick.c
    ./libmaple/util.c
    ./libmaple/exc.c
    ./libmaple/nvic.c
    ./libmaple/spi.c
    ./libmaple/timers.c
    ./libmaple/usb.c
    ./libmaple/adc.c
    ./libmaple/flash.c
    ./libmaple/gpio.c
    ./wirish/bits.h
    ./wirish/ext_interrupts.c
    ./wirish/ext_interrupts.h
    ./wirish/io.h
    ./wirish/main.cxx
    ./wirish/Print.cpp
    ./wirish/Print.h
    ./wirish/pwm.c
    ./wirish/pwm.h
    ./wirish/time.c
    ./wirish/time.h
    ./wirish/wirish_analog.c
    ./wirish/wirish.c
    ./wirish/wirish_digital.c
    ./wirish/wirish.h
    ./wirish/wirish_math.cpp
    ./wirish/wirish_math.h
    ./wirish/wirish_shift.c
    ./wirish/WProgram.h
    ./wirish/comm/HardwareSerial.cpp
    ./wirish/comm/HardwareSerial.h
    ./wirish/comm/HardwareSPI.cpp
    ./wirish/comm/HardwareSPI.h
    ./wirish/comm/HardwareUsb.cpp
    ./wirish/comm/HardwareUsb.h"

# 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 delete and copy the source files
rm $DEST/*.c $DEST/*.cpp $DEST/*.h $DEST/*.cxx
cp -v $FILES $DEST