1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00
LibrePilot/flight/PiOS/STM32F10x
stac 02e0017cbb stm32 lib: declare read-only parameters as const
Many of the STM32 library functions take a pointer to an
initialization structure.  In nearly every case, this struct
is a read-only (ie. const) parameter.

It is advantageous (and good coding practice) to actually declare
read-only data as const so that the compiler can place the const data
in the .rodata section which resides in flash and doesn't consume any
RAM.  This has the added bonus advantage that it is impossible for the
running application to corrupt the read-only data.

In order to allow passing pointers to const data into the library
functions, it is essential that the function prototypes also declare
their associated read-only parameters as const.  This commit adds
the const attribute to those parameters that are actually read-only.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@758 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-06-13 04:23:15 +00:00
..
Libraries stm32 lib: declare read-only parameters as const 2010-06-13 04:23:15 +00:00
link_stm32f10x_HD_BL.ld OP-21: Cleaning up a few things. 2010-03-13 20:46:46 +00:00
link_stm32f10x_HD_NB.ld init cleanup: use irq stack during early init 2010-06-13 04:22:47 +00:00
link_stm32f10x_HD.ld Directory re-structuring. Doesn't compile yet, need to commit first. 2009-12-01 14:04:30 +00:00
link_stm32f10x_MD.ld Changes to PiOS to be compatible with the AHRS. 2010-05-11 13:36:13 +00:00
pios_adc.c ADC Updates. 2010-05-12 12:09:35 +00:00
pios_debug.c Changed PIOS_DEBUG_Panic() 2010-05-31 16:22:58 +00:00
pios_delay.c PIOS_DONT_USE_XXX => PIOS_INCLUDE_XXX 2010-03-11 12:38:51 +00:00
pios_exti.c Updated BMP085 test code. 2010-03-23 04:01:11 +00:00
pios_gpio.c Added GPIO functions for accelerometer full-scale selection. 2010-05-15 15:27:52 +00:00
pios_i2c.c A few small fixes 2010-05-22 06:30:42 +00:00
pios_irq.c PIOS_DONT_USE_XXX => PIOS_INCLUDE_XXX 2010-03-11 12:38:51 +00:00
pios_led.c PIOS_LED: Initialise all LED's as off. 2010-03-14 06:47:57 +00:00
pios_ppm.c Working on the PPM functionality. Getting there but it is still not 100% correct. 2010-03-30 04:48:15 +00:00
pios_pwm.c PIOS_DONT_USE_XXX => PIOS_INCLUDE_XXX 2010-03-11 12:38:51 +00:00
pios_servo.c Loopback test of HID working. Still a WIP but committing what I have to show progress. 2010-05-04 18:54:43 +00:00
pios_spektrum.c OP-22 Flight/PiOS: Spektrum bind function tested and working. 2010-05-23 11:19:28 +00:00
pios_spi.c spi: fix cut/paste error for AHRS SPI setup 2010-05-27 01:37:43 +00:00
pios_sys.c Changes to PiOS to be compatible with the AHRS. 2010-05-11 13:36:13 +00:00
pios_usart.c usart: use macro definitions for bit positions 2010-06-13 04:22:57 +00:00
pios_usb_com.c PIOS_DONT_USE_XXX => PIOS_INCLUDE_XXX 2010-03-11 12:38:51 +00:00
pios_usb_hid.c USB HID: basic COM functionality over USB HID 2010-05-24 16:33:40 +00:00
pios_usb.c USB HID: basic COM functionality over USB HID 2010-05-24 16:33:40 +00:00
startup_stm32f10x_HD_BL.S OP-21: Made changes to OpenPilot makefile too allow building for bootloader and non-bootloader targets. Use "USE_BOOTLOADER = YES" to build for the OpenPilot Bootloader. 2010-03-13 20:01:31 +00:00
startup_stm32f10x_HD_NB.S init cleanup: use irq stack during early init 2010-06-13 04:22:47 +00:00
startup_stm32f10x_HD.S OP-21: Made changes to OpenPilot makefile too allow building for bootloader and non-bootloader targets. Use "USE_BOOTLOADER = YES" to build for the OpenPilot Bootloader. 2010-03-13 20:01:31 +00:00
startup_stm32f10x_MD.S Changes to PiOS to be compatible with the AHRS. 2010-05-11 13:36:13 +00:00