Merge branch 'chibios-21.11.x-wb' of github.com:WestberryTech/ChibiOS-Contrib into chibios-21.11.x-wb

This commit is contained in:
Joy 2022-08-19 17:24:50 +08:00
commit 3e96dd1083
1 changed files with 0 additions and 6 deletions

View File

@ -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;