Author Topic: STM32's HAL... Anything I can do to fix this outrageous bloat?! (pic)  (Read 21216 times)

0 Members and 1 Guest are viewing this topic.

Offline ralphd

  • Frequent Contributor
  • **
  • Posts: 445
  • Country: ca
    • Nerd Ralph
Re: STM32's HAL... Anything I can do to fix this outrageous bloat?! (pic)
« Reply #50 on: October 07, 2015, 09:43:45 pm »
I actually like it. You just create a flash array of those structs to configure the pins.
Easy to read, easy to switch, easy to diff.
Yes it takes a bit flash. But it would take an equal (if not larger) amount of flash if you write all the register configure lines separate.
But usually only a few of the registers need to be written.
Unthinking respect for authority is the greatest enemy of truth. Einstein
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4067
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: STM32's HAL... Anything I can do to fix this outrageous bloat?! (pic)
« Reply #51 on: October 08, 2015, 05:48:41 am »
That depends if you want to set unused pins into a more energy efficient state.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf