Engineering architecture of stm32

  First, things that stm32 passively executes (equivalent to stm32 resources), such as peripheral register description and kernel register description, library functions, etc. We can mobilize these resources in the main function or interrupt function.

  Next is to define systemlnit, main and interrupt handling functions. Of course, you can also define some user files to encapsulate some modules for main functions and interrupt calls.

  The startup startup file (which defines the interrupt vector table, interrupt service function, etc.) contains the reset interrupt: when stm32 is powered on and reset or the reset key is pressed, the program will enter the reset interrupt function for execution. The function of reset interrupt is to call systemlnit function and main function. Other interrupts will be automatically executed when they meet the trigger conditions.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容