Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | Serial Flash with RabbitWeb and RCM3700

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

Serial Flash with RabbitWeb and RCM3700 - Omar - May 1 10:07:03 2008

I need use the serial flash memory for RCM3700 to create a log to read
it from a browser.
I look the SERIAL_FLASHLOG.C but it is very hard to me. I compile this
program and run very well, but I can not understand it very well to
put any portion of this in my application.

Is there another example of use of Serial Flash with RCM3700 DC 9,21 ?.
If it use RabbitWeb, much better.

Thank you !
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )


Pointer to a structure - Webs Groups - May 1 13:20:02 2008

Hi Everyone,
I am having some issues with DC and pointers to a structure. (yup newbe)
Can anyone provide some help?

Here is some sample code and I am having problems with.

I keep getting these errors, but don't understand why..
line 12 : ERROR UNTITLED1.C : Missing character ';'.
line 12 : ERROR UNTITLED1.C : Invalid struct reference.
line 18 : WARNING UNTITLED1.C : Wrong type for parameter 1.

typedef struct {
int a ;
int b;
} count;

count st;

int ptrtest (struct count * ct_ptr)
{
ct_ptr->a=1;
}
void main()
{
ptrtest(&st);
}__


(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )

Re: Pointer to a structure - Scott Henion - May 1 13:41:57 2008

Webs Groups wrote:
>
> Hi Everyone,
>
> I am having some issues with DC and pointers to a structure. (yup newbe)
>
> Can anyone provide some help?
>
>
>
> Here is some sample code and I am having problems with.
>
>
>
> I keep getting these errors, but don't understand why..
>
> line 12 : ERROR UNTITLED1.C : Missing character ';'.
>
> line 12 : ERROR UNTITLED1.C : Invalid struct reference.
>
> line 18 : WARNING UNTITLED1.C : Wrong type for parameter 1.
>
>
>
>
>
>
>
>
>
> typedef struct {
>
> int a ;
>
> int b;
>
> } count;
>
>
>
> count st;
>
>
>
> int ptrtest (struct count * ct_ptr)
>
> {
>
> ct_ptr->a=1;
>
> }
>
>
>
>
>
> void main()
>
> {
>
> ptrtest(&st);
>
>
>
>
>
> }__
>
You never gave the structure a tag so it can't be used as as "stuct"
cast. Youc an use it as a typedef:

int ptrtest (count * ct_ptr)

{

ct_ptr->a=1;

}

or change the stuct to:

typedef struct _count {

int a ;

int b;

} count;
int ptrtest (struct _count * ct_ptr)

{

ct_ptr->a=1;

}

usually you ant the stuct tag and typedef to be different.
> _.___
>
> Your email settings: Individual Email|Traditional
> Change settings via the Web
>
> (Yahoo! ID required)
> Change settings via email: Switch delivery to Daily Digest
>
> | Switch to Fully Featured
> Visit Your Group
>
> | Yahoo! Groups Terms of Use |
> Unsubscribe
>
--
------------------------------------------
| Scott G. Henion| s...@shdesigns.org |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
Rabbit libs: http://www.shdesigns.org/rabbit/
today's fortune
I should have been a country-western singer. After all, I'm older than
most western countries.
-- George Burns


(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )