<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi.<br>
In mpc5200_psc_interrupt_handler()
(c/src/lib/libbsp/powerpc/gen5200/console/console.c) errors check
is the following:<br>
<br>
<code>isr = psc->isr_imr;</code><br>
.....<br>
<code> if(isr & ISR_ERROR)</code><br>
<code>{</code><br>
<code>if(isr & ISR_RB)</code><br>
<code> channel_info[minor].breaks_detected++;</code><br>
<code>if(isr & ISR_FE)</code><br>
<code> channel_info[minor].framing_errors++;</code><br>
<code>if(isr & ISR_PE)</code><br>
<code> channel_info[minor].parity_errors++;</code><br>
<code>if(isr & ISR_OE)</code><br>
<code> channel_info[minor].overrun_errors++;
</code><br>
<br class="Apple-interchange-newline">
...<br>
<br>
However (according with
c/src/lib/libbsp/powerpc/gen5200/include/mpc5200.h):<br>
1) #define ISR_ERROR (ISR_FE | ISR_PE | ISR_OE)<br>
so (ISR_ERROR & ISR_RB) == false. Is it OK?<br>
<br>
2) According with MPC5200b user's manual (chapter 15.2.2.11) bits
ISR_PE and ISR_FE are reserved<br>
for ISR register (<span style="color: rgb(0, 0, 0); font-size:
13px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; background-color: rgb(255, 255, 255);
display: inline ! important; float: none;"><big><code>psc->isr_imr</code></big>).
<big>Should not we check SR register (chapter 15.2.2.3; psc->sr_csr)
bits here instead?</big></span><span style="color: rgb(0, 0,
0); font-size: 13px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
normal; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px; background-color:
rgb(255, 255, 255); display: inline ! important; float: none;"></span></tt><tt><span
style="color: rgb(0, 0, 0); font-size: 13px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal; word-spacing:
0px; background-color: rgb(255, 255, 255); display: inline !
important; float: none;"><br>
</span></tt>
</body>
</html>