[Bug 1001858] New: CAN driver return code patch

[email protected]
Newsgroups gmane.os.ecos.patches
Message-ID <[email protected]/>
Please do not reply to this email, use the link below.

http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001858

            Bug ID: 1001858
           Summary: CAN driver return code patch
           Product: eCos
           Version: CVS
            Target: All
  Architecture/Host Other
                OS:
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: low
         Component: Patches and contributions
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 2248
  --> http://bugs.ecos.sourceware.org/attachment.cgi?id=2248&action=edit
CAN driver retuirn code patch

The following patch defines the error code to be returned by
cyg_io_set_config() for the config keys CYG_IO_SET_CONFIG_CAN_RANGE_FILTER and
CYG_IO_SET_CONFIG_CAN_MASK_FILTER if no buffers or filters are available
anymore.

The function shall return -ENOSPC to indicate that there are no filters
available. At the moment the only implementation that uses these keys (LPC2xxx
CAN driver) returns -EPERM. But -EPERM is also returned if it is not possible
to configure filters because message filterings is deactivated
(CYGNUM_CAN_MSGBUF_RX_FILTER_ALL). So with the new return code it is possible
for the application to identify the exact reason why message filter
configuration failed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.