USART Static Driver Details

After using MHC to configure the Static USART drivers, click the MHC Generate button to create the driver code.

Click image to enlarge.

Clicking the Generate button will create these two files and include them in your project for you:


MHC needs to generate static functions for you, because they are dependent on how you configure the static driver. These customized static driver functions are not downloaded with the rest of the Harmony framework. That is why you won't find the static driver source files included with the dynamic driver source files in the main Harmony framework folder.

drv_usart_static.c is created by MHC to create the USART Static Driver initialization function for each driver instance (driver instance 0 shown below). It will also create the other USART static driver functions.


system_init.c is modified by MHC to call the USART Static Driver initialization function.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.