aboutsummaryrefslogtreecommitdiffstats
path: root/copy-to-ide
blob: 147900af1c3d7e0497168850fa16796264fd8c0e (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
#!/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="
    stm32libmaple/inc/cortexm3_macro.h
    stm32libmaple/src/stm32f10x_flash.c    
    stm32libmaple/src/stm32f10x_nvic.c     
    stm32libmaple/src/stm32f10x_rcc.c      
    stm32libmaple/inc/stm32f10x_nvic.h
    stm32libmaple/inc/stm32f10x_rcc.h
    stm32libmaple/inc/stm32f10x_flash.h
    stm32libmaple/inc/stm32f10x_adc.h
    stm32libmaple/inc/stm32f10x_fsmc.h
    stm32libmaple/inc/stm32f10x_dac.h
    stm32libmaple/inc/stm32f10x_rtc.h
    stm32libmaple/inc/stm32f10x_spi.h
    stm32libmaple/inc/stm32f10x_pwr.h
    stm32libmaple/inc/stm32f10x_iwdg.h
    stm32libmaple/inc/stm32f10x_exti.h
    stm32libmaple/inc/stm32f10x_bkp.h
    stm32libmaple/inc/stm32f10x_i2c.h
    stm32libmaple/inc/stm32f10x_dma.h
    stm32libmaple/inc/stm32f10x_gpio.h
    stm32libmaple/inc/stm32f10x_nvic.h
    stm32libmaple/inc/stm32f10x_wwdg.h
    stm32libmaple/inc/stm32f10x_lib.h
    stm32libmaple/inc/stm32f10x_type.h
    stm32libmaple/inc/stm32f10x_usart.h
    stm32libmaple/inc/stm32f10x_tim.h
    stm32libmaple/inc/stm32f10x_can.h
    stm32libmaple/inc/stm32f10x_sdio.h
    stm32libmaple/inc/stm32f10x_flash.h
    stm32libmaple/inc/stm32f10x_dbgmcu.h
    stm32libmaple/inc/stm32f10x_systick.h
    stm32libmaple/inc/stm32f10x_crc.h
    stm32libmaple/inc/stm32f10x_rcc.h
    stm32libmaple/inc/stm32f10x_map.h
    libmaple/systick.c                     
    libmaple/timers.c                      
    libmaple/adc.c                         
    libmaple/syscalls.c                    
    libmaple/stm32f10x_it.c                
    libmaple/exti.c                        
    libmaple/gpio.c                        
    libmaple/nvic.c                        
    libmaple/usart.c                       
    libmaple/util.c                        
    libmaple/usb.h
    libmaple/usb.c                         
    libmaple/timers.h
    libmaple/gpio.h
    libmaple/nvic.h
    libmaple/systick.h
    libmaple/util.h
    libmaple/adc.h
    libmaple/usb_regs.h
    libmaple/exti.h
    libmaple/usart.h
    libmaple/stm32f10x_conf.h
    libmaple/bootVect.h
    libmaple/libmaple.h
    libmaple/libmaple_types.h
    core/bits.h
    core/comm/HardwareUsb.h
    core/comm/HardwareSerial.h
    core/io.h
    core/wiring.h
    core/WProgram.h
    core/Print.h
    core/pwm.h
    core/binary.h
    core/wiring_math.h
    core/ext_interrupts.h
    core/time.h
    core/wiring.c                   
    core/wiring_shift.c             
    core/wiring_analog.c            
    core/time.c                     
    core/pwm.c                      
    core/ext_interrupts.c           
    core/wiring_digital.c           
    core/wiring_math.cpp            
    core/Print.cpp                  
    core/comm/HardwareSerial.cpp    
    core/comm/HardwareUsb.cpp       
    core/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
cp -v $FILES $DEST