I have seen an example on Github that are printing characters to a GLCD by chprintf(),
Code: Select all
chprintf((BaseSequentialStream *)&GLCDD1, "chTimeNow: %d", chTimeNow());Like this.
I have read the source of GLCD driver and couldn't find any relation between BaseSequentialStream and GLCD driver.
Can you please explain this kind of type casting by your similar experiences.
https://github.com/miguelmoreto/ChibiOS-LCD-Driver/blob/master/glcd.c
https://github.com/miguelmoreto/ChibiOS-LCD-Driver/blob/master/demos/drawing/main.c
GLCD driver and main.c can be found here. You can have a look if you have some time
Thank you