Getting Started¶
See also
See also
Compiling¶
libyggdrasil is a C++20 library and requires at least GCC v9.3 to build. Additionally, there are a few setup requirements for the project:
Pre-Processor defines¶
Important
Make sure to apply the settings to both the gcc and g++ section!
Defines |
Description |
---|---|
|
|
|
Adds default peripheral definitions. Not supported when using a custom ioc |
C++ Compile Flags¶
Flag |
Description |
---|---|
|
Enables C++20 mode with GNU extensions |
|
Enables use of Concepts |
|
Enables printf float support in newlib |
Include Paths¶
Path |
Description |
---|---|
|
Main include path for libyggdrasil |
|
ARM DSP functions |
Source Paths¶
Path |
Description |
---|---|
|
Main source path for libyggdrasil |
Initialization¶
To use most core functionality of libyggdrasil, all hardware and peripheral drivers need to be initialized and libyggdrasil configured.
At the start of main after all hardware initialization has been done, the function yggdrasil_init()
needs to be called for this.