Automatically set ALTERNATE pin mode when setting alternate function
authorKeith Packard <keithp@keithp.com>
Fri, 23 Mar 2012 07:03:29 +0000 (00:03 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 29 Mar 2012 04:37:03 +0000 (21:37 -0700)
commit6337b5f522be11926a6490d7bb27a4f7795da569
tree7b7a7540c3d88dcc8993b9b243f6ba5a018eea74
parentc9e61a4f1f0ce5e5177a2252e8b7a02a578e77f1
Automatically set ALTERNATE pin mode when setting alternate function

When selecting an alternate function, set the pin to alternate mode as
well; there's no sense requiring two separate calls everywhere.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/stm32l.h