|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Custom roboRIO HAL: Where to find C library for roboRIO fpga?
Quote:
I found you! Quote:
Quote:
|
|
#2
|
||||
|
||||
|
Re: Custom roboRIO HAL: Where to find C library for roboRIO fpga?
Quote:
Any chance of getting the generated C API for the FRC roboRIO FPA? The ioreg macro I've been working on for zinc is fairly hard-coded to use compiler intrinsic memset, etc. to set raw memory locations rather than using an api, so a comprehensive update would be required to get it to use NiFpga_WriteU8 and friends. The process would be greatly simplified by having the raw C bindings as well. Admittedly, the WPIlib HAL is pretty darn good, but it would be wonderful to have around purely for experimentation and fun-having purposes. There's no way I'd be letting my team develop in Rust for the actual competition anyways, teaching a bunch of high-schoolers Java is hard enough, let alone a language that's (sometimes) more complex than C++. |
|
#3
|
|||
|
|||
|
Re: Custom roboRIO HAL: Where to find C library for roboRIO fpga?
You might try this tool on our website:
http://www.ni.com/download/fpga-inte...-14.0/4946/en/ However, it doesn't support fixed-point or structured registers, so it won't generate a complete API in C. The rest of the API that uses FXP and structured registers would have to be added afterward. As for the C++ generator that we currently use, only C++ and Java were ever supported, and Java support has been disabled ever since the WPILib HAL replaced the need for it. I think you should either use the generator I linked above and manually add accessors for any missing-but-needed-by-you registers or you should write a C wrapper around the C++ chip object library that the HAL uses for at least the registers you care about. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|