Hi, I'm working on a relatively simple PRU project where I want to use the IEP peripheral. I'd prefer to develop this in C, but I can't find any way of accessing the IEP or other peripherals without using inline assembly,and this is what I've done. It seems like a big compromise though and I'm wondering if there's a way round this - it kind of defeats the point of using C in the first place.
Also using inline assembly I have a few issues, e.g. 1) the inline assembly doesn't recognise #define-d C constants 2) I'm having issues with the C compiler complaining about assembly labels if they're not at the beginning of the __asm__... block. I know the C compiler documentation advises against using labels, but again I can't see a way around this - I need to poll an IEP status flag in a loop to check for an overflow. Anyway, I can give more concrete examples if that's helpful, but I just wanted to get some general advice on how to approach this first. Thanks very much, Luke -- 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/8cf6d282-7806-4b3e-9b96-a5c17337ba1d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
