[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [4844]
From: |
antoine drouin |
Subject: |
[paparazzi-commits] [4844] |
Date: |
Wed, 21 Apr 2010 09:26:31 +0000 |
Revision: 4844
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4844
Author: poine
Date: 2010-04-21 09:26:30 +0000 (Wed, 21 Apr 2010)
Log Message:
-----------
Removed Paths:
-------------
paparazzi3/trunk/sw/airborne/lisa/exceptions.c
paparazzi3/trunk/sw/airborne/lisa/exceptions.h
paparazzi3/trunk/sw/airborne/lisa/stm32f10x_flash_md.ld
paparazzi3/trunk/sw/airborne/lisa/vector_table.c
paparazzi3/trunk/sw/airborne/lisa/vector_table.h
Deleted: paparazzi3/trunk/sw/airborne/lisa/exceptions.c
===================================================================
--- paparazzi3/trunk/sw/airborne/lisa/exceptions.c 2010-04-21 09:25:52 UTC
(rev 4843)
+++ paparazzi3/trunk/sw/airborne/lisa/exceptions.c 2010-04-21 09:26:30 UTC
(rev 4844)
@@ -1,38 +0,0 @@
-/*
- * Open-BLDC - Open BruschLess DC Motor Controller
- * Copyright (C) 2009 by Piotr Esden-Tempski <address@hidden>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "exceptions.h"
-
-void nmi_exception(void){
-}
-
-void hard_fault_exception(void){
- while(1);
-}
-
-void mem_manage_exception(void){
- while(1);
-}
-
-void bus_fault_exception(void){
- while(1);
-}
-
-void usage_fault_exception(void){
- while(1);
-}
Deleted: paparazzi3/trunk/sw/airborne/lisa/exceptions.h
===================================================================
--- paparazzi3/trunk/sw/airborne/lisa/exceptions.h 2010-04-21 09:25:52 UTC
(rev 4843)
+++ paparazzi3/trunk/sw/airborne/lisa/exceptions.h 2010-04-21 09:26:30 UTC
(rev 4844)
@@ -1,28 +0,0 @@
-/*
- * Open-BLDC - Open BruschLess DC Motor Controller
- * Copyright (C) 2009 by Piotr Esden-Tempski <address@hidden>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __EXCEPTIONS_H
-#define __EXCEPTIONS_H
-
-void nmi_exception(void);
-void hard_fault_exception(void);
-void mem_manage_exception(void);
-void bus_fault_exception(void);
-void usage_fault_exception(void);
-
-#endif /* __EXCEPTIONS_H */
Deleted: paparazzi3/trunk/sw/airborne/lisa/stm32f10x_flash_md.ld
===================================================================
--- paparazzi3/trunk/sw/airborne/lisa/stm32f10x_flash_md.ld 2010-04-21
09:25:52 UTC (rev 4843)
+++ paparazzi3/trunk/sw/airborne/lisa/stm32f10x_flash_md.ld 2010-04-21
09:26:30 UTC (rev 4844)
@@ -1,184 +0,0 @@
-/*
- * Open-BLDC - Open BruschLess DC Motor Controller
- * Copyright (c) 2009 Piotr Esden-Tempski <address@hidden>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/* Stack size and address definitions */
-__Stack_Size = 1024 ;
-
-PROVIDE ( _Stack_Size = __Stack_Size ) ;
-
-__Stack_Init = _estack - __Stack_Size ;
-
-PROVIDE ( _Stack_Init = __Stack_Init ) ;
-
-/* Enforce a linker error if there is not enough space left in ram for the
stack */
-_Minimum_Stack_Size = 0x100 ;
-
-/* Memory Spaces Definitions */
-MEMORY
-{
- RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
- FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
-}
-
-/* User mode stack top */
-_estack = 0x20000800;
-
-/* Sections Definitions */
-
-SECTIONS
-{
- /* for Cortex devices, the beginning of the startup code is stored in the
.isr_vector section, which goes to FLASH */
- .isr_vector :
- {
- . = ALIGN(4);
- KEEP(*(.isr_vector)) /* Startup code */
- . = ALIGN(4);
- } >FLASH
-
- /* for some STRx devices, the beginning of the startup code is stored in
the .flashtext section, which goes to FLASH */
- .flashtext :
- {
- . = ALIGN(4);
- *(.flashtext) /* Startup code */
- . = ALIGN(4);
- } >FLASH
-
-
- /* the program code is stored in the .text section, which goes to Flash */
- .text :
- {
- . = ALIGN(4);
-
- *(.text) /* remaining code */
- *(.text.*) /* remaining code */
- *(.rodata) /* read-only data (constants) */
- *(.rodata*)
- *(.glue_7)
- *(.glue_7t)
-
- . = ALIGN(4);
- _etext = .;
- /* This is used by the startup in order to initialize the .data secion
*/
- _sidata = _etext;
- } >FLASH
-
- /* This is the initialized data section
- The program executes knowing that the data is in the RAM
- but the loader puts the initial values in the FLASH (inidata).
- It is one task of the startup to copy the initial values from FLASH to
RAM. */
- .data : AT ( _sidata )
- {
- . = ALIGN(4);
- /* This is used by the startup in order to initialize the .data secion
*/
- _sdata = . ;
-
- *(.data)
- *(.data.*)
-
- . = ALIGN(4);
- /* This is used by the startup in order to initialize the .data secion
*/
- _edata = . ;
- } >RAM
-
-
-
- /* This is the uninitialized data section */
- .bss :
- {
- . = ALIGN(4);
- /* This is used by the startup in order to initialize the .bss secion
*/
- _sbss = .;
-
- *(.bss)
- *(COMMON)
-
- . = ALIGN(4);
- /* This is used by the startup in order to initialize the .bss secion */
- _ebss = . ;
- } >RAM
-
- PROVIDE ( end = _ebss );
- PROVIDE ( _end = _ebss );
-
- /* This is the user stack section
- This is just to check that there is enough RAM left for the User mode stack
- It should generate an error if it's full.
- */
- ._usrstack :
- {
- . = ALIGN(4);
- _susrstack = . ;
- . = . + _Minimum_Stack_Size ;
- . = ALIGN(4);
- _eusrstack = . ;
- } >RAM
-
-
- /* after that it's only debugging information. */
-
- /* remove the debugging information from the standard libraries */
- /*DISCARD :
- {
- libc.a ( * )
- libm.a ( * )
- libgcc.a ( * )
- }*/
-
- /* Stabs debugging sections. */
- .stab 0 : { *(.stab) }
- .stabstr 0 : { *(.stabstr) }
- .stab.excl 0 : { *(.stab.excl) }
- .stab.exclstr 0 : { *(.stab.exclstr) }
- .stab.index 0 : { *(.stab.index) }
- .stab.indexstr 0 : { *(.stab.indexstr) }
- .comment 0 : { *(.comment) }
- /* DWARF debug sections.
- Symbols in the DWARF debugging sections are relative to the beginning
- of the section so we begin them at 0.*/
- /* DWARF 1 */
- .debug 0 : { *(.debug) }
- .line 0 : { *(.line) }
- /* GNU DWARF 1 extensions */
- .debug_srcinfo 0 : { *(.debug_srcinfo) }
- .debug_sfnames 0 : { *(.debug_sfnames) }
- /* DWARF 1.1 and DWARF 2 */
- .debug_aranges 0 : { *(.debug_aranges) }
- .debug_pubnames 0 : { *(.debug_pubnames) }
- /* DWARF 2 */
- .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
- .debug_abbrev 0 : { *(.debug_abbrev) }
- .debug_line 0 : { *(.debug_line) }
- .debug_frame 0 : { *(.debug_frame) }
- .debug_str 0 : { *(.debug_str) }
- .debug_loc 0 : { *(.debug_loc) }
- .debug_macinfo 0 : { *(.debug_macinfo) }
- /* SGI/MIPS DWARF 2 extensions */
- .debug_weaknames 0 : { *(.debug_weaknames) }
- .debug_funcnames 0 : { *(.debug_funcnames) }
- .debug_typenames 0 : { *(.debug_typenames) }
- .debug_varnames 0 : { *(.debug_varnames) }
-}
Deleted: paparazzi3/trunk/sw/airborne/lisa/vector_table.c
===================================================================
--- paparazzi3/trunk/sw/airborne/lisa/vector_table.c 2010-04-21 09:25:52 UTC
(rev 4843)
+++ paparazzi3/trunk/sw/airborne/lisa/vector_table.c 2010-04-21 09:26:30 UTC
(rev 4844)
@@ -1,191 +0,0 @@
-/*
- * Open-BLDC - Open BruschLess DC Motor Controller
- * Copyright (C) 2009 by Piotr Esden-Tempski <address@hidden>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include <cmsis/stm32.h>
-
-#include "main.h"
-#include "exceptions.h"
-
-#include "vector_table.h"
-
-#ifndef USE_SYS_TIME
-#define SYS_TICK_IRQ_HANDLER null_handler
-#else
-#include "sys_time.h"
-#define SYS_TICK_IRQ_HANDLER sys_tick_irq_handler
-#endif
-
-#ifndef USE_UART1
-#define USART1_IRQ_HANDLER null_handler
-#else
-#include "uart.h"
-#define USART1_IRQ_HANDLER usart1_irq_handler
-#endif
-
-#ifndef USE_UART2
-#define USART2_IRQ_HANDLER null_handler
-#else
-#include "uart.h"
-#define USART2_IRQ_HANDLER usart2_irq_handler
-#endif
-
-#ifndef USE_UART3
-#define USART3_IRQ_HANDLER null_handler
-#else
-#include "uart.h"
-#define USART3_IRQ_HANDLER usart3_irq_handler
-#endif
-
-#ifdef USE_I2C1
-#include "i2c_hw.h"
-#define I2C1_EV_IRQ_HANDLER i2c1_ev_irq_handler
-#define I2C1_ER_IRQ_HANDLER i2c1_er_irq_handler
-#else
-#define I2C1_EV_IRQ_HANDLER null_handler
-#define I2C1_ER_IRQ_HANDLER null_handler
-#endif
-
-#ifdef USE_SPI1
-extern void spi1_irq_handler(void);
-#define SPI1_IRQ_HANDLER spi1_irq_handler
-#else
-#define SPI1_IRQ_HANDLER null_handler
-#endif
-
-
-/* addresses defined in the linker script */
-extern unsigned long _etext; /* end addr of .text section */
-extern unsigned long _sidata; /* init values for .data section */
-extern unsigned long _sdata; /* start addr of .data section */
-extern unsigned long _edata; /* end addr of .data section */
-extern unsigned long _sbss; /* start addr of .bss section */
-extern unsigned long _ebss; /* end addr of .bss section */
-extern void _estack; /* stack pointer init value */
-
-void reset_handler_stage1(void) __attribute__((__interrupt__));
-void reset_handler_stage2(void);
-void null_handler(void);
-
-/* interrupt vector */
-__attribute__ ((section(".isr_vector")))
-void (* const vector_table[])(void) = {
- &_estack, /* stack pointer init value*/
- reset_handler_stage1, /* pc init value */
- nmi_exception,
- hard_fault_exception,
- mem_manage_exception,
- bus_fault_exception,
- usage_fault_exception,
- 0, 0, 0, 0, /* reserved */
- null_handler, /* svc_handler */
- null_handler, /* debug_monitor */
- 0, /* reserved */
- null_handler, /* pend_svc */
- SYS_TICK_IRQ_HANDLER, /* sys_tick_handler, */
- null_handler, /* wwdg_irq_handler */
- null_handler, /* pvd_irq_handler */
- null_handler, /* tamper_irq_handler */
- null_handler, /* rtc_irq_handler */
- null_handler, /* flash_irq_handler */
- null_handler, /* rcc_irq_handler */
- null_handler, /* exti0_irq_handler */
- null_handler, /* exti1_irq_handler */
- null_handler, /* exti2_irq_handler */
- null_handler, /* exti3_irq_handler */
- null_handler, /* exti4_irq_handler */
- null_handler, /* dma1_channel1_irq_handler */
- null_handler, /* dma1_channel2_irq_handler */
- null_handler, /* dma1_channel3_irq_handler */
- null_handler, /* dma1_channel4_irq_handler */
- null_handler, /* dma1_channel5_irq_handler */
- null_handler, /* dma1_channel6_irq_handler */
- null_handler, /* dma1_channel7_irq_handler */
- null_handler, /* adc1_2_irq_handler */
- null_handler, /* usb_hp_can_tx_irq_handler */
- null_handler, /* usb_lp_can_rx0_irq_handler */
- null_handler, /* can_rx1_irq_handler */
- null_handler, /* can_sce_irq_handler */
- null_handler, /* exti9_5_irq_handler */
- null_handler, /* tim1_brk_irq_handler */
- null_handler, /* tim1_up_irq_handler */
- null_handler, /* tim1_trg_com_irq_handler */
- null_handler, /* tim1_cc_irq_handler */
- null_handler, /* tim2_irq_handler */
- null_handler, /* tim3_irq_handler */
- null_handler, /* tim4_irq_handler */
- I2C1_EV_IRQ_HANDLER, /* i2c1_ev_irq_handler */
- I2C1_ER_IRQ_HANDLER, /* i2c1_er_irq_handler */
- null_handler, /* i2c2_ev_irq_handler */
- null_handler, /* i2c2_er_irq_handler */
- SPI1_IRQ_HANDLER, /* spi1_irq_handler */
- null_handler, /* spi2_irq_handler */
- USART1_IRQ_HANDLER, /* usart1_irq_handler */
- USART2_IRQ_HANDLER, /* usart2_irq_handler */
- USART3_IRQ_HANDLER, /* usart3_irq_handler */
- null_handler, /* exti15_10_irq_handler */
- null_handler, /* rtc_alarm_irq_handler */
- null_handler, /* usb_wake_up_irq_handler */
- null_handler, /* tim8_brk_irq_handler */
- null_handler, /* tim8_up_irq_handler */
- null_handler, /* tim8_trg_com_irq_handler */
- null_handler, /* tim8_cc_irq_handler */
- null_handler, /* adc3_irq_handler */
- null_handler, /* fsmc_irq_handler */
- null_handler, /* sdio_irq_handler */
- null_handler, /* tim5_irq_handler */
- null_handler, /* spi3_irq_handler */
- null_handler, /* uart4_irq_handler */
- null_handler, /* uart5_irq_handler */
- null_handler, /* tim6_irq_handler */
- null_handler, /* tim7_irq_handler */
- null_handler, /* dma2_channel1_irq_handler */
- null_handler, /* dma2_channel2_irq_handler */
- null_handler, /* dma2_channel3_irq_handler */
- null_handler, /* dma2_channel4_5_irq_handler */
-};
-
-/* Get's called directly after mcu reset */
-void reset_handler_stage1(void){
- /* set stack align */
- SCB->CCR = SCB->CCR | SCB_CCR_STKALIGN;
-
- reset_handler_stage2();
-}
-
-void reset_handler_stage2(void){
- unsigned long *pul_src, *pul_dest;
-
- /* Copy the data segment initializers from flash to SRAM */
- pul_src = &_sidata;
- for(pul_dest = &_sdata; pul_dest < &_edata; ){
- *(pul_dest++) = *(pul_src++);
- }
- /* Zero fill the bss segment. */
- for(pul_dest = &_sbss; pul_dest < &_ebss; ){
- *(pul_dest++) = 0;
- }
-
- /* Call the application's entry point.*/
- main();
-}
-
-void null_handler(void){
-}
-
-void assert_param(void){
-}
Deleted: paparazzi3/trunk/sw/airborne/lisa/vector_table.h
===================================================================
--- paparazzi3/trunk/sw/airborne/lisa/vector_table.h 2010-04-21 09:25:52 UTC
(rev 4843)
+++ paparazzi3/trunk/sw/airborne/lisa/vector_table.h 2010-04-21 09:26:30 UTC
(rev 4844)
@@ -1,23 +0,0 @@
-/*
- * Open-BLDC - Open BruschLess DC Motor Controller
- * Copyright (C) 2009 by Piotr Esden-Tempski <address@hidden>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __VECTOR_TABLE_H
-#define __VECTOR_TABLE_H
-
-
-#endif /* __VECTOR_TABLE_H */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [4844],
antoine drouin <=