1 /*\r
2 ** =============================================================================\r
3 ** Copyright (c) 2016 Texas Instruments Inc.\r
4 **\r
5 ** This program is free software; you can redistribute it and/or modify it under\r
6 ** the terms of the GNU General Public License as published by the Free Software \r
7 ** Foundation; version 2.\r
8 **\r
9 ** This program is distributed in the hope that it will be useful, but WITHOUT\r
10 ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
11 ** FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r
12 **\r
13 ** You should have received a copy of the GNU General Public License along with\r
14 ** this program; if not, write to the Free Software Foundation, Inc., 51 Franklin\r
15 ** Street, Fifth Floor, Boston, MA 02110-1301, USA.\r
16 **\r
17 ** File:\r
18 ** system.h\r
19 **\r
20 ** Description:\r
21 ** header file for system.c\r
22 **\r
23 ** =============================================================================\r
24 */\r
25 \r
26 #ifndef SYSTEM_H_\r
27 #define SYSTEM_H_\r
28 \r
29 #include <stdint.h>\r
30 #include <sys/types.h>\r
31 \r
32 #define AUDIO_PLAYER "/system/bin/tinyplay"\r
33 #define AUDIO_MIXER "/system/bin/tinymix"\r
34 \r
35 // Hypothetical System Functions\r
36 extern pid_t sys_play_wav(char * pFile, char * pMode);\r
37 extern void sys_stop_wav(pid_t nProcess);\r
38 extern void sys_delay(uint32_t delay_ms);\r
39 extern double sys_get_ambient_temp(void);\r
40 extern int sys_is_valid(char * pFile);\r
41 \r
42 #endif /* SYSTEM_H_ */\r