Skip to content

Commit

Permalink
Merge pull request #1591 from db4ple/ovi40h7
Browse files Browse the repository at this point in the history
HMC1023 replaced construct with predefined macro
  • Loading branch information
df8oe committed Oct 21, 2018
2 parents 3ef16ac + 20cb419 commit 3d8787b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mchf-eclipse/hardware/uhsdr_hmc1023.c
Expand Up @@ -167,8 +167,7 @@ static void hmc1023_set_reg2_bits(uint8_t bits,uint8_t limit, uint32_t mask, uin

if ( (hmc1023.reg2 & shifted_mask) != shifted_bits)
{
hmc1023.reg2 &= ~shifted_mask;
hmc1023.reg2 |= shifted_bits;
MODIFY_REG(hmc1023.reg2,shifted_mask,shifted_bits);
hmc1023_ll_write(2,hmc1023.reg2);
}
}
Expand Down Expand Up @@ -249,8 +248,7 @@ void hmc1023_use_spi_settings(bool on)
const uint32_t target_mask = (HMC1023_REG1_USE_SPI_SETTINGS | HMC1023_REG1_FORCE_CAL_CODE);
if ((hmc1023.reg1 & target_mask) != target_bits)
{
hmc1023.reg1 &= ~target_mask;
hmc1023.reg1 |= target_bits;
MODIFY_REG(hmc1023.reg1, target_mask, target_bits);
hmc1023_ll_write(1,hmc1023.reg1);
}
}
Expand Down

0 comments on commit 3d8787b

Please sign in to comment.