buzzerled.h

Go to the documentation of this file.
00001 
00041 #ifndef DRV_BUZZERLED_H
00042 #define DRV_BUZZERLED_H
00043 
00044 #include <cpu/attr.h>
00045 
00046 #if 0
00047 
00051 #include "hw/hw_buzzerled.h"
00052 
00053 
00054 /* Include hw-level implementation. This allows inlining of bld_set, which in turns
00055  * should allow fast constant propagation for the common case (where the parameter
00056  * device is a constant).
00057  */
00058 #include CPU_HEADER(buzzerled)
00059 
00060 
00065 void bld_init(void);
00066 
00067 
00073 #define bld_set(device, enable)  bld_hw_set(device, enable)
00074 
00075 
00083 void bld_beep(enum BLD_DEVICE device, uint16_t duration);
00084 
00085 
00093 void bld_beep_and_wait(enum BLD_DEVICE device, uint16_t duration);
00094 
00095 #endif
00096 
00097 #endif /* DRV_BUZZERLED_H */