Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Hard coded GUIX Hello World LCD initialization.

$
0
0

Hello,

I am disappointed with quality and coding good practice of GUIX Hello World example project https://www.renesas.com/cn/zh/software/D6002676.html

In lcd_setup.c file in function lcd_read is hard coded this:

g_ioport_on_ioport.pinCfg(IOPORT_PORT_01_PIN_02,(IOPORT_CFG_PORT_DIRECTION_OUTPUT | ((g_spi_lcdc.p_cfg->clk_polarity == SPI_CLK_POLARITY_HIGH) ? IOPORT_LEVEL_LOW : IOPORT_LEVEL_HIGH)));
R_BSP_SoftwareDelay(5,BSP_DELAY_UNITS_MICROSECONDS);
g_ioport_on_ioport.pinCfg(IOPORT_PORT_01_PIN_02,(IOPORT_CFG_PERIPHERAL_PIN | IOPORT_PERIPHERAL_SCI0_2_4_6_8));

I have changed SCI to SPI and LCD stopped working. I spent many hours to find issue. Because I am beginner with SSP I thought that is my fault and I assumed that examples are as high quality as SSP is.  Why does Renesas promote configurable, scalable SSP, fast time to start developing application and puts those bad practises into code, especially without mentioning about it in the document?

I wanted to make use of Wi-Fi, mqtt, LCD at high level and save time but I had to investigate at low level why interfaces which have compatible api don't work exchangeable.


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>