View Single Post
  #4   Spotlight this post!  
Unread 03-08-2015, 17:09
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,087
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Custom roboRIO HAL: Where to find C library for roboRIO fpga?

Quote:
Originally Posted by CodeYeti View Post
Thanks for the quick reply! I've actually already gotten that working (and will probably be using that for any actual code I'll write). What I want to do is do a proof-of-concept for writing my own HAL (i.e. interfacing directly with the NI fpga code, manipulating registers myself). The version of THIS that wpilib seems to use is here as far as I can see. What I'm seeing here is a C++ api to the actual FPGA stuff.

Now, with a little more searching on the ni site, I was able to find what appears to be the c support files that the user manual mentioned. They're VERY different from the C++ api, and don't seem to be something that will be kept up to date in the future, but they might work for now.

It would still be great, however, to find where wpilib is getting it's "ChipObject" C++ version of the fpga code. From the HAL readme, it seems that they get it from http://github.com/first/ni-libraries, but I don't have access to that, so it's not incredibly helpful. I wonder if they have the C api in there as well as the C++ one? One will never know.

If you're curious about what I'm doing, I'm one of the developers of zinc, a bare-metal embedded stack written in pure Rust. I'm hoping to adapt some of the stuff I've written there to do a proof-of-concept of a completely wpilib-free frc development environment.
The shared library files for that are provided directly by NI to the WPILib. The code for those is not public in order to keep the FPGA safe and fair for all teams. The actual builds of the libraries can be found here, but I highly doubt that you will be actual to get a copy of the actual code.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.