Fixup another level of compiler warnings, add _U() definition
This commit is contained in:
@ -8,5 +8,5 @@
|
||||
#include "hardware/vreg.h"
|
||||
|
||||
void vreg_set_voltage(enum vreg_voltage voltage) {
|
||||
hw_write_masked(&vreg_and_chip_reset_hw->vreg, voltage << VREG_AND_CHIP_RESET_VREG_VSEL_LSB, VREG_AND_CHIP_RESET_VREG_VSEL_BITS);
|
||||
hw_write_masked(&vreg_and_chip_reset_hw->vreg, ((uint)voltage) << VREG_AND_CHIP_RESET_VREG_VSEL_LSB, VREG_AND_CHIP_RESET_VREG_VSEL_BITS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user