Re: [libopencm3-devel] Random question vector dispatch

2014-05-30 Thread Michael Smith
On 30 May 2014, at 2:01 pm, Chuck McManis wrote: > What I really wanted was something like nvic_attach_interrupt(USART6, > uart_interrupts); I could give it a signature like nvic_attach_interrupt(enum > NVIC_SOURCE src, (void)(*vector)(void)) and do some type checking of the > validity of the

[libopencm3-devel] Random question vector dispatch

2014-05-30 Thread Chuck McManis
Could we do it better? So I was looking at vector dispatch. In part because I was looking at the half dozen or so startup files and multitude of pre-encoded vector files in the library. I wondered if all the processors of a given family could have a single startup file. The answer is yes if you