Hello,
If I write
void aStore (int i) {
OS_PutMail (&aMB, &i);
}
What is actually stored in the mailbox? Whether the value of i or the address of i? If the value of i is stored, then
int aRetrieve (void) {
int i;
char c = OS_GetMailTimed (&aMB, &i, 200);
if (c == 0)
return i;
}
Will this aRetrieve function will return me the value of i, that was actually stored in the mailbox? Please clarify.
Thanks.
If I write
void aStore (int i) {
OS_PutMail (&aMB, &i);
}
What is actually stored in the mailbox? Whether the value of i or the address of i? If the value of i is stored, then
int aRetrieve (void) {
int i;
char c = OS_GetMailTimed (&aMB, &i, 200);
if (c == 0)
return i;
}
Will this aRetrieve function will return me the value of i, that was actually stored in the mailbox? Please clarify.
Thanks.