FreeCalypso > hg > fc-magnetite
comparison src/aci2/aci/ati_audio.c @ 264:3edeadec6804
aci2: AT@SPKR command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 04 Aug 2017 20:50:23 +0000 |
parents | 3b8d291ed45a |
children | d85305a74518 |
comparison
equal
deleted
inserted
replaced
263:6c66a681224c | 264:3edeadec6804 |
---|---|
64 #endif /*FF_ATI_BAT*/ | 64 #endif /*FF_ATI_BAT*/ |
65 | 65 |
66 #include "audio/audio_api.h" | 66 #include "audio/audio_api.h" |
67 #include "audio.h" /* Condat */ | 67 #include "audio.h" /* Condat */ |
68 | 68 |
69 #include "fc-target.cfg" | |
70 #include "armio.h" | |
71 | |
72 #ifdef CONFIG_TARGET_FCDEV3B | |
73 /* AT@SPKR - turn loudspeaker amplifier on or off */ | |
74 GLOBAL T_ATI_RSLT atAtSPKR ( char *cl, UBYTE srcId ) | |
75 { | |
76 int state; | |
77 | |
78 cl = parse(cl, "D", &state); | |
79 if (!cl) | |
80 return (ATI_FAIL); | |
81 if (state) | |
82 AI_SetBit(1); | |
83 else | |
84 AI_ResetBit(1); | |
85 return (ATI_CMPL); | |
86 } | |
87 #endif | |
88 | |
69 /* AT@SND - emit sound through Condat API */ | 89 /* AT@SND - emit sound through Condat API */ |
70 GLOBAL T_ATI_RSLT atAtSND ( char *cl, UBYTE srcId ) | 90 GLOBAL T_ATI_RSLT atAtSND ( char *cl, UBYTE srcId ) |
71 { | 91 { |
72 UBYTE sound_id = TONES_KEYBEEP; | 92 UBYTE sound_id = TONES_KEYBEEP; |
73 | 93 |