aboutsummaryrefslogtreecommitdiff
path: root/quantum/config_common.h
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2016-11-26 15:26:02 +0700
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2016-11-26 15:26:02 +0700
commitd9d67e7b7686fdcbc7269a76d2a54c42325bdd03 (patch)
treee386cf6b0a5c37ff1321bb34b72b6fe4f5aba512 /quantum/config_common.h
parent17acde94ee2695ab69ea336742c904d649dce17c (diff)
downloadqmk_firmware-d9d67e7b7686fdcbc7269a76d2a54c42325bdd03.tar.gz
qmk_firmware-d9d67e7b7686fdcbc7269a76d2a54c42325bdd03.zip
add macro error when a required define is missing
Diffstat (limited to 'quantum/config_common.h')
-rw-r--r--quantum/config_common.h118
1 files changed, 118 insertions, 0 deletions
diff --git a/quantum/config_common.h b/quantum/config_common.h
index 4d3939dae..0a2dba78f 100644
--- a/quantum/config_common.h
+++ b/quantum/config_common.h
@@ -79,4 +79,122 @@
79# endif 79# endif
80#endif 80#endif
81 81
82#ifdef PS2_USE_BUSYWAIT
83# ifndef PS2_CLOCK_PORT
84# error "PS2_CLOCK_PORT has to be defined"
85# endif
86# ifndef PS2_CLOCK_PIN
87# error "PS2_CLOCK_PIN has to be defined"
88# endif
89# ifndef PS2_CLOCK_DDR
90# error "PS2_CLOCK_DDR has to be defined"
91# endif
92# ifndef PS2_CLOCK_BIT
93# error "PS2_CLOCK_BIT has to be defined"
94# endif
95# ifndef PS2_DATA_PORT
96# error "PS2_DATA_PORT has to be defined"
97# endif
98# ifndef PS2_DATA_PIN
99# error "PS2_DATA_PIN has to be defined"
100# endif
101# ifndef PS2_DATA_DDR
102# error "PS2_DATA_DDR has to be defined"
103# endif
104# ifndef PS2_DATA_BIT
105# error "PS2_DATA_BIT has to be defined"
106# endif
107#endif
108
109#ifdef PS2_USE_INT
110# ifndef PS2_CLOCK_PORT
111# error "PS2_CLOCK_PORT has to be defined"
112# endif
113# ifndef PS2_CLOCK_PIN
114# error "PS2_CLOCK_PIN has to be defined"
115# endif
116# ifndef PS2_CLOCK_DDR
117# error "PS2_CLOCK_DDR has to be defined"
118# endif
119# ifndef PS2_CLOCK_BIT
120# error "PS2_CLOCK_BIT has to be defined"
121# endif
122# ifndef PS2_DATA_PORT
123# error "PS2_DATA_PORT has to be defined"
124# endif
125# ifndef PS2_DATA_PIN
126# error "PS2_DATA_PIN has to be defined"
127# endif
128# ifndef PS2_DATA_DDR
129# error "PS2_DATA_DDR has to be defined"
130# endif
131# ifndef PS2_DATA_BIT
132# error "PS2_DATA_BIT has to be defined"
133# endif
134# ifndef PS2_INT_INIT
135# error "PS2_INT_INIT has to be defined"
136# endif
137# ifndef PS2_INT_ON
138# error "PS2_INT_ON has to be defined"
139# endif
140# ifndef PS2_INT_OFF
141# error "PS2_INT_OFF has to be defined"
142# endif
143# ifndef PS2_INT_VECT
144# error "PS2_INT_VECT has to be defined"
145# endif
146#endif
147
148#ifdef PS2_USE_USART
149# ifndef PS2_CLOCK_PORT
150# error "PS2_CLOCK_PORT has to be defined"
151# endif
152# ifndef PS2_CLOCK_PIN
153# error "PS2_CLOCK_PIN has to be defined"
154# endif
155# ifndef PS2_CLOCK_DDR
156# error "PS2_CLOCK_DDR has to be defined"
157# endif
158# ifndef PS2_CLOCK_BIT
159# error "PS2_CLOCK_BIT has to be defined"
160# endif
161# ifndef PS2_DATA_PORT
162# error "PS2_DATA_PORT has to be defined"
163# endif
164# ifndef PS2_DATA_PIN
165# error "PS2_DATA_PIN has to be defined"
166# endif
167# ifndef PS2_DATA_DDR
168# error "PS2_DATA_DDR has to be defined"
169# endif
170# ifndef PS2_DATA_BIT
171# error "PS2_DATA_BIT has to be defined"
172# endif
173# ifndef PS2_USART_INIT
174# error "PS2_USART_INIT has to be defined"
175# endif
176# ifndef PS2_USART_RX_INT_ON
177# error "PS2_USART_RX_INT_ON has to be defined"
178# endif
179# ifndef PS2_USART_RX_POLL_ON
180# error "PS2_USART_RX_POLL_ON has to be defined"
181# endif
182# ifndef PS2_USART_OFF
183# error "PS2_USART_OFF has to be defined"
184# endif
185# ifndef PS2_USART_RX_READY
186# error "PS2_USART_RX_READY has to be defined"
187# endif
188# ifndef PS2_USART_RX_DATA
189# error "PS2_USART_RX_DATA has to be defined"
190# endif
191# ifndef PS2_USART_ERROR
192# error "PS2_USART_ERROR has to be defined"
193# endif
194# ifndef PS2_USART_RX_VECT
195# error "PS2_USART_RX_VECT has to be defined"
196# endif
197#endif
198
199
82#endif \ No newline at end of file 200#endif \ No newline at end of file