Forum Discussion
Altera_Forum
Honored Contributor
21 years agoThe source for the newlib shipped with the HAL is in $NIOS2KIT/bin/nios2-gnutools/src/newlib/newlib. You'll need to search for the file you want below there.
I wouldn't recommend using a different version of newlib since doing this can sometimes cause subtle bugs. But as slacker has pointed out, usleep is implemented in the HAL rather than in newlib. There is no mmap function in the HAL because we don't have different memory spaces for kernel and user so using just the standard read/write functions is just as efficient.