[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in gen5200/tod/pcf8563.c

we found a bug in the pcf8563_get_time() function for reading the RTC from 
the PM520 cpu.

The macro
#define From_BCD( _x ) ((((_x) >> 4) * 10) + ((_x) & 0x0F))
produces wrong code in pcf8563_get_time().

workaround: define From_BCD as function and not as macro. this worked for us.

the problem is under further investigation.

Sch?ne Gr??e aus Reutlingen

Wolfram Wadepohl
Forschung & Entwicklung

Indumat GmbH & Co. KG
Siemensstra?e 3
72766 Reutlingen

Tel.  +49 7121 514-289
Fax   +49 7121 514-299
eMail Wolfram.Wadepohl at ek-automation.com
       W.Wadepohl at ieee.org
WWW   http://www.ek-automation.com

Diese Nachricht ist keine gesch?ftliche Mitteilung i. S. des EHUG.

Bitte senden Sie mir keine Word- oder PowerPoint- (tm Microsoft) Anh?nge.
Senden Sie mir einfachen Text, HTML oder PDF.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3210 bytes
Desc: S/MIME Cryptographic Signature
Url : http://rtems.rtems.org/pipermail/rtems-users/attachments/20070511/46e158a6/attachment.bin