hi ihave this librarie thats work wtih stm32fxxx but when i try to use it with stm32g030 it give me error when compiling in this part of the code
i have uploder the librarie in attachments
i use plattformio CRL, CRH register is not used on stm32g i i tried my best and failed to figure the problem
iam still newb so someone help me please
#if(LCD_RST<
#define _rst_Out() LCD_PORT->CRL &=~(0xF<<(4*LCD_RST));\
LCD_PORT->CRL |= (0x3<<(4*LCD_RST));
#else
#define _rst_Out() LCD_PORT->CRH &=~(0xF<<(4*LCD_RST));\
LCD_PORT->CRH |= (0x3<<(4*LCD_RST));
#endif
#if(LCD_CS<
#define _cs_Out() LCD_PORT->CRL &=~(0xF<<(4*LCD_CS));\
LCD_PORT->CRL |= (0x3<<(4*LCD_CS));
#else
#define _cs_Out() LCD_PORT->CRH &=~(0xF<<(4*LCD_CS));\
LCD_PORT->CRH |= (0x3<<(4*LCD_CS));
#endif
#if(LCD_SDA<
#define _sda_Out() LCD_PORT->CRL &=~(0xF<<(4*LCD_SDA));\
LCD_PORT->CRL |= (0x3<<(4*LCD_SDA));
#define _sda_In() LCD_PORT->CRL &=~(0xF<<(4*LCD_SDA));\
LCD_PORT->CRL |= (0x8<<(4*LCD_SDA));
#else
#define _sda_Out() LCD_PORT->CRH &=~(0xF<<(4*LCD_SDA));\
LCD_PORT->CRH |= (0x3<<(4*LCD_SDA));
#define _sda_In() LCD_PORT->CRH &=~(0xF<<(4*LCD_SDA));\
LCD_PORT->CRH |= (0x8<<(4*LCD_SDA));
#endif
#if(LCD_CLK<
#define _clk_Out() LCD_PORT->CRL &=~(0xF<<(4*LCD_CLK));\
LCD_PORT->CRL |= (0x3<<(4*LCD_CLK));
#else
#define _clk_Out() LCD_PORT->CRH &=~(0xF<<(4*LCD_CLK));\
LCD_PORT->CRH |= (0x3<<(4*LCD_CLK));
#endif
#define _Init_GPIO() { _rst_Out(); _cs_Out(); _sda_Out(); _clk_Out();}
#endif
#endif /* NOKIA1661_HW_H_ */