<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Dik za odpovedi<br>
nebyl mi tam jasny rozdil mezi ukazatelem na promnennou <br>
a ukazatelem na cislo (define) coz asi neni obsah promnenne ,ale
cislo samo o sobe.<br>
<br>
Predpokladam ,ze druhy zapis je obecnejsi protoze muzu pouzit
stejnou adresu pro ruzne<br>
typy dat?<br>
<br>
#define DATA_EEPROM_START_ADDR ((unsigned char *)0x08080000)<br>
<br>
pepromuk = (unsigned char*)(DATA_EEPROM_START_ADDR + epromadr);<br>
<br>
Fanda<br>
<div class="moz-forward-container"><br>
<br>
-------- Původní zpráva --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">Předmět:
</th>
<td>pointer v c</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">Datum: </th>
<td>Tue, 06 Jan 2015 15:07:03 +0100</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">Od: </th>
<td>Fanda Kopriva <a class="moz-txt-link-rfc2396E" href="mailto:info@elektronikavyvoj.cz"><info@elektronikavyvoj.cz></a></td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">Komu: </th>
<td>hwkonference <a class="moz-txt-link-rfc2396E" href="mailto:hw-list@list.hw.cz"><hw-list@list.hw.cz></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>Dobry den
jen bych poprosil o ujasneni.
#define DATA_EEPROM_START_ADDR 0x08080000 //4Kb 16 X 256 BYTE
#define LEDErezim 0x080803E0 //L 0 led neblika 1 led blika
void Reasetchar (unsigned long epromadr)
{
unsigned char *pepromuk;
unsigned char cis1;
pepromuk = DATA_EEPROM_START_ADDR + epromadr;
cis1 = *pepromuk++;
...........
...........
pepromuk = LEDErezim;
if (*ppp>0) cis1 |=1;
}
dela to co ma ,ale prekladac hlasi pro radky
pepromuk = DATA_EEPROM_START_ADDR + epromadr;
a
pepromuk = LEDErezim;
upozorneni
Implicit conversion of int to ptr .
Jak by to melo byt spravne.
Dekuju Fanda
</pre>
<br>
</div>
<br>
</body>
</html>