Ug, I see rust also uses generic types similar to C++. . .

On Mon, Aug 8, 2016 at 4:04 PM, William Hermans <[email protected]> wrote:

> Looks pretty good. I've never actually seen rust in the wild, and I'm not
> even sure I've even heard of the language until now . . . Since there seems
> to be a language born every 5 seconds now days. I've personally no interest
> in learning all.
>
> May I make a suggestion ?
>
> An example that blinks the on board USR LEDs could be handy. In that a
> person could run the code without having to hook up any external
> electronics. I know this is nothing super special, but it would allow
> beginner hobbyist to see something right away.
>
> I've been considering writing a 'bit pattern interface' between userspace
> and the PRU's myself. In order to control the on board USR LEDs. Just as a
> demonstration. But alas my assembly skills are far rustier( no pun intended
> ) than I care to admit. I've also even considered writing a modified
> uio_pruss driver. . .but first I would have to read up on several things.
> Then, find the time.
>
> In the meantime I think I'll try to learn something form what you've done
> here. Thanks for sharing !
>
> On Mon, Aug 8, 2016 at 3:18 PM, <[email protected]> wrote:
>
>> Hello all, just wanted to announce the release of a Rust relative to the
>> prussdrv C library, available at:
>> https://github.com/sbarral/prusst
>> (see also the API docs: https://sbarral.github.io/prusst-doc/prusst/)
>>
>> This initially started as a modest effort to wrap prussdrv, but the
>> process made me realize how difficult it is to infer what prussdrv is doing
>> under the hood without analysing the source code (is this 'event' argument
>> a system event or an event out? Does this function ever actually return -1
>> and if yes when? What exactly is prussdrv_pru_clear_event() doing?).
>> So I ended up contemplating the general design of a more explicit UIO
>> interface that would exploit the Rust type system to better codify the
>> work-flow. The result is a native Rust library that does not actually link
>> to prussdrv but offers a very similar functionality.
>>
>> I have strived to produce a clean API and implementation, but keep in
>> mind that this is a 0.1 release so I am definitely open to criticism from
>> the PRU experts here. Even if you are not a Rust aficionado, suggestions
>> for improvements or new functionality are very appreciated.
>>
>> Serge
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/beagleboard/bfef07e8-af2e-4547-a943-d33e4397234f%40googlegroups.com
>> <https://groups.google.com/d/msgid/beagleboard/bfef07e8-af2e-4547-a943-d33e4397234f%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CALHSORpa55x_FY0N_i6U3RXP7pjppAsCx%3DhUFMzKKEJac2NmzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to