@@ -27,7 +27,7 @@ static const opamp_channel_pins_t opamp_channels[] = {
27
27
{BSP_IO_PORT_00_PIN_05, BSP_IO_PORT_00_PIN_06, BSP_IO_PORT_00_PIN_07}, /* CH3 */
28
28
};
29
29
30
- bool OpampClass::initPins (uint8_t channel_mask) {
30
+ bool OpampClass::initPins (uint8_t const channel_mask) {
31
31
fsp_err_t err;
32
32
ioport_instance_ctrl_t ioport_ctrl {};
33
33
// Make sure to return false if nothing was given to initialize
@@ -53,7 +53,7 @@ bool OpampClass::initPins(uint8_t channel_mask) {
53
53
return true ;
54
54
}
55
55
56
- void OpampClass::initOpamp (OpampSpeedMode speed, uint8_t channel_mask) {
56
+ void OpampClass::initOpamp (OpampSpeedMode speed, uint8_t const channel_mask) {
57
57
uint8_t ampmc_val = 0U ;
58
58
/* setup amplifier speed mode within amplifier mode control */
59
59
/* for all boards, this is at bit position 7 with either 0 (lowspeed) or 1 (highspeed) */
@@ -85,7 +85,7 @@ bool OpampClass::begin(OpampSpeedMode speed) {
85
85
return this ->begin (1u << ARDUINO_DEFAULT_OPAMP_CHANNEL, speed);
86
86
}
87
87
88
- bool OpampClass::begin (uint8_t channel_mask, OpampSpeedMode speed) {
88
+ bool OpampClass::begin (uint8_t const channel_mask, OpampSpeedMode speed) {
89
89
if (!initPins (channel_mask)) {
90
90
return false ;
91
91
}
@@ -102,7 +102,7 @@ void OpampClass::end() {
102
102
R_OPAMP->AMPC = 0 ;
103
103
}
104
104
105
- void OpampClass::end (uint8_t channel_mask) {
105
+ void OpampClass::end (uint8_t const channel_mask) {
106
106
// deactivate given channels
107
107
R_OPAMP->AMPC &= ~channel_mask;
108
108
}
0 commit comments