CircleOS  1
circle_spe.h
Go to the documentation of this file.
1 /****************** COPYRIGHT (C) 2007-2013 KEOLABS S.A.S. ********************/
12 /******************************************************************************/
13 
14 /* Define to prevent recursive inclusion -------------------------------------*/
15 #ifndef __CIRSPE_H
16 #define __CIRSPE_H
17 
18 /* Primers 1 & 2 -------------------------*/
19 #ifdef PRIMER1
20 #define SCREEN_WIDTH 128 /*< Default application Width of visible screen in pixels. */
21 #define SCREEN_HEIGHT 128 /*< Default application Height of visible screen in pixels. */
22 #define CHIP_SCREEN_WIDTH 128 /*< Width of screen driven by LCD controller in pixels. */
23 #define CHIP_SCREEN_HEIGHT 128 /*< Height of screen driven by LCD controller in pixels. */
24 typedef enum /* Offset between physical and virtual screen */
25 {
28 } ENUM_Offset;
29 #endif
30 
31 #ifdef PRIMER2
32 #define BUTTON_HEIGHT 32 /*< Height of toolbar button. */
33 #define BUTTON_WIDTH 32 /*< Width of toolbar button. */
34 #define ICON_HEIGHT 32 /*< Height of toolbar icon. */
35 #define ICON_WIDTH 32 /*< Width of toolbar icon. */
36 #define SCREEN_WIDTH 128 /*< Default application Width of visible screen in pixels. */
37 #define SCREEN_HEIGHT 128 /*< Default application Height of visible screen in pixels. */
38 #define CHIP_SCREEN_WIDTH 132 /*< Width of screen driven by LCD controller in pixels. */
39 #define CHIP_SCREEN_HEIGHT 132 /*< Height of screen driven by LCD controller in pixels. */
40 typedef enum /* Offset between physical and virtual screen */
41 {
42  OFFSET_OFF = 0,
43  OFFSET_ON = 0
44 } ENUM_Offset;
45 #endif
46 
47 /* Open4 (STM32E/STM32C...)---------------*/
48 #ifdef OPEN4
49 #define BUTTON_HEIGHT 80 /*< Height of toolbar button. */
50 #define BUTTON_WIDTH 60 /*< Width of toolbar button. */
51 #define ICON_HEIGHT 60 /*< Height of toolbar icon. */
52 #define ICON_WIDTH 60 /*< Width of toolbar icon. */
53 #define SCREEN_WIDTH 240 /*< Default application Width of visible screen in pixels. */
54 #define SCREEN_HEIGHT 240 /*< Default application Height of visible screen in pixels. */
55 #define CHIP_SCREEN_WIDTH 240 /*< Width of screen driven by LCD controller in pixels. */
56 #define CHIP_SCREEN_HEIGHT 320 /*< Height of screen driven by LCD controller in pixels. */
57 typedef enum /* Offset between physical and virtual screen */
58 {
59  OFFSET_OFF = 0,
60  OFFSET_ON = ( 240 - 128 ) / 2
61 } ENUM_Offset;
62 #endif
63 
64 #endif /*__CIRSPE_H */