View Single Post
  #9   Spotlight this post!  
Unread 06-08-2015, 05:51
CodeYeti's Avatar
CodeYeti CodeYeti is offline
FRC Addict
AKA: Matt Coffin
FRC #0662 (Rocky Mountain Robotics)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Colorado
Posts: 81
CodeYeti is an unknown quantity at this point
Re: Custom roboRIO HAL: Where to find C library for roboRIO fpga?

Quote:
Originally Posted by jhersh View Post
Those C bindings are for a different FPGA image running on the roboRIO. That API and that FPGA are designed to closely mimic the myRIO counterparts. This will certainly be updated in future years (it was only released yesterday!). However, I don't believe it is what you are looking for.
Yea I definitely see that now. Feeling pretty dumb.

Quote:
Originally Posted by jhersh View Post
That's actually what I would recommend. Except not manually parsed. Use the NiFpga API for accessing registers. That's all the ChipObject does.
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++.
__________________
Team 662 - Student/Programming VP/Driver - (2011-2013) - 43-31-2
Team 662 - Mentor - (2015-present) - 0-0-0