From 9a0efba240f4848994e292adda7b5d1d4c78931b Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 12 Mar 2010 12:25:30 -0500 Subject: script to copy src files to IDE; renamed README --- README.txt | 65 ----------------------------------------------------- copy-to-ide | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pin-mapping.txt | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 135 insertions(+), 65 deletions(-) delete mode 100644 README.txt create mode 100755 copy-to-ide create mode 100644 pin-mapping.txt diff --git a/README.txt b/README.txt deleted file mode 100644 index c1709e8..0000000 --- a/README.txt +++ /dev/null @@ -1,65 +0,0 @@ -Reserved Pins: Function -PA11 USBDM -PA12 USBDP -PA13 JTMS-SWDAT -PA14 JTCK-SWCLK -PA15 JTDI -PB2 BOOT1 -PB3 JTDO -PB4 JTRST -PC11 USB_P -PC12 DISC -PD0 OSC_IN -PD1 OSC_OUT - -------------------------------------------------------------------------------- -Pin STM32 PIN ADC Timer I2C UART SPI F/T -------------------------------------------------------------------------------- -D0 PA3 ADC3 TIM2_CH4 - USART2_RX - - -D1 PA2 ADC2 TIM2_CH3 - USART2_TX - - -D2 PA0 ADC0 TIM2_CH1_ETR - USART2_CTS - - -D3 PA1 ADC1 TIM2_CH2 - USART2_RTS - - -D4 PB5 - - ISC1_SMBA - - - -D5 PB6 - TIM4_CH1 I2C1_SCL - - Y -D6 PA8 - TIM1_CH1 - USART1_CK - Y -D7 PA9 - TIM1_CH2 - USART1_TX - Y -D8 PA10 - TIM1_CH3 - USART1_RX - Y -D9 PB7 - TIM4_CH2 I2C1_SDA - - Y -D10 PA4 ADC4 - - USART2_CK SPI1_NSS - -D11 PA7 ADC7 TIM3_CH2 - - SPI1_MOSI - -D12 PA6 ADC6 TIM3_CH1 - - SPI1_MISO - -D13 PA5 ADC5 - - - SPI1_SCK - -D14 PB8 0 TIM4_CH3 - - - Y -------------------------------------------------------------------------------- -Little header -------------------------------------------------------------------------------- -D15 PC0 ADC10 - - - - - -D16 PC1 ADC11 - - - - - -D17 PC2 ADC12 - - - - - -D18 PC3 ADC13 - - - - - -D19 PC4 ADC14 - - - - - -D20 PC5 ADC15 - - - - - -------------------------------------------------------------------------------- -External header -------------------------------------------------------------------------------- -D21 PC13 - - - - - - -D22 PC14 - - - - - - -D23 PC15 - - - - - - -D24 PB9 - TIM4_CH4 - - - Y -D25 PD2 - TIM3_ETR - - - Y -D26 PC10 - - - - - Y -D27 PB0 ADC8 TIM3_CH3 - - - - -D28 PB1 ADC9 TIM3_CH4 - - - - -D29 PB10 - - I2C2_SCL USART3_TX - Y -D30 PB11 - - I2C2_SDA USART3_RX - Y -D31 PB12 - TIM1_BKIN I2C2_SMBAL USART3_CK SPI2_NSS Y -D32 PB13 - TIM1_CH1N - USART3_CTS SPI2_SCK Y -D33 PB14 - TIM1_CH2N - USART3_RTS SPI2_MISO Y -D34 PB15 - TIM1_CH3N - - SPI2_MOSI Y -D35 PC6 - - - - - Y -D36 PC7 - - - - - Y -D37 PC8 - - - - - Y -D38 PC9 - - - - - Y -------------------------------------------------------------------------------- - - diff --git a/copy-to-ide b/copy-to-ide new file mode 100755 index 0000000..5585ed9 --- /dev/null +++ b/copy-to-ide @@ -0,0 +1,70 @@ +#!/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/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 + 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" + +cd src +cp -v $FILES $DEST + diff --git a/pin-mapping.txt b/pin-mapping.txt new file mode 100644 index 0000000..c1709e8 --- /dev/null +++ b/pin-mapping.txt @@ -0,0 +1,65 @@ +Reserved Pins: Function +PA11 USBDM +PA12 USBDP +PA13 JTMS-SWDAT +PA14 JTCK-SWCLK +PA15 JTDI +PB2 BOOT1 +PB3 JTDO +PB4 JTRST +PC11 USB_P +PC12 DISC +PD0 OSC_IN +PD1 OSC_OUT + +------------------------------------------------------------------------------- +Pin STM32 PIN ADC Timer I2C UART SPI F/T +------------------------------------------------------------------------------- +D0 PA3 ADC3 TIM2_CH4 - USART2_RX - - +D1 PA2 ADC2 TIM2_CH3 - USART2_TX - - +D2 PA0 ADC0 TIM2_CH1_ETR - USART2_CTS - - +D3 PA1 ADC1 TIM2_CH2 - USART2_RTS - - +D4 PB5 - - ISC1_SMBA - - - +D5 PB6 - TIM4_CH1 I2C1_SCL - - Y +D6 PA8 - TIM1_CH1 - USART1_CK - Y +D7 PA9 - TIM1_CH2 - USART1_TX - Y +D8 PA10 - TIM1_CH3 - USART1_RX - Y +D9 PB7 - TIM4_CH2 I2C1_SDA - - Y +D10 PA4 ADC4 - - USART2_CK SPI1_NSS - +D11 PA7 ADC7 TIM3_CH2 - - SPI1_MOSI - +D12 PA6 ADC6 TIM3_CH1 - - SPI1_MISO - +D13 PA5 ADC5 - - - SPI1_SCK - +D14 PB8 0 TIM4_CH3 - - - Y +------------------------------------------------------------------------------- +Little header +------------------------------------------------------------------------------- +D15 PC0 ADC10 - - - - - +D16 PC1 ADC11 - - - - - +D17 PC2 ADC12 - - - - - +D18 PC3 ADC13 - - - - - +D19 PC4 ADC14 - - - - - +D20 PC5 ADC15 - - - - - +------------------------------------------------------------------------------- +External header +------------------------------------------------------------------------------- +D21 PC13 - - - - - - +D22 PC14 - - - - - - +D23 PC15 - - - - - - +D24 PB9 - TIM4_CH4 - - - Y +D25 PD2 - TIM3_ETR - - - Y +D26 PC10 - - - - - Y +D27 PB0 ADC8 TIM3_CH3 - - - - +D28 PB1 ADC9 TIM3_CH4 - - - - +D29 PB10 - - I2C2_SCL USART3_TX - Y +D30 PB11 - - I2C2_SDA USART3_RX - Y +D31 PB12 - TIM1_BKIN I2C2_SMBAL USART3_CK SPI2_NSS Y +D32 PB13 - TIM1_CH1N - USART3_CTS SPI2_SCK Y +D33 PB14 - TIM1_CH2N - USART3_RTS SPI2_MISO Y +D34 PB15 - TIM1_CH3N - - SPI2_MOSI Y +D35 PC6 - - - - - Y +D36 PC7 - - - - - Y +D37 PC8 - - - - - Y +D38 PC9 - - - - - Y +------------------------------------------------------------------------------- + + -- cgit v1.2.3