AutoSAR Configuration and Practice (Basics) 1.4 Introduction to Runnable

Introduction to Runnable

->Return to general directory<-

1. Introduction to Runnable

  • As introduced in the previous chapter, SWC can be regarded as a C file, then Runnable forms part of SWC and can be understood as a function in the .c file.
  • When using the DaVinci tool to generate code, Runnable is an empty function, requiring users to manually implement specific logic and functions.
  • Runnable can be triggered, such as by initialization Task (On Init), timer (Period), operation call (On Invoke operation) or received data (Data Reception), etc.

2. The position and corresponding relationship of Runnable in SWC

Runnable is located in SWC. There can be multiple Runnables in one SWC. Refer to the figure below:

Guess you like

Origin blog.csdn.net/nihaoljq2010/article/details/132053120