SRTOS
Loading...
Searching...
No Matches
config.h File Reference

System configuration for SRTOS. More...

#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include "mcu_macros.h"
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void configureAll ()
 This function will be called in the main() function of the user's code before the scheulder is started. It will call every configuration function defined in config.c.

Detailed Description

System configuration for SRTOS.

Declares configuration routines executed before the scheduler starts. Users can define hardware and peripheral initialization functions in config.c and call them through configureAll().

Definition in file config.h.

Function Documentation

◆ configureAll()

void configureAll ( )

This function will be called in the main() function of the user's code before the scheulder is started. It will call every configuration function defined in config.c.

Note
SRTOS is designed with configuration in mind, so users are able to create configuration functions in config.c, and call them in this function. Users can add and delete functions calls from this function as needed.

Definition at line 111 of file config.c.

112{
113 configureClock ();
114 configureSystickInterrupts ();
115 configureBlueLED ();
116 configureGreenLED ();
117 configureOrangeLED ();
118 configureInterruptPriorities ();
119}
Here is the caller graph for this function: