stm32f1xx-hal icon indicating copy to clipboard operation
stm32f1xx-hal copied to clipboard

RccBus should be public

Open bgamari opened this issue 4 years ago • 1 comments

Currently stm32f1xx_hal::rcc::RccBus is private, despite the associated Bus type being used in some public interfaces (e.g. GetBusFreq). This means it is impossible (AFAICT) to use these public interfaces while abstracting over peripherals. For instance, you might want to write:

<Timer::Bus as GetBusFreq>::get_timer_frequency(clocks)

while abstracting over Timer.

bgamari avatar Dec 11 '20 16:12 bgamari

There is some discussion on why this is the case in #161. I'll leave this open because there was some mention of making a public api around this in that PR

TheZoq2 avatar Jan 23 '21 09:01 TheZoq2