• Main Page
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

speaker.c

Go to the documentation of this file.
00001 /*@{*//*@}*/
00010 
00011 /******************************************************************************/
00012 /* Includes (#include)                                                        */
00013 #include <avr/io.h>
00014 
00015 /* Own header files */
00016 #include "xtypes.h"
00017 #include "global.h"
00018 
00019 #define EXPORT
00020   #include "speaker.h"
00021 #undef EXPORT
00022 
00023 /******************************************************************************/
00024 /* Constants (#define)                *//*@{*/
00025 /* End: Constants (#define)                                             *//*@}*/
00026 /******************************************************************************/
00027 
00028 /******************************************************************************/
00029 /* Macro definitions (#define)           *//*@{*/
00030 /* End: Macro definitions (#define)                                     *//*@}*/
00031 /******************************************************************************/
00032 
00033 /******************************************************************************/
00034 /* Basic types (typedef)                 *//*@{*/
00035 /* End: Basic types (typedef)                                           *//*@}*/
00036 /******************************************************************************/
00037 
00038 /******************************************************************************/
00039 /* Local constants (const)      *//*@{*/
00040 /* End: Local constants (const)                                         *//*@}*/
00041 /******************************************************************************/
00042 
00043 /******************************************************************************/
00044 /* Local variables              *//*@{*/
00045 /* End: Local variables                                                 *//*@}*/
00046 /******************************************************************************/
00047 
00048 /******************************************************************************/
00049 /* Global variables           *//*@{*/
00050 /* End: Global variables                                                *//*@}*/
00051 /******************************************************************************/
00052 
00053 /******************************************************************************/
00054 /* Prototype declarations                                                     */
00055 /* End: Prototype declarations                                                */
00056 /******************************************************************************/
00057 
00058 /******************************************************************************/
00059 /* Local functions             *//*@{*/
00060 /* End: Local functions                                                 *//*@}*/
00061 /******************************************************************************/
00062 
00063 /******************************************************************************/
00064 /* Global functions          *//*@{*/
00065 
00066 
00067 /* ****************************************************************************/
00076 /* ****************************************************************************/
00077 void speaker_Init (void)
00078 {
00079   SPEAKER_DDR  |= (1U << SPEAKER_BIT);
00080   
00081   SPEAKER_PORT |= (1U << SPEAKER_BIT);
00082 } /* End: speaker_Init() */
00083 
00084 
00085 /* ****************************************************************************/
00091 /* ****************************************************************************/
00092 void speaker_Off (void)
00093 {
00094   SPEAKER_PORT |= (1U << SPEAKER_BIT);
00095 } /* End: speaker_Off() */
00096 
00097 
00098 /* ****************************************************************************/
00107 /* ****************************************************************************/
00108 void speaker_Buzz (void)
00109 {
00110   SPEAKER_PORT ^= (1U << SPEAKER_BIT);
00111 } /* End: speaker_Buzz() */
00112 
00113 /* End: Global functions                                                *//*@}*/
00114 /******************************************************************************/
00115 
00116 /**** Last line of code                                                    ****/
00117 
00118 

Generated on Sun Jan 23 2011 14:05:40 for ULA replacement firmware by  doxygen 1.7.2