-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
Maslov Nikita edited this page Mar 16, 2014
·
3 revisions
All include files of library could be accessed as <lib/cerebellum/*>.
Cerebellum library uses Antares startup code if it is possible, so, if you use it too, you can forget about manual initialization of your modules.
In case you don't use Antares startup system, you should init libraries manually (if it is required by library). Generally, init functions named as module_name_init().
For example, to init Stepper module, type in your main.c:
stepper_init();Also, in some modules, it is necessary to init just before or after global interrupts are enabled. These cases are described in modules documentation. (Again, if you use Antares startup, it solves these problems).