Traits for STM32 pin functions

This article presents another example of using trait templates to help us not shoot ourselves in the foot with invalid pin assignments. If this means nothing to you please take a look Traits templates 101. If it all looks spookily familiar, perhaps you already read Traits for wake-up pins. The comments below do present essentiallyContinue reading “Traits for STM32 pin functions”

Datasheets in databases

I focus on STM32 microprocessors in the discussion below, but the ideas could apply to any range of devices. Background I have spent a lot of time in recent years trawling through the datasheets, reference manuals and programming manuals for STM32 microprocessors. Mostly for STM32F4s, but also for STM32F0s. These documents are incredibly useful, andContinue reading “Datasheets in databases”

Traits for wake-up pins

This is a real example from an embedded project I’ve been working on. The goal was to convert a potential run time error into a compile time error. If you haven’t done so already, please take a look at Traits templates 101, which introduces some of the ideas discussed below. The scenario The device isContinue reading “Traits for wake-up pins”