BeRTOS
buzzerled.h
Go to the documentation of this file.
00001 
00040 #ifndef DRV_BUZZERLED_H
00041 #define DRV_BUZZERLED_H
00042 
00043 #include <cpu/attr.h>
00044 
00045 #if 0
00046 
00050 #include "hw/hw_buzzerled.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
00095 
00096 #endif /* DRV_BUZZERLED_H */