bug in gen5200/tod/pcf8563.c

Wolfram Wadepohl Wolfram.Wadepohl at ek-automation.com
Fri May 11 13:53:13 UTC 2007

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://lists.rtems.org/pipermail/users/attachments/20070511/46e158a6/attachment.bin>

More information about the users mailing list