Skip to content

Commit

Permalink
Merge branch 'master' of github.com:stm32-rs/stm32f1xx-hal into timer…
Browse files Browse the repository at this point in the history
…_additions
  • Loading branch information
Windfisch committed Apr 16, 2021
2 parents 9460cf0 + 0442ccb commit ba66fda
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Support for OpenDrain pin configuration on SPI CLK and MOSI pins
- LSB/MSB bit format selection for `SPI`
- Support for CAN peripherals with the `bxcan` crate
- Add DAC, UART4, UART5 clock in RCC for the f103 high density line
- `start_raw` function and `arr`, `bsc` getters for more fine grained
control over the timer.

Expand Down
6 changes: 6 additions & 0 deletions examples/usb_serial.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
//! CDC-ACM serial port example using polling in a busy loop.
//! Target board: Blue Pill
//!
//! Note:
//! When building this since this is a larger program,
//! one would need to build it using release profile
//! since debug profiles generates artifacts that
//! cause FLASH overflow errors due to their size
#![no_std]
#![no_main]

Expand Down
3 changes: 3 additions & 0 deletions src/rcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,9 @@ bus! {
#[cfg(all(feature = "stm32f103", feature = "high",))]
bus! {
ADC3 => (APB2, adc3en, adc3rst),
DAC => (APB1, dacen, dacrst),
UART4 => (APB1, uart4en, uart4rst),
UART5 => (APB1, uart5en, uart5rst),
}
bus! {
ADC1 => (APB2, adc1en, adc1rst),
Expand Down

0 comments on commit ba66fda

Please sign in to comment.