3 #include "kernel_id.h"
\r
4 #include "ecrobot_interface.h"
\r
6 /* OSEK declarations */
\r
9 /* LEJOS OSEK hook to be invoked from an ISR in category 2 */
\r
10 void user_1ms_isr_type2(void){}
\r
13 * a wav file can be accessed by using following macros:
\r
14 * E.g lego_mindstorms_nxt.wav
\r
15 * EXTERNAL_WAV_DATA(file name without extension); <- This is external declarations
\r
16 * WAV_DATA_START(file name without extension) <- start address of a wav file
\r
17 * WAV_DATA_END(file name without extension) <- end address of a wav file
\r
18 * WAV_DATA_SIZE(file name without extension) <- size of a wav file
\r
20 EXTERNAL_WAV_DATA(lego_mindstorms_nxt);
\r
25 display_goto_xy(0, 0);
\r
26 display_string("WAV TEST");
\r
27 display_goto_xy(0, 2);
\r
28 display_string("PRESS ENTR");
\r
33 if (ecrobot_is_ENTER_button_pressed())
\r
35 ecrobot_sound_wav(WAV_DATA_START(lego_mindstorms_nxt),
\r
36 (U32)WAV_DATA_SIZE(lego_mindstorms_nxt), -1, 70);
\r