diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-03-26 19:27:37 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-04-11 16:56:55 -0400 |
commit | b70544a1fd713db6c9fb2cef773da2029cdc8c70 (patch) | |
tree | 4f3159d2e4d4c360458cf9210c2c2ab572eaebdb /libmaple/usb/usb_reg_map.c | |
parent | 66f75ca74ea11d0c242bd3773a7b31f07030c8e7 (diff) | |
download | librambutan-b70544a1fd713db6c9fb2cef773da2029cdc8c70.tar.gz librambutan-b70544a1fd713db6c9fb2cef773da2029cdc8c70.zip |
libmaple/pwr.h: Fix register bits (breaking change).
This is a backwards-incompatible change. It is necessary to fix an
error.
The register bit definitions are given as if they were masks, but
they're actually bit numbers. E.g., PWR_CR_DBP, which should be the
mask for DBP in the power control register PWR_CR, is actually the
number of the bit that should be masked.
Fix this by adding _BIT to the definitions and adding proper
masks. Also add a mask for the PVD level selection bits in
PWR_CSR. Don't add any mask values for particular voltages selected as
these are not portable.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/usb/usb_reg_map.c')
0 files changed, 0 insertions, 0 deletions