Activity Charts
When designing an activity chart, activities are broken down into sub-activities, which are further broken down into their sub-activities, and so on, until no further decomposition is possible. Activities that cannot be broken down further are considered “basic” activities.
The code generated for an activity is a function (or a C preprocessor macro). For a non-basic activity, the function calls each of the subactivity functions of the activity. For a basic activity, the function contains the implementation code.
Activities can represent functions, tasks, or ISRs (Interrupt Service Routines).