aboutsummaryrefslogtreecommitdiffstats
path: root/halext/drivers/gdispNokia6100/gdisp_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'halext/drivers/gdispNokia6100/gdisp_lld.c')
-rw-r--r--halext/drivers/gdispNokia6100/gdisp_lld.c72
1 files changed, 38 insertions, 34 deletions
diff --git a/halext/drivers/gdispNokia6100/gdisp_lld.c b/halext/drivers/gdispNokia6100/gdisp_lld.c
index 0d039107..b34bc7d8 100644
--- a/halext/drivers/gdispNokia6100/gdisp_lld.c
+++ b/halext/drivers/gdispNokia6100/gdisp_lld.c
@@ -35,8 +35,8 @@
*/
/**
- * @file templates/gdisp_lld.c
- * @brief GDISP Graphics Driver subsystem low level driver source template.
+ * @file gdispNokia6100/gdisp_lld.c
+ * @brief GDISP Graphics Driver subsystem low level driver source for the Nokia6100 display.
*
* @addtogroup GDISP
* @{
@@ -87,7 +87,7 @@
/* ---- Required Routines ---- */
/*
- The following 4 routines are required.
+ The following 2 routines are required.
All other routines are optional.
*/
@@ -108,37 +108,6 @@ void gdisp_lld_init(void) {
}
/**
- * @brief Sets the power mode for the graphic device.
- * @note The power modes are powerOn, powerSleep and powerOff.
- * If powerSleep is not supported it is equivelent to powerOn.
- *
- * @param[in] powerMode The new power mode
- *
- * @notapi
- */
-void gdisp_lld_setpowermode(gdisp_powermode_t powerMode) {
- /* Code here */
- /* if successful
- GDISP1.Powermode = powerMode;
- */
-}
-
-/**
- * @brief Sets the orientation of the display.
- * @note This may be ignored if not supported by the device.
- *
- * @param[in] newOrientation The new orientation
- *
- * @notapi
- */
-void gdisp_lld_setorientation(gdisp_orientation_t newOrientation) {
- /* Code here */
- /* if successful
- GDISP1.Orientation = newOrientation;
- */
-}
-
-/**
* @brief Draws a pixel on the display.
*
* @param[in] x X location of the pixel
@@ -171,6 +140,41 @@ void gdisp_lld_drawpixel(coord_t x, coord_t y, color_t color) {
gdisp_lld_fillarea() and gdisp_lld_blitarea().
*/
+#if GDISP_HARDWARE_POWERCONTROL || defined(__DOXYGEN__)
+/**
+ * @brief Sets the power mode for the graphic device.
+ * @note The power modes are powerOn, powerSleep and powerOff.
+ * If powerSleep is not supported it is equivelent to powerOn.
+ *
+ * @param[in] powerMode The new power mode
+ *
+ * @notapi
+ */
+void gdisp_lld_setpowermode(gdisp_powermode_t powerMode) {
+ /* Code here */
+ /* if successful
+ GDISP1.Powermode = powerMode;
+ */
+}
+#endif
+
+#if GDISP_HARDWARE_ORIENTATION || defined(__DOXYGEN__)
+/**
+ * @brief Sets the orientation of the display.
+ * @note This may be ignored if not supported by the device.
+ *
+ * @param[in] newOrientation The new orientation
+ *
+ * @notapi
+ */
+void gdisp_lld_setorientation(gdisp_orientation_t newOrientation) {
+ /* Code here */
+ /* if successful
+ GDISP1.Orientation = newOrientation;
+ */
+}
+#endif
+
#if GDISP_HARDWARE_CLEARS || defined(__DOXYGEN__)
/**
* @brief Clear the display.