Closed dhylands closed 8 years ago
I've updated to use the new ioregs macro. If this looks good, then I'd be happy to backport to the stm32f4 (since it's virtually identical to the stm32f7).
There are a couple of issues I've come across using the new macros.
1 - It would be nice if there was also a get/set of the entire register even though there are lots of sub-fields. 2 - I haven't figured out a good way to deal with the timer CCMRx registers. These are really a union depending on whether the channel is configured as an input or output. For now, I've just left it as a 32-bit field.
I rather like how the peripheral clocks are being dealt with in the stm32f1 port, so I think I'll convert the f7 port to do it that way.
It looks like I'm going to have to work on something else, so I probably won't get a chance to finish up my peripheral clock changes in the near future, so I think that this is as much as will get done for the F7 for now. Please let me know if there are any other small changes you want made.
Looks ok, thanks for working on this.
Tested on the STM32F7 Discovery board.