I'm looking for a C example of how to set up the timers on the
Analog Devices Blackfin to generate a periodic interrupt. My objective is to establish a counter that can be checked by foreground code for computing timeouts in millisecond resolution. I'd also be interested in seeing some kind of interrupt-driven driver code for the two UART's (which are supposed to be register-compatible with PC UART's). Pointers to relevant code or appnotes from ADI would be fine. There's some sample code in assembler for some of this but none in C. BTW, the SHARC VDSP headers include some macros for setting up the timers, but I haven't found comparable code in the Blackfin headers. The Blackfin headers declare an interrupt() API for installing interrupt handlers, just like the SHARC headers, but it also declares register_handler() which appears to do the same thing. I'm not sure why this duplication of function started. |
Blackfin sample C code
Started by ●February 3, 2003