[RTEMS Project] #2788: RTEMS I2C API only defines Standard-mode (Sm) speed as a default.

RTEMS trac trac at rtems.org
Tue Sep 27 05:36:27 UTC 2016


#2788: RTEMS I2C API only defines Standard-mode (Sm) speed as a default.
-------------------------+----------------------
 Reporter:  chrisj       |       Owner:  chrisj
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.12
Component:  cpukit       |     Version:  4.10
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |
-------------------------+----------------------

Comment (by sebastian.huber):

 There is an I2C bus driver handler for the clock setting.  You can return
 an error code, if the user wants an unavailable clock frequency:

 {{{
 #!c
   /**
    * @brief Sets the bus clock.
    *
    * @param[in] bus The bus control.
    * @param[in] clock The desired bus clock in Hz.
    *
    * @retval 0 Successful operation.
    * @retval negative Negative error number in case of an error.
    */
   int (*set_clock)(i2c_bus *bus, unsigned long clock);
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/2788#comment:5>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list