Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Endorsement
Ranked #856
~3K People Reached
Interests
Design engineering of test and measurement equipment
PC Specs
Toshiba L755D running Windows 10 and Ubuntu Linux, Starting Python
Favorite Forums
Favorite Tags
Member Avatar for kent.johnstone_1

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 …

Member Avatar for Nutster
0
240
Member Avatar for kent.johnstone_1

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

Member Avatar for kent.johnstone_1
0
315
Member Avatar for kent.johnstone_1

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) …

Member Avatar for kent.johnstone_1
0
247
Member Avatar for kent.johnstone_1
Member Avatar for kent.johnstone_1

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 …

Member Avatar for kent.johnstone_1
0
314
Member Avatar for shilpi.rai.77

i want hexadecimal addition program without converting it into any other base n without use of %x.....

Member Avatar for kent.johnstone_1
0
122
Member Avatar for kent.johnstone_1

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.

Member Avatar for kent.johnstone_1
0
415
Member Avatar for kent.johnstone_1

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 …

Member Avatar for kent.johnstone_1
1
241
Member Avatar for kent.johnstone_1

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 …

Member Avatar for kent.johnstone_1
0
225
Member Avatar for kent.johnstone_1

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 …

Member Avatar for kent.johnstone_1
0
180
Member Avatar for kent.johnstone_1

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?

Member Avatar for kent.johnstone_1
0
123