Skip to content

Commit

Permalink
Update hal_pal_lld.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Joy Lee authored Jul 13, 2022
1 parent 7aa5e64 commit ccd4fea
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions os/hal/ports/WB32/LLD/GPIOv1/hal_pal_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ void _pal_lld_setgroupmode(ioportid_t port, ioportmask_t mask, iomode_t mode) {
uint32_t altr = (mode & PAL_WB32_ALTERNATE_MASK) >> 7;
uint32_t current = (mode & PAL_WB32_CURRENT_MASK) >> 11;

#ifdef SPI_SCK_PIN
if ((PAL_PORT(SPI_SCK_PIN) == port) && (PAL_PORT_BIT(PAL_PAD(SPI_SCK_PIN)) & mask)) {
current |= (PAL_WB32_CURRENT_LEVEL3 >> 11);
}
#endif

port->CFGMSK = ~mask;
port->MODER = (moder & 0x3) * 0x55555555U;
port->OTYPER = (otyper & 0x1) * 0xFFFFFFFFU;
Expand Down

0 comments on commit ccd4fea

Please sign in to comment.