-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bad examples #166
Comments
https://github.com/libopencm3/libopencm3-examples/blob/master/examples/stm32/f4/stm32f4-discovery/tick_blink/tick_blink.c#L42 uses an implementation that doesn't handle wrapping correctlky too |
Fails to build |
Works with current code as is in repo? had you updated the library ahead or something? (Also, that's just straight up breakage. this ticket is more for examples that might work, but aren't good examples to copy) |
I also pulled the library to latest and it still builds fine, are you sure you're looking at latest code? |
Ok, I remoted the libopencm3 library to upstream, fetched it and pulled master on the sub module to latest. That got rid of that build error but still has a warning about flash_erase_page() on And I submitted a PR with a fix for the msleep issue in tick_blink |
yeah, the fallthrough warnings are a different matter. In one case we even had a comment saying, "fall through" but it was't the style that gcc recognized :) |
https://github.com/libopencm3/libopencm3-examples/blob/master/examples/stm32/f1/stm32-h103/exti_rising_falling/exti_rising_falling.cdoes not mention the AFIO requirements if you happen to want to change to another port for the EXTIThat's wrong, exti_select_source() sets the SYSCFG or the AFIO registers depending on target. original reported bug was misidagnosed.
examples/stm32/f1/other/usb_hid/usbhid.c and lots of others copied there use HSI for USB on F1, which is really not supported, even though it sometimes works. Should replace them all with hse8_72, and usb div 1.5 to show the "right" way of doing it
The text was updated successfully, but these errors were encountered: