Commit Graph

32 Commits

Author SHA1 Message Date
Xiang Xiao
7990f90915 Indent the define statement by two spaces
follow the code style convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-21 09:52:08 -03:00
Michael Jung
9140693567 Add lcd_dev_s pointer to lcd_planeinfo_s
In order to support multiple LCD instances per board, add a pointer from
lcd_planeinfo_s to the lcd_dev_s which it belongs to.  Also enhance the
putrun, getrun, putarea and getarea methods to pass through the
lcd_dev_s pointer to the respective device driver.

Port all LCD device drivers to this lcd_planeinfo_s extension.

Enhance SSD1306 driver to support multiple LCDs.

Signed-off-by: Michael Jung <michael.jung@secore.ly>
2022-06-21 21:33:23 +08:00
Gustavo Henrique Nihei
330eff36d7 sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
Alin Jerpelea
8366a20be8 graphics: Author: Gregory Nutt: update licenses to Apache
Update files from Gregory Nutt to Apache 2.0 license.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-02-07 11:09:03 -03:00
Alin Jerpelea
f177951c39 graphics: fix nxstyle errors
Fix nxstyle errors to pass CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-02-07 11:09:03 -03:00
Xiang Xiao
cde88cabcc Run codespell -w with the latest dictonary again
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-23 22:27:46 +01:00
Xiang Xiao
6a3c2aded6 Fix wait loop and void cast (#24)
* Simplify EINTR/ECANCEL error handling

1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx

* Unify the void cast usage

1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
Gregory Nutt
1567b82429 Make sure that labeling is used consistently in all function headers (part 2). 2018-02-01 12:03:55 -06:00
Gregory Nutt
749eb6b7cd Update README; Remove comment blocks before empty sections. 2017-01-08 11:36:06 -06:00
Gregory Nutt
06cd5b2fcc mm, audio, crypto, graphics: Fix various spacing/alignment issues 2015-10-08 09:10:22 -06:00
Gregory Nutt
bee0eda68c Make some file section headers more consistent with standard 2015-04-08 08:32:05 -06:00
patacongo
7a9457bb07 Email address change in nuttx/
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5145 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 18:32:24 +00:00
patacongo
976c9cf3ad Fix a divide-by-zero error in the trapezoid drawing logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4807 42af7a65-404d-4744-a932-0658087f49c3
2012-06-06 18:07:49 +00:00
patacongo
57f1567dc2 Fixes from last changes when built with CodeSourcery, STM32, LCD, 16-bit color
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4063 42af7a65-404d-4744-a932-0658087f49c3
2011-10-25 01:02:49 +00:00
patacongo
dbf37c6315 Add logic to read from graphics memory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4057 42af7a65-404d-4744-a932-0658087f49c3
2011-10-22 18:13:04 +00:00
patacongo
703befb4a2 Completes test of line/trapezoid drawing routines
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3842 42af7a65-404d-4744-a932-0658087f49c3
2011-08-04 01:25:58 +00:00
patacongo
dc3c6ea49f Fix numerous errors in trapezoid rendering and wide line drawing algorithms
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3841 42af7a65-404d-4744-a932-0658087f49c3
2011-08-03 21:49:31 +00:00
patacongo
b9adbc1d99 Fix numerous errors in trapezoid rendering and wide line drawing algorithms
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3840 42af7a65-404d-4744-a932-0658087f49c3
2011-08-03 16:04:48 +00:00
patacongo
ad877bf218 Add low level routines to draw single pixels (not used yet)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3833 42af7a65-404d-4744-a932-0658087f49c3
2011-07-31 17:33:24 +00:00
patacongo
bc4d0f1167 Move NX header files to include/nuttx/nx
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3816 42af7a65-404d-4744-a932-0658087f49c3
2011-07-24 20:49:01 +00:00
patacongo
1c5ab5f894 P14201 driver now uses new SPI cmddata method
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3158 42af7a65-404d-4744-a932-0658087f49c3
2010-12-04 01:56:50 +00:00
patacongo
55b8006c2d Fixes a couple of display artifacts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2686 42af7a65-404d-4744-a932-0658087f49c3
2010-05-20 02:12:48 +00:00
patacongo
9eaf3e665f More NX LCD fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2624 42af7a65-404d-4744-a932-0658087f49c3
2010-04-23 03:29:51 +00:00
patacongo
bc80135786 Fix a couple more LCD bugs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2622 42af7a65-404d-4744-a932-0658087f49c3
2010-04-21 03:24:36 +00:00
patacongo
179212d2ab Code complete for NX for LCD
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2610 42af7a65-404d-4744-a932-0658087f49c3
2010-04-18 02:56:15 +00:00
patacongo
f1fe3b9f88 Progress on copy rectangle
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2608 42af7a65-404d-4744-a932-0658087f49c3
2010-04-17 20:38:40 +00:00
patacongo
c6b279bab4 Fix move rectangle logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2607 42af7a65-404d-4744-a932-0658087f49c3
2010-04-17 18:59:12 +00:00
patacongo
58c075fc9c Fill trapezoid for LCD
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2606 42af7a65-404d-4744-a932-0658087f49c3
2010-04-17 18:08:39 +00:00
patacongo
816cb81e95 Rectangular fills compile for LCD
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2605 42af7a65-404d-4744-a932-0658087f49c3
2010-04-17 16:00:58 +00:00
patacongo
23763aacc0 1st round of fixes for LCD build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2604 42af7a65-404d-4744-a932-0658087f49c3
2010-04-17 14:46:13 +00:00
patacongo
239310f5ac update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2601 42af7a65-404d-4744-a932-0658087f49c3
2010-04-17 11:42:47 +00:00
patacongo
cfb3ffb09c Framework for LCD rasterizers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2598 42af7a65-404d-4744-a932-0658087f49c3
2010-04-17 03:52:05 +00:00