PIC18F45K20 6 channel software PWM

Status
Not open for further replies.

It's very easy to have a small header that allows you to add standard width types to C.

I normally use something like this with C18.

Code:
#ifdef INTTYPES
#include <stdint.h>
#else
#define INTTYPES
/*unsigned types*/
typedef unsigned char uint8_t;
typedef unsigned int uint16_t;
typedef unsigned long uint32_t;
typedef unsigned long long uint64_t;
/*signed types*/
typedef signed char int8_t;
typedef signed int int16_t;
typedef signed long int32_t;
typedef signed long long int64_t;
#endif

https://pubs.opengroup.org/onlinepubs/007904975/basedefs/stdint.h.html
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…