| 1 | /**************************************************************************** |
|---|
| 2 | * NAME: App_Main.h |
|---|
| 3 | *---------------------------------------------------------------------------- |
|---|
| 4 | * Copyright (c) DIGITAL STREAM Technology Inc. |
|---|
| 5 | *---------------------------------------------------------------------------- |
|---|
| 6 | * CREATED_BY: Do Gon Lee |
|---|
| 7 | * CREATION_DATE: 2009/08/24 |
|---|
| 8 | * $Author: foxhunt $ |
|---|
| 9 | * $Revision: 1.0 $ |
|---|
| 10 | * $Date: 2009/08/24 10:39:43 $ |
|---|
| 11 | *---------------------------------------------------------------------------- |
|---|
| 12 | * PURPOSE: |
|---|
| 13 | * - Entry point of Main application. |
|---|
| 14 | *****************************************************************************/ |
|---|
| 15 | |
|---|
| 16 | #ifndef __APP_MAIN_H__ |
|---|
| 17 | #define __APP_MAIN_H__ |
|---|
| 18 | |
|---|
| 19 | /*_____ I N C L U D E __________________________________________*/ |
|---|
| 20 | |
|---|
| 21 | /* HAL */ |
|---|
| 22 | #include "DHL_OSAL.h" |
|---|
| 23 | #include "DHL_DBG.h" |
|---|
| 24 | #include "DHL_SYS.h" |
|---|
| 25 | |
|---|
| 26 | /* MW */ |
|---|
| 27 | #include "DMW_Status.h" |
|---|
| 28 | #include "DMW_Platform.h" |
|---|
| 29 | |
|---|
| 30 | #include "DMG_Service.h" |
|---|
| 31 | |
|---|
| 32 | #include <stdio.h> |
|---|
| 33 | //#include <string.h> |
|---|
| 34 | //#include <string.h> |
|---|
| 35 | |
|---|
| 36 | #include "App_Config.h" |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | #if COMMENT |
|---|
| 40 | ____Overview____(){} |
|---|
| 41 | #endif |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | /*_____ D E F I N I T I O N ____________________________________*/ |
|---|
| 48 | |
|---|
| 49 | #if COMMENT |
|---|
| 50 | ____Config____(){} |
|---|
| 51 | #endif |
|---|
| 52 | |
|---|
| 53 | #define STATIC static |
|---|
| 54 | |
|---|
| 55 | #define APP_PORTING 0 /* App porting µ¿¾È ÀϽÃÀûÀ¸·Î ¸·À» macro */ |
|---|
| 56 | |
|---|
| 57 | /******************** |
|---|
| 58 | * Define Stack Size * |
|---|
| 59 | ********************/ |
|---|
| 60 | |
|---|
| 61 | #define SZ_1K 0x00000400 |
|---|
| 62 | #define SZ_4K 0x00001000 |
|---|
| 63 | #define SZ_8K 0x00002000 |
|---|
| 64 | #define SZ_16K 0x00004000 |
|---|
| 65 | #define SZ_64K 0x00010000 |
|---|
| 66 | #define SZ_128K 0x00020000 |
|---|
| 67 | #define SZ_256K 0x00040000 |
|---|
| 68 | #define SZ_512K 0x00080000 |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | #define min(a,b) (a)<=(b)?(a):(b) |
|---|
| 73 | #define max(a,b) (a)>=(b)?(a):(b) |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | #if COMMENT |
|---|
| 78 | ____Types____(){} |
|---|
| 79 | #endif |
|---|
| 80 | |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | #if COMMENT |
|---|
| 86 | ____Variables____(){} |
|---|
| 87 | #endif |
|---|
| 88 | |
|---|
| 89 | |
|---|
| 90 | |
|---|
| 91 | |
|---|
| 92 | |
|---|
| 93 | #if COMMENT |
|---|
| 94 | ____NvParam____(){} |
|---|
| 95 | #endif |
|---|
| 96 | |
|---|
| 97 | |
|---|
| 98 | |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | /*_____ F U N C T I O N ________________________________________*/ |
|---|
| 102 | |
|---|
| 103 | #if COMMENT |
|---|
| 104 | ____Function____(){} |
|---|
| 105 | #endif |
|---|
| 106 | |
|---|
| 107 | /* App_Main.c header file */ |
|---|
| 108 | void App_PrintLogo(void); |
|---|
| 109 | //void App_STBPowerOff(void); |
|---|
| 110 | //void App_Exit(); |
|---|
| 111 | |
|---|
| 112 | |
|---|
| 113 | /* App_Debug.c header file */ |
|---|
| 114 | BOOL AppCheckPrintable(void); |
|---|
| 115 | |
|---|
| 116 | void App_PrintTextMessageBox2(int n_msg, char **msglist, int width); |
|---|
| 117 | void App_PrintTextMessageBox(char *msg, int width); |
|---|
| 118 | |
|---|
| 119 | void App_InitDebug(void); |
|---|
| 120 | void App_SetDebugLevel(int level); |
|---|
| 121 | |
|---|
| 122 | |
|---|
| 123 | |
|---|
| 124 | |
|---|
| 125 | |
|---|
| 126 | #endif /* __APP_MAIN_H__ */ |
|---|