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 
00050 #include <hw.h>
00051 
00052 
00053 /* Include hw-level implementation. This allows inlining of bld_set, which in turns
00054  * should allow fast constant propagation for the common case (where the parameter
00055  * device is a constant).
00056  */
00057 #include CPU_HEADER(buzzerled)
00058 
00059 
00064 void bld_init(void);
00065 
00066 
00072 #define bld_set(device, enable)  bld_hw_set(device, enable)
00073 
00074 
00082 void bld_beep(enum BLD_DEVICE device, uint16_t duration);
00083 
00084 
00092 void bld_beep_and_wait(enum BLD_DEVICE device, uint16_t duration);
00093 
00094 #endif /* DRV_BUZZERLED_H */