Changeset 369372c3 in rtems


Ignore:
Timestamp:
06/15/17 11:35:20 (5 years ago)
Author:
Sichen Zhao <1473996754@…>
Branches:
5, master
Children:
ae359a9d
Parents:
8f550d2
git-author:
Sichen Zhao <1473996754@…> (06/15/17 11:35:20)
git-committer:
Joel Sherrill <joel@…> (06/15/17 20:01:31)
Message:

Fix beagle i2c file bbb-i2c.c comment issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/beagle/i2c/bbb-i2c.c

    r8f550d2 r369372c3  
    88
    99/*
     10 * Copyright (c) 2016 Punit Vara <punitvara@gmail.com>
    1011 * Copyright (c) 2017 Sichen Zhao <zsc19940506@gmail.com>
    1112 *
     
    4950
    5051  /*
    51   ** Waiting for IDLEST field in AM335X_CM_WKUP_CONTROL_CLKCTRL
    52   ** register to attain
    53   ** desired value.
    54   */
     52   * Waiting for IDLEST field in AM335X_CM_WKUP_CONTROL_CLKCTRL
     53   * register to attain desired value.
     54   */
    5555  while ( ( AM335X_CM_WKUP_CONTROL_CLKCTRL_IDLEST_FUNC <<
    5656            AM335X_CM_WKUP_CONTROL_CLKCTRL_IDLEST_SHIFT ) !=
     
    5959
    6060  /*
    61   ** Waiting for CLKACTIVITY_I2C0_GFCLK field in AM335X_CM_WKUP_CLKSTCTRL
    62   ** register to attain desired value.
    63   */
     61   * Waiting for CLKACTIVITY_I2C0_GFCLK field in AM335X_CM_WKUP_CLKSTCTRL
     62   * register to attain desired value.
     63   */
    6464  while ( AM335X_CM_WKUP_CLKSTCTRL_CLKACTIVITY_I2C0_GFCLK !=
    6565          ( REG( AM335X_SOC_CM_WKUP_REGS + AM335X_CM_WKUP_CLKSTCTRL ) &
     
    6767
    6868  /*
    69   ** Waiting for IDLEST field in AM335X_CM_WKUP_I2C0_CLKCTRL register to attain
    70   ** desired value.
    71   */
     69   * Waiting for IDLEST field in AM335X_CM_WKUP_I2C0_CLKCTRL register to attain
     70   * desired value.
     71   */
    7272  while ( ( AM335X_CM_WKUP_I2C0_CLKCTRL_IDLEST_FUNC <<
    7373            AM335X_CM_WKUP_I2C0_CLKCTRL_IDLEST_SHIFT ) !=
     
    101101}
    102102/*
    103    Possible values for msg->flag
     103 * Possible values for msg->flag
    104104 * - @ref I2C_M_TEN,
    105105 * - @ref I2C_M_RD,
     
    117117)
    118118{
    119   /*can be configured multiple modes here.
    120    **Need to think about own address modes*/
     119  /*
     120   * Can be configured multiple modes here.
     121   * Need to think about own address modes
     122   */
    121123  if ( ( msgs->flags & I2C_M_TEN ) == 0 ) {
    122     /* 7-bit mode slave address mode*/
     124    /* 7-bit mode slave address mode */
    123125    REG( &regs->BBB_I2C_CON ) = AM335X_I2C_CFG_7BIT_SLAVE_ADDR;
    124126  } else {
    125     /* 10-bit slave address mode*/
     127    /* 10-bit slave address mode */
    126128    REG( &regs->BBB_I2C_CON ) = AM335X_I2C_CFG_10BIT_SLAVE_ADDR;
    127129  }
     
    283285  bbb_i2c_bus           *bus = arg;
    284286  volatile bbb_i2c_regs *regs = bus->regs;
    285   /* get status of enabled interrupts */
     287  /* Get status of enabled interrupts */
    286288  uint32_t irqstatus = REG( &regs->BBB_I2C_IRQSTATUS );
    287289  bool     done = false;
    288290
    289   /* Clear all enabled interrupt except receive ready
    290      and transmit ready interrupt in status register */
     291  /*
     292   * Clear all enabled interrupt except receive ready
     293   * and transmit ready interrupt in status register
     294   */
    291295  REG( &regs->BBB_I2C_IRQSTATUS ) =
    292296    ( irqstatus & ~( AM335X_I2C_IRQSTATUS_RRDY |
     
    418422  int               err;
    419423
    420   /*check bus number is >0 & <MAX*/
     424  /* Check bus number is >0 & <MAX */
    421425  bus = (bbb_i2c_bus *) i2c_bus_alloc_and_init( sizeof( *bus ) );
    422426
Note: See TracChangeset for help on using the changeset viewer.