Altera_Forum
Honored Contributor
21 years agolibs for NIOSII
Hi all, do anyone have found information about building a library for the niosII and how I can use this library in IDE projects? Thank you for help. Siegmar
Stephen,
I received the library documentation from my FAE yesterday. Everything looks good except the following: <div class='quotetop'>QUOTE </div> --- Quote Start --- This method of creating a shared common library with functions used by multiple projects can only be used for libraries which are not dependent on the HAL (Nios II Hardware Abstraction Layer) or other system library functions. To create such a shared set of functions, a software component must be created by following the documented process to create a HAL software component within the Nios II IDE directory structure.[/b] --- Quote End --- Correct me if I'm wrong, but I believe this says the generic code in my library can't access the hardware through any HAL fucntions. The only hardware I need to access is a PIO and an SPI. These don't really have HAL functions. Will I still be able to include the _regs.h files I need? If not, I guess I'll try making a HAL software component. Mine would be simliar to the PIO and SPI ones. In the PIO, there is nothing in the HAL directory and in the SPI the _INSTANCE and _INIT don't seem to do anything. I am assuming that the only reason they are in the SPI HAL files is because the SPI supplies a single function, while the PIO supplies nothing but the macros in the _regs.h file. Does this sound correct? Thanks again,