Skip to content

Release 3.4.0: minor fixes and new features

Compare
Choose a tag to compare
@andysworkshop andysworkshop released this 10 Aug 10:39
· 463 commits to master since this release

Release 3.4.0 contains some minor fixes accrued since the previous release and a few new features.

Timer channel feature templates

The features used by a timer channel can now be declared as a list of feature types within the channel template. This is a breaking change, however the changes required by you are very minor indeed. You used to declare a timer channel like TimerChannel2Feature. In this version you must declare it as TimerChannel2Feature<>. No further changes are required but I encourage you to make use of the feature types.

Here's an example of using the new declarative features taken from the timer_input_capture example:

    TimerChannel3Feature<               // we're going to use channel 3
      TimerChannelICRisingEdgeFeature,  // rising edge trigger
      TimerChannelICDirectTiFeature,    // direct connection
      TimerChannelICPreScaler1Feature,  // prescaler of 1
      TimerChannelICFilterFeature<0>    // no filter
    >

This declarative method deprecates the initCapture and initCompare timer channel methods.

cmake support

Thanks to Mike Purvis stm32plus now supports the cmake build system. Check out the code here if you'd like to use this build system in preference to the default scons.

GNU Tools for ARM Embedded Processors now the preferred toolchain

After spending several months using this toolchain and having performed a thorough regression test against the darkest corners of the library I am now making the GNU Tools for ARM Embedded Processors the default toolchain in preference to Sourcery g++ Lite. The killer feature and the reason for this change is that the GNU Tools toolchain supports the hardware FPU in the F4 and Sourcery g++ Lite does not.

Bug fixes

Click here for a full list of issues closed in this release.