Open
Description
Made a ticket for this as IDK when i'll be able to get to it, someone might before me
#if defined(CH32X03x)
#define funPinMode( pin, mode ) { *((&GpioOf(pin)->CFGLR)+((pin&0x8)>>3)) = ( (*((&GpioOf(pin)->CFGLR)+((pin&0x8)>>3))) & (~(0xf<<(4*((pin)&0x7))))) | ((mode)<<(4*((pin)&0x7))); }
^ doesn't work with pins > 7
Also the GPIO_CFGLR_PIN_MODE_Typedef is incorrect.
Metadata
Metadata
Assignees
Labels
No labels