]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_A5_SAMA5D2x_Xplained_IAR/AtmelFiles/utils/lcd_color.h
Add SAMA5D2 Xplained IAR demo.
[freertos] / FreeRTOS / Demo / CORTEX_A5_SAMA5D2x_Xplained_IAR / AtmelFiles / utils / lcd_color.h
diff --git a/FreeRTOS/Demo/CORTEX_A5_SAMA5D2x_Xplained_IAR/AtmelFiles/utils/lcd_color.h b/FreeRTOS/Demo/CORTEX_A5_SAMA5D2x_Xplained_IAR/AtmelFiles/utils/lcd_color.h
new file mode 100644 (file)
index 0000000..506ad2a
--- /dev/null
@@ -0,0 +1,197 @@
+/* ----------------------------------------------------------------------------\r
+ *         SAM Software Package License\r
+ * ----------------------------------------------------------------------------\r
+ * Copyright (c) 2015, Atmel Corporation\r
+ *\r
+ * All rights reserved.\r
+ *\r
+ * Redistribution and use in source and binary forms, with or without\r
+ * modification, are permitted provided that the following conditions are met:\r
+ *\r
+ * - Redistributions of source code must retain the above copyright notice,\r
+ * this list of conditions and the disclaimer below.\r
+ *\r
+ * Atmel's name may not be used to endorse or promote products derived from\r
+ * this software without specific prior written permission.\r
+ *\r
+ * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR\r
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE\r
+ * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,\r
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,\r
+ * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+ * ----------------------------------------------------------------------------\r
+ */\r
+\r
+#ifndef COLOR_H\r
+#define COLOR_H\r
+\r
+/**\r
+ * \file\r
+ *\r
+ * RGB 24-bits color table definition.\r
+ *\r
+ */\r
+\r
+#define color_t uint32_t\r
+\r
+/*\r
+ * RGB 24 Bpp\r
+ */\r
+\r
+// From HTML color names\r
+// 140 color names are defined in the HTML and CSS color specification\r
+//   (17 standard colors plus 123 more).\r
+// The table below lists them all, along with their hexadecimal values.\r
+\r
+// The 17 standard colors are: aqua, black, blue, fuchsia, gray, green,\r
+// lime, maroon, navy, olive, orange, purple, red, silver, teal, white,\r
+// and yellow.\r
+\r
+#define COLOR_AliceBlue         0xF0F8FF\r
+#define COLOR_AntiqueWhite      0xFAEBD7\r
+#define COLOR_Aqua              0x00FFFF\r
+#define COLOR_Aquamarine        0x7FFFD4\r
+#define COLOR_AZUR              0xF0FFFF\r
+#define COLOR_BEIGE             0xF5F5DC\r
+#define COLOR_Bisque            0xFFE4C4\r
+#define COLOR_BLACK             0x000000\r
+#define COLOR_BlanchedAlmond    0xFFEBCD\r
+#define COLOR_BLUE              0x0000FF\r
+#define COLOR_BLUEVIOLET        0x8A2BE2\r
+#define COLOR_BROWN             0xA52A2A\r
+#define COLOR_BurlyWood         0xDEB887\r
+#define COLOR_CadetBlue         0x5F9EA0\r
+#define COLOR_Chartreuse        0x7FFF00\r
+#define COLOR_Chocolate         0xD2691E\r
+#define COLOR_Coral             0xFF7F50\r
+#define COLOR_CornflowerBlue    0x6495ED\r
+#define COLOR_Cornsilk          0xFFF8DC\r
+#define COLOR_Crimson           0xDC143C\r
+#define COLOR_CYAN              0x00FFFF\r
+#define COLOR_DARKBLUE          0x00008B\r
+#define COLOR_DARKCYAN          0x008B8B\r
+#define COLOR_DarkGoldenRod     0xB8860B\r
+#define COLOR_DARKGRAY          0xA9A9A9\r
+#define COLOR_DARKGREEN         0x006400\r
+#define COLOR_DarkKhaki         0xBDB76B\r
+#define COLOR_DarkMagenta       0x8B008B\r
+#define COLOR_DarkOliveGreen    0x556B2F\r
+#define COLOR_DarkOrange        0xFF8C00\r
+#define COLOR_DarkOrchid        0x9932CC\r
+#define COLOR_DARKRED           0x8B0000\r
+#define COLOR_DarkSalmon        0xE9967A\r
+#define COLOR_DarkSeaGreen      0x8FBC8F\r
+#define COLOR_DarkSlateBlue     0x483D8B\r
+#define COLOR_DarkSlateGray     0x2F4F4F\r
+#define COLOR_DarkTurquoise     0x00CED1\r
+#define COLOR_DARKVIOLET        0x9400D3\r
+#define COLOR_DeepPink          0xFF1493\r
+#define COLOR_DeepSkyBlue       0x00BFFF\r
+#define COLOR_DimGray           0x696969\r
+#define COLOR_DodgerBlue        0x1E90FF\r
+#define COLOR_FireBrick         0xB22222\r
+#define COLOR_FloralWhite       0xFFFAF0\r
+#define COLOR_ForestGreen       0x228B22\r
+#define COLOR_Fuchsia           0xFF00FF\r
+#define COLOR_Gainsboro         0xDCDCDC\r
+#define COLOR_GhostWhite        0xF8F8FF\r
+#define COLOR_GOLD              0xFFD700\r
+#define COLOR_GoldenRod         0xDAA520\r
+#define COLOR_GRAY              0x808080\r
+#define COLOR_GREEN             0x008000\r
+#define COLOR_GREENYELLOW       0xADFF2F\r
+#define COLOR_HoneyDew          0xF0FFF0\r
+#define COLOR_HotPink           0xFF69B4\r
+#define COLOR_IndianRed         0xCD5C5C\r
+#define COLOR_INDIGO            0x4B0082\r
+#define COLOR_Ivory             0xFFFFF0\r
+#define COLOR_Khaki             0xF0E68C\r
+#define COLOR_Lavender          0xE6E6FA\r
+#define COLOR_LavenderBlush     0xFFF0F5\r
+#define COLOR_LawnGreen         0x7CFC00\r
+#define COLOR_LemonChiffon      0xFFFACD\r
+#define COLOR_LIGHTBLUE         0xADD8E6\r
+#define COLOR_LightCoral        0xF08080\r
+#define COLOR_LIGHTCYAN         0xE0FFFF\r
+#define COLOR_LightGoldenRodYellow      0xFAFAD2\r
+#define COLOR_LIGHTGREY         0xD3D3D3\r
+#define COLOR_LIGHTGREEN        0x90EE90\r
+#define COLOR_LightPink         0xFFB6C1\r
+#define COLOR_LightSalmon       0xFFA07A\r
+#define COLOR_LightSeaGreen     0x20B2AA\r
+#define COLOR_LightSkyBlue      0x87CEFA\r
+#define COLOR_LightSlateGray    0x778899\r
+#define COLOR_LightSteelBlue    0xB0C4DE\r
+#define COLOR_LightYellow       0xFFFFE0\r
+#define COLOR_Lime              0x00FF00\r
+#define COLOR_LimeGreen         0x32CD32\r
+#define COLOR_Linen             0xFAF0E6\r
+#define COLOR_MAGENTA           0xFF00FF\r
+#define COLOR_Maroon            0x800000\r
+#define COLOR_MediumAquaMarine  0x66CDAA\r
+#define COLOR_MediumBlue        0x0000CD\r
+#define COLOR_MediumOrchid      0xBA55D3\r
+#define COLOR_MediumPurple      0x9370DB\r
+#define COLOR_MediumSeaGreen    0x3CB371\r
+#define COLOR_MediumSlateBlue   0x7B68EE\r
+#define COLOR_MediumSpringGreen 0x00FA9A\r
+#define COLOR_MediumTurquoise   0x48D1CC\r
+#define COLOR_MediumVioletRed   0xC71585\r
+#define COLOR_MidnightBlue      0x191970\r
+#define COLOR_MintCream         0xF5FFFA\r
+#define COLOR_MistyRose         0xFFE4E1\r
+#define COLOR_Moccasin          0xFFE4B5\r
+#define COLOR_NavajoWhite       0xFFDEAD\r
+#define COLOR_NAVY              0x000080\r
+#define COLOR_OldLace           0xFDF5E6\r
+#define COLOR_OLIVE             0x808000\r
+#define COLOR_OliveDrab         0x6B8E23\r
+#define COLOR_ORANGE            0xFFA500\r
+#define COLOR_OrangeRed         0xFF4500\r
+#define COLOR_Orchid            0xDA70D6\r
+#define COLOR_PaleGoldenRod     0xEEE8AA\r
+#define COLOR_PaleGreen         0x98FB98\r
+#define COLOR_PaleTurquoise     0xAFEEEE\r
+#define COLOR_PaleVioletRed     0xDB7093\r
+#define COLOR_PapayaWhip        0xFFEFD5\r
+#define COLOR_PeachPuff         0xFFDAB9\r
+#define COLOR_Peru              0xCD853F\r
+#define COLOR_Pink              0xFFC0CB\r
+#define COLOR_Plum              0xDDA0DD\r
+#define COLOR_PowderBlue        0xB0E0E6\r
+#define COLOR_Purple            0x800080\r
+#define COLOR_RebeccaPurple     0x663399\r
+#define COLOR_RED               0xFF0000\r
+#define COLOR_RosyBrown         0xBC8F8F\r
+#define COLOR_RoyalBlue         0x4169E1\r
+#define COLOR_SaddleBrown       0x8B4513\r
+#define COLOR_Salmon            0xFA8072\r
+#define COLOR_SandyBrown        0xF4A460\r
+#define COLOR_SeaGreen          0x2E8B57\r
+#define COLOR_SeaShell          0xFFF5EE\r
+#define COLOR_SIENNA            0xA0522D\r
+#define COLOR_SILVER            0xC0C0C0\r
+#define COLOR_SKYBLUE           0x87CEEB\r
+#define COLOR_SlateBlue         0x6A5ACD\r
+#define COLOR_SlateGray         0x708090\r
+#define COLOR_SNOW              0xFFFAFA\r
+#define COLOR_SpringGreen       0x00FF7F\r
+#define COLOR_SteelBlue         0x4682B4\r
+#define COLOR_Tan               0xD2B48C\r
+#define COLOR_Teal              0x008080\r
+#define COLOR_Thistle           0xD8BFD8\r
+#define COLOR_TOMATO            0xFF6347\r
+#define COLOR_TURQUOISE         0x40E0D0\r
+#define COLOR_VIOLET            0xEE82EE\r
+#define COLOR_Wheat             0xF5DEB3\r
+#define COLOR_WHITE             0xFFFFFF\r
+#define COLOR_WhiteSmoke        0xF5F5F5\r
+#define COLOR_YELLOW            0xFFFF00\r
+#define COLOR_YELLOWGREEN       0x9ACD32\r
+\r
+#endif /* #define COLOR_H */\r