- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
In the following code I'm trying to make "SRAM", "FRAM", "EEPROM", and "FLASH" constants, MEM_TYPE an 8-bit variable that can be changed by other programs. The pointer should be pointing to MEM_TYPE. I'm getting a error under uint8_t (defined as BYTE elsewhere in an included file), "*", *and enum which … |
|
Hi, What is the difference between "__inline__" and "inline"? I have programs with both. "inline" works, "__inline__" has an error "Unable to resolve identifier __inline__" thanks |
|
Hi, I'm getting an error that says my defined constant is not a function. It's not supposed to be a function. This is the error... Tick.c:389:35: error: called object '200000000ul' is not a function It points to... #define TICKS_PER_SECOND ((GetPeripheralClock()+128ull)/256ull) GetPeripheralClock has the error. It comes from... #define GetSystemClock (200000000UL) … |
|
in the code const char* buf what is the constant? The pointer or buf? |
|
Is this a "typedef" problem? This is the definition in one file. typedef BYTE SOCKET; //Socket descriptor BYTE is defined elsewhere as type char. (I made sure the file where SOCKET is assigned a type is included in the file the problem is in.) This is one place it is … |
|
Re:
i want hexadecimal addition program without converting it into any other base n without use of %x..... |
|
I need some pointers with pointers. What is the difference between a variable preceded by an "*" and an "&"? Some of my sample code uses one and some the other. I'm getting compiler errors trying both saying the variable is not defined. First use this function. |
|
What does -> mean in the following line of code? bulk_in=end_point->bEndpointAddress; My books show - and > but neither of them seem to apply. The books don't seem to show both together. This is part of a USB driver that I'm trying to convert from Linux to C for the … |
|
I'm getting compiler errors in all my function prototypes. The error is "error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CALCOR". CALCOR is the name of the function and the prototype is just the first line of the function followed by a semicolon as Ancient Dragon said in another … |
|
I'm already having problems understanding structs even with two books. Now I get one with "struct struct". What does that mean. This is actually part of a linux program I'm trying to convert to C for PIC processors. Also I'm getting errors in this code that should work like "unable … |
|
Hello, I thought when creating a struct, I could call it anything I want. However, in the line: static struct usb_device_id usbtmc_devices[] = {... my compiler gives me "unable to resolve identifier 'usb_device_id'". Are struct names supposed to be defined somewhere else? |