Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mcu module

Automatic initialization module for all MCU peripherals

Also includes GPIO and LED drivers

Example for airframe file

Add to your firmware section:

1 <module name="mcu"/>

Files

Header Files

The following headers are automatically included in modules.h

Source Files

  • ./mcu.c
  • arch dependent: ./mcu_arch.c
  • arch dependent: ./armVIC.c
  • arch dependent: mcu_periph/gpio_arch.c
  • arch dependent: ./led_arch.c
  • arch dependent: mcu_periph/gpio_arch.c
  • arch dependent: boards/ardrone/gpio_ardrone.c

Raw mcu.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="mcu" dir="mcu_periph" task="mcu">
<doc>
<description>
Automatic initialization module for all MCU peripherals
Also includes GPIO and LED drivers
</description>
</doc>
<header>
<file name="mcu.h" dir="."/>
<file name="gpio.h" dir="mcu_periph"/>
<file name="led.h" dir="."/>
</header>
<makefile>
<define name="PERIPHERALS_AUTO_INIT"/>
<defina name="USE_LED"/>
<file name="mcu.c" dir="."/>
<file_arch name="mcu_arch.c" dir="."/>
<file_arch name="armVIC.c" dir="." cond="ifeq ($(ARCH), lpc21)"/>
<file_arch name="gpio_arch.c" dir="mcu_periph" cond="ifeq ($(ARCH), stm32)"/>
<file_arch name="led_arch.c" dir="." cond="ifeq ($(ARCH), stm32)"/>
<file_arch name="gpio_arch.c" dir="mcu_periph" cond="ifeq ($(ARCH), chibios)"/>
<file_arch name="gpio_ardrone.c" dir="boards/ardrone" cond="ifeq ($(BOARD), ardrone)"/>
</makefile>
</module>