Has anyone ported the Bosch supplied driver on githup to MPLABX XC16? It looks like it was written on a linux system. So many non-standard integer types used. My porting trouble in this area- if __KERNEL__ is not defined, the code doesn't work... It's frustrating to have to fix machine specif stuff in a driver.. /****************************************************************/ /*! Header includes */ /****************************************************************/ #ifdef __KERNEL__ #include <linux/types.h> #include <linux/kernel.h> #else #include <stdint.h> #include <stddef.h> #endif /****************************************************************/ /*! Common macros */ /****************************************************************/ #ifdef __KERNEL__ #if !defined(UINT8_C) && !defined(INT8_C) #define INT8_C(x) S8_C(x) #define UINT8_C(x) U8_C(x) #endif
... View more