Automatic initialization module for all MCU peripherals
No detailed description...
Example for airframe file
Add to your firmware section:
Module functions
Init Functions
These initialization functions are called once on startup.
Event Functions
These event functions are called in each cycle of the module event loop.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
- ./mcu.c
- arch dependent: ./mcu_arch.c
- arch dependent: mcu_periph/gpio_arch.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
</description>
</doc>
<dep>
<provides>mcu</provides>
</dep>
<header>
<file name="mcu.h" dir="."/>
<file name="gpio.h" dir="mcu_periph"/>
</header>
<init fun="mcu_init()"/>
<event fun="mcu_event()"/>
<makefile>
<define name="PERIPHERALS_AUTO_INIT"/>
<file name="mcu.c" dir="."/>
<file_arch name="mcu_arch.c" dir="."/>
<file_arch name="gpio_arch.c" dir="mcu_periph" cond="ifneq ($(BOARD), ardrone)"/>
<test>
<define name="PERIPHERALS_AUTO_INIT"/>
</test>
</makefile>
</module>