Jump to content

Some #defines Missing In System Header Files

Recommended Posts

Bug description:

BoostC v6.35 header files for PIC18F2455, PIC18F2550, PIC18F4455, PIC18F4550 do not have the macro definitions for SPI port pin names. These definitions are required for SCK, SDI, SDO, SS and NOT_SS (last two are an identical value).


Steps to reproduce:

Referencing any SPI port pin names.


Expected behaviour:

In each of the four header files need to add the macro definitions for pin bit numbers under the definitions of the relevant port. I obtained the pin bit position from Microchip's PIC18F2455/2550/4455/4550 Data Sheet - DS39632C


I added the folloowing five definitions:

/////// PORTA Bits /////////////////////////////////////////////////////

#define SS 0x00000005

#define NOT_SS 0x00000005

/////// PORTB Bits /////////////////////////////////////////////////////

#define SDI 0x00000000

#define SCK 0x00000001

/////// PORTC Bits /////////////////////////////////////////////////////

#define SDO 0x00000007



Is the problem 100% reproduceable:



IDE version : Any

Compiler : BoostC Compiler

Compiler version: 6.35

Target device : PIC18F2455, PIC18F2550, PIC18F4455, PIC18F4550

OS: : XP Pro SP2



I've only checked for these five pin bit positions on the specified four MCUs as I my current target is a PIC18F4550 and all four are covered by the same data sheet.

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...