mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
02e0017cbb
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 |
||
---|---|---|
.. | ||
Libraries | ||
link_stm32f10x_HD_BL.ld | ||
link_stm32f10x_HD_NB.ld | ||
link_stm32f10x_HD.ld | ||
link_stm32f10x_MD.ld | ||
pios_adc.c | ||
pios_debug.c | ||
pios_delay.c | ||
pios_exti.c | ||
pios_gpio.c | ||
pios_i2c.c | ||
pios_irq.c | ||
pios_led.c | ||
pios_ppm.c | ||
pios_pwm.c | ||
pios_servo.c | ||
pios_spektrum.c | ||
pios_spi.c | ||
pios_sys.c | ||
pios_usart.c | ||
pios_usb_com.c | ||
pios_usb_hid.c | ||
pios_usb.c | ||
startup_stm32f10x_HD_BL.S | ||
startup_stm32f10x_HD_NB.S | ||
startup_stm32f10x_HD.S | ||
startup_stm32f10x_MD.S |