ADuCM302x Device Drivers API Reference Manual
Release 3.1.2.0
adi_beep_config.h
1
48
#ifndef ADI_BEEP_CONFIG_H
49
#define ADI_BEEP_CONFIG_H
50
#include <adi_global_config.h>
51
52
#ifdef __ICCARM__
53
/* IAR MISRA C 2004 error suppressions.
54
*
55
* Pm009 (rule 5.1): identifiers shall not rely on significance of more than 31 characters.
56
* IAR compiler supports longer identifiers.
57
*/
58
#pragma diag_suppress=Pm009
59
#endif
/* __ICCARM__ */
60
66
/************* BEEP Driver configurations ***************/
73
#define ADI_BEEP_INCLUDE_PLAY_SEQUENCE 1
74
75
/************* BEEP controller static configurations ***************/
76
80
#define ADI_BEEP_CFG_BEEPER_DISABLE 0
81
85
#define ADI_BEEP_CFG_SEQUENCE_REPEAT_VALUE 5
86
87
88
/* TONEA CONTROL REGISTER */
89
93
#define ADI_BEEP_TONEA_DISABLE 0
94
98
#define ADI_BEEP_TONEA_FREQUENCY 20
99
103
#define ADI_BEEP_TONEA_DURATION 2
104
105
106
107
/* TONEB CONTROL REGISTER */
108
112
#define ADI_BEEP_TONEB_DISABLE 0
113
117
#define ADI_BEEP_TONEB_FREQUENCY 50
118
122
#define ADI_BEEP_TONEB_DURATION 2
123
124
125
126
#ifdef __ICCARM__
127
/*
128
* Pm085 (rule 19.11): identifiers in pre-processor directives should be defined before use
129
* The macros in the the following #if directives are defined to enum constants by default.
130
*/
131
#pragma diag_suppress=Pm085
132
#endif
/* __ICCARM__ */
133
134
#if (ADI_BEEP_TONEA_DISABLE > 1)
135
#error "Invalid configuration"
136
#endif
137
138
#if ( ADI_BEEP_TONEA_FREQUENCY > 127 )
139
#error "Invalid configuration"
140
#endif
141
142
#if ( ADI_BEEP_TONEA_DURATION > 255 )
143
#error "Invalid configuration"
144
#endif
145
146
#if (ADI_BEEP_TONEB_DISABLE > 1)
147
#error "Invalid configuration"
148
#endif
149
150
#if ( ADI_BEEP_TONEB_FREQUENCY > 127 )
151
#error "Invalid configuration"
152
#endif
153
154
#if ( ADI_BEEP_TONEB_DURATION > 255 )
155
#error "Invalid configuration"
156
#endif
157
158
#ifdef __ICCARM__
159
#pragma diag_default=Pm009,Pm085
160
#endif
/* __ICCARM__ */
161
164
#endif
/* ADI_BEEP_CONFIG_H */
Include
config
adi_beep_config.h
Generated on Mon Aug 6 2018 21:48:21 for ADuCM302x Device Drivers API Reference Manual by
1.8.13