hackndev / zinc

The bare metal stack for rust
zinc.rs
Apache License 2.0
1k stars 100 forks source link

Add support for STM32F7 #390

Closed dhylands closed 8 years ago

dhylands commented 8 years ago

Tested on the STM32F7 Discovery board.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling 13cdf0670970ba338fe9a0a5dbe0488c3508b005 on dhylands:add-stm32f7-support into 9550c813fc1556bd85fec5834a3f8eba19f51cc3 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling 13cdf0670970ba338fe9a0a5dbe0488c3508b005 on dhylands:add-stm32f7-support into 9550c813fc1556bd85fec5834a3f8eba19f51cc3 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling 159130e2523000ce96090baa9ba5e4e340ba189f on dhylands:add-stm32f7-support into 9550c813fc1556bd85fec5834a3f8eba19f51cc3 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling 159130e2523000ce96090baa9ba5e4e340ba189f on dhylands:add-stm32f7-support into 9550c813fc1556bd85fec5834a3f8eba19f51cc3 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling 159130e2523000ce96090baa9ba5e4e340ba189f on dhylands:add-stm32f7-support into 9550c813fc1556bd85fec5834a3f8eba19f51cc3 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling 9fe880323f72a74b1fe189ebc3232c5c2019c39c on dhylands:add-stm32f7-support into 9550c813fc1556bd85fec5834a3f8eba19f51cc3 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling 9fe880323f72a74b1fe189ebc3232c5c2019c39c on dhylands:add-stm32f7-support into 9550c813fc1556bd85fec5834a3f8eba19f51cc3 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling 9fe880323f72a74b1fe189ebc3232c5c2019c39c on dhylands:add-stm32f7-support into 9550c813fc1556bd85fec5834a3f8eba19f51cc3 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling 0c250818ed0127326e33dd7c63c69c023ba88661 on dhylands:add-stm32f7-support into 13bf655fafa807821608ab69b4486a5fee8669d3 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling 0c250818ed0127326e33dd7c63c69c023ba88661 on dhylands:add-stm32f7-support into 13bf655fafa807821608ab69b4486a5fee8669d3 on hackndev:master.

dhylands commented 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.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling abf51f319b92c13bfbcd359a7f5d4903696edd67 on dhylands:add-stm32f7-support into 13bf655fafa807821608ab69b4486a5fee8669d3 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.397% when pulling abf51f319b92c13bfbcd359a7f5d4903696edd67 on dhylands:add-stm32f7-support into 13bf655fafa807821608ab69b4486a5fee8669d3 on hackndev:master.

dhylands commented 8 years ago

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.

dhylands commented 8 years ago

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.

farcaller commented 8 years ago

Looks ok, thanks for working on this.