1 /*
2  * Copyright (C) 2015-2020 Alibaba Group Holding Limited
3  */
4 
5 #include "amp_board_config.h"
6 
7 #define AMP_FS_ROOT_DIR "/data/jsamp"
8 
9 #define JSE_CORE_ADDON_INITJS
10 
11 /* enable high-level jsapi */
12 #define JSE_HIGHLEVEL_JSAPI
13 
14 /* js engine low memory enabled */
15 // #define AMP_LOWMEMORY_ENABLE
16 
17 /* manager channel */
18 #define AMP_NETWORK_ENABLE
19 
20 /* das(device security) service */
21 // #define AMP_DAS_ENABLED
22 
23 /* ntp service */
24 // #define AMP_NTP_ENABLED
25 
26 /* location service */
27 // #define AMP_LOCATION_SERVICE_ENABLED
28 
29 /* debug mode, use test pk and ps*/
30 #define AMP_DEBUG_MODE
31 
32 /* ota service */
33 #if AMP_ADVANCED_ADDON_OTA
34 #define JSE_ADVANCED_ADDON_OTA
35 #endif
36 
37 /* os */
38 #if AMP_CORE_ADDON_BUILDIN
39 #define JSE_CORE_ADDON_BUILDIN
40 #endif
41 
42 #if AMP_CORE_ADDON_CHECKSUM
43 #define JSE_CORE_ADDON_CHECKSUM
44 #endif
45 
46 #if AMP_CORE_ADDON_SYSTEM
47 #define JSE_CORE_ADDON_SYSTEM
48 #endif
49 
50 #if AMP_CORE_ADDON_FS
51 #define JSE_CORE_ADDON_FS
52 #endif
53 
54 #if AMP_CORE_ADDON_KV
55 #define JSE_CORE_ADDON_KV
56 #endif
57 
58 #if AMP_CORE_ADDON_LOG
59 #define JSE_CORE_ADDON_LOG
60 #endif
61 
62 #if AMP_CORE_ADDON_PM
63 #define JSE_CORE_ADDON_PM
64 #endif
65 
66 #if AMP_CORE_ADDON_BATTERY
67 #define JSE_CORE_ADDON_BATTERY
68 #endif
69 
70 #if AMP_CORE_ADDON_CHARGER
71 #define JSE_CORE_ADDON_CHARGER
72 #endif
73 
74 #if AMP_CORE_ADDON_SYSTIMER
75 #define JSE_CORE_ADDON_SYSTIMER
76 #endif
77 
78 #if AMP_CORE_ADDON_CRYPTO
79 #define JSE_CORE_ADDON_CRYPTO
80 #endif
81 
82 /* periperal */
83 #if AMP_HW_ADDON_ADC
84 #define JSE_HW_ADDON_ADC
85 #endif
86 
87 #if AMP_HW_ADDON_CAN
88 #define JSE_HW_ADDON_CAN
89 #endif
90 
91 #if AMP_HW_ADDON_DAC
92 #define JSE_HW_ADDON_DAC
93 #endif
94 
95 #if AMP_HW_ADDON_GPIO
96 #define JSE_HW_ADDON_GPIO
97 #endif
98 
99 #if AMP_HW_ADDON_I2C
100 #define JSE_HW_ADDON_I2C
101 #endif
102 
103 #if AMP_HW_ADDON_SPI
104 #define JSE_HW_ADDON_SPI
105 #endif
106 
107 #if AMP_HW_ADDON_TIMER
108 #define JSE_HW_ADDON_TIMER
109 #endif
110 
111 #if AMP_HW_ADDON_PWM
112 #define JSE_HW_ADDON_PWM
113 #endif
114 
115 #if AMP_HW_ADDON_RTC
116 #define JSE_HW_ADDON_RTC
117 #endif
118 
119 #if AMP_HW_ADDON_UART
120 #define JSE_HW_ADDON_UART
121 #endif
122 
123 #if AMP_HW_ADDON_LCD
124 #define JSE_HW_ADDON_LCD
125 #endif
126 
127 #if AMP_HW_ADDON_WDG
128 #define JSE_HW_ADDON_WDG
129 #endif
130 
131 /* network */
132 
133 #if AMP_NET_ADDON_UDP
134 #define JSE_NET_ADDON_UDP
135 #endif
136 
137 #if AMP_NET_ADDON_TCP
138 #define JSE_NET_ADDON_TCP
139 #endif
140 
141 #if AMP_NET_ADDON_MQTT
142 #define JSE_NET_ADDON_MQTT
143 #endif
144 
145 #if AMP_NET_ADDON_HTTP
146 #define JSE_NET_ADDON_HTTP
147 #endif
148 
149 #if AMP_NET_ADDON_NETMGR
150 #define JSE_NET_ADDON_NETMGR
151 #endif
152 
153 #if AMP_NET_ADDON_WIFI
154 #define JSE_NET_ADDON_WIFI
155 #endif
156 
157 #if AMP_NET_ADDON_CELLULAR
158 #define JSE_NET_ADDON_CELLULAR
159 #endif
160 
161 /* advanced component */
162 #if AMP_ADVANCED_ADDON_AIOT_DEVICE
163 #define JSE_ADVANCED_ADDON_AIOT_DEVICE
164 #endif
165 
166 #if AMP_ADVANCED_ADDON_AIOT_GATEWAY
167 #define JSE_ADVANCED_ADDON_AIOT_GATEWAY
168 #endif
169 
170 #if (defined(BOARD_HAAS100) || defined(BOARD_HAASEDUK1))
171 #if AMP_ADVANCED_ADDON_AUDIOPLAYER
172 #define JSE_ADVANCED_ADDON_AUDIOPLAYER
173 #endif
174 #endif
175 
176 #if AMP_ADVANCED_ADDON_TTS
177 #define JSE_ADVANCED_ADDON_TTS
178 #endif
179 
180 #if AMP_ADVANCED_ADDON_LOCATION
181 #define JSE_ADVANCED_ADDON_LOCATION
182 #endif
183 
184 #if AMP_ADVANCED_ADDON_KEYPAD
185 #define JSE_ADVANCED_ADDON_KEYPAD
186 #endif
187 
188 #if AMP_ADVANCED_ADDON_UND
189 #define JSE_ADVANCED_ADDON_UND
190 #endif
191 
192 /* wireless */
193 #if AMP_WIRELESS_ADDON_BT_HOST
194 #define JSE_WIRELESS_ADDON_BT_HOST
195 #endif
196 
197 /* utils */
198 #if AMP_UTILS_ADDON_CHECKSUM
199 #define JSE_UTILS_ADDON_CHECKSUM
200 #endif
201 
202 #if AMP_ADVANCED_ADDON_BLECFGNET
203 #define JSE_ADVANCED_ADDON_BLECFGNET
204 #endif
205 
206 #if AMP_ADVANCED_ADDON_UI
207 #define JSE_ADVANCED_ADDON_UI
208 #endif
209 
210 #if (defined(BOARD_HAAS100) || defined(BOARD_HAASEDUK1))
211 #if AMP_ADVANCED_ADDON_OSS
212 #define JSE_ADVANCED_ADDON_OSS
213 #endif
214 #endif
215 
216 /* recovery switch & status led */
217 #define AMP_REPL_PROMPT     "amp > "
218 
219 /* manager channel device info for porject */
220 #define AMP_INTERNAL_PRODUCTKEY_VALUE       ""
221 #define AMP_INTERNAL_PRODUCTSECRET_VALUE    ""
222