C: #define, XC8
Miroslav Draxal
evik na volny.cz
Čtvrtek Červen 14 19:51:24 CEST 2018
Dobrý den,
Existuje nějaká možnost, rozchodit následující?
void delay_ms_uint16_t(uint16_t DelayTime);
void delay_ms_uint8_t(uint8_t DelayTime);
# define delay_ms(DelayTime) \
#if DelayTime < 256 \
delay_ms_uint8_t(DelayTime) \
#else \
delay_ms_uint16_t(DelayTime) \
#endif
Ztrozkotá to na "illegal "#" directive"
Díky za nápady.
Míra
------------- další část ---------------
HTML příloha byla odstraněna...
URL: <http://list.hw.cz/pipermail/hw-list/attachments/20180614/ab85ebab/attachment.html>
Další informace o konferenci Hw-list