diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-05-12 13:00:48 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-05-12 13:00:48 -0600 |
commit | 8b0f3c04b993fd5fd5d81abee68c36ccb3bcfbf9 (patch) | |
tree | dafd8642debb0c9ffa03697a7d13816349935b93 /nuttx/include | |
parent | 088ea83de16b8961adb323d96b78fabf63f4b334 (diff) | |
download | nuttx-8b0f3c04b993fd5fd5d81abee68c36ccb3bcfbf9.tar.gz nuttx-8b0f3c04b993fd5fd5d81abee68c36ccb3bcfbf9.tar.bz2 nuttx-8b0f3c04b993fd5fd5d81abee68c36ccb3bcfbf9.zip |
Fix typo RBG -> RGB in several macros
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/lcd/ili9325.h | 1 | ||||
-rw-r--r-- | nuttx/include/nuttx/video/rgbcolors.h | 18 |
2 files changed, 9 insertions, 10 deletions
diff --git a/nuttx/include/nuttx/lcd/ili9325.h b/nuttx/include/nuttx/lcd/ili9325.h index 8d787fe49..dc6750337 100644 --- a/nuttx/include/nuttx/lcd/ili9325.h +++ b/nuttx/include/nuttx/lcd/ili9325.h @@ -51,7 +51,6 @@ /* ILI9325 LCD Register Addresses *****************************************************/ - #define ILI9325_DEVICE_CODE_REG 0x00 /* Driver Code Register */ #define ILI9325_START_OSC_CTRL 0x00 /* Start Oscillator Control */ #define ILI9325_DRIVER_OUTPUT_CTRL1 0x01 /* Start Oscillator Control */ diff --git a/nuttx/include/nuttx/video/rgbcolors.h b/nuttx/include/nuttx/video/rgbcolors.h index a4a9e4ff6..2b748c0e5 100644 --- a/nuttx/include/nuttx/video/rgbcolors.h +++ b/nuttx/include/nuttx/video/rgbcolors.h @@ -52,9 +52,9 @@ /* And these macros perform the inverse transformation */ -#define RBG24RED(rgb) (((rgb) >> 16) & 0xff) -#define RBG24GREEN(rgb) (((rgb) >> 8) & 0xff) -#define RBG24BLUE(rgb) ( (rgb) & 0xff) +#define RGB24RED(rgb) (((rgb) >> 16) & 0xff) +#define RGB24GREEN(rgb) (((rgb) >> 8) & 0xff) +#define RGB24BLUE(rgb) ( (rgb) & 0xff) /* This macro creates RGB16 (5:6:5) from 8:8:8 RGB: * @@ -68,9 +68,9 @@ /* And these macros perform the inverse transformation */ -#define RBG16RED(rgb) (((rgb) >> 8) & 0xf8) -#define RBG16GREEN(rgb) (((rgb) >> 3) & 0xfc) -#define RBG16BLUE(rgb) (((rgb) << 3) & 0xf8) +#define RGB16RED(rgb) (((rgb) >> 8) & 0xf8) +#define RGB16GREEN(rgb) (((rgb) >> 3) & 0xfc) +#define RGB16BLUE(rgb) (((rgb) << 3) & 0xf8) /* This macro creates RGB8 (3:3:2) from 8:8:8 RGB */ @@ -79,9 +79,9 @@ /* And these macros perform the inverse transformation */ -#define RBG8RED(rgb) ( (rgb) & 0xe0) -#define RBG8GREEN(rgb) (((rgb) << 3) & 0xe0) -#define RBG8BLUE(rgb) (((rgb) << 6) & 0xc0) +#define RGB8RED(rgb) ( (rgb) & 0xe0) +#define RGB8GREEN(rgb) (((rgb) << 3) & 0xe0) +#define RGB8BLUE(rgb) (((rgb) << 6) & 0xc0) /* This macro converts RGB24 (8:8:8) to RGB16 (5:6:5): * |