![]() |
LibSpindle-C-Library 1.0
Library Code documentation
|
The library is written with a minimum set of compiler dependencies to make it portable on most toolchains and most compilers which are able to compile C. There are no GCC attributes or MSVC pragmas included in the code furthermore there are no weak functions or other non ISO-C language keywords which are not parsable from all compilers. To include the library in a project, the following page helps to do the job and can be used as a step by step quick porting guide.
when porting the platform functions, it is not required to execute anything in the SpindlePhysicalParams_t[setDirection] function, because the setDutyCycle function and the enaPWM function is called directly after the setDirection function. So it is sufficient to only store a variable value anywhere and interpret it later in the setDutyCyle function!