[riot-commits] [RIOT-OS/RIOT] 937c95: cpu/lpc2387: implement periph/i2c

benpicco noreply at github.com
Thu Feb 27 09:58:37 CET 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 937c954d925690476df11760dedf3e0b4361ecf9
      https://github.com/RIOT-OS/RIOT/commit/937c954d925690476df11760dedf3e0b4361ecf9
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2020-02-26 (Wed, 26 Feb 2020)

  Changed paths:
    M cpu/lpc2387/include/periph_cpu.h
    M cpu/lpc2387/include/vendor/lpc23xx.h
    A cpu/lpc2387/periph/i2c.c

  Log Message:
  -----------
  cpu/lpc2387: implement periph/i2c

The lpc23xx MCU has up to three I2C interfaces.
This adds a driver for it.
The peripheral works in interrupt mode, each change of the state machine
will generate an interrupt.
The response to the states are laid out in the data sheet.

This replaces the old driver that was removed in c560e28eb69000b9c68b4b6210aae271a9d8b622


  Commit: 4d5d3eb9e6d88c66f923239e69fb5f2e5788acbb
      https://github.com/RIOT-OS/RIOT/commit/4d5d3eb9e6d88c66f923239e69fb5f2e5788acbb
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2020-02-26 (Wed, 26 Feb 2020)

  Changed paths:
    M boards/msba2/Makefile.features
    M boards/msba2/include/periph_conf.h

  Log Message:
  -----------
  boards/msba2: hook up i2c

I2C is not used by any chip on the board, but I2C2 is availiable
on the JP3 connector (shared with UART2).

 - SDA: P0.10
 - SCL: P0.11


  Commit: 9d1a2b5fb43506e21b6adfee271df93aa07f669e
      https://github.com/RIOT-OS/RIOT/commit/9d1a2b5fb43506e21b6adfee271df93aa07f669e
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2020-02-26 (Wed, 26 Feb 2020)

  Changed paths:
    M boards/mcb2388/Makefile.features
    M boards/mcb2388/include/periph_conf.h

  Log Message:
  -----------
  boards/mcb2388: add I2C config

The pins for I2C0 and I2C1 are available on the board,
nothing is wired up to them.


  Commit: 00131bb7459bc8652b6c9c5960f5202791e5881f
      https://github.com/RIOT-OS/RIOT/commit/00131bb7459bc8652b6c9c5960f5202791e5881f
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2020-02-26 (Wed, 26 Feb 2020)

  Changed paths:
    M drivers/at24mac/at24mac.c

  Log Message:
  -----------
  drivers/at24mac: include kernel_defines.h

We need that header file for the ARRAY_SIZE() macro.


  Commit: 50a5845b1572bbd8067c532e24fe186e1aea946b
      https://github.com/RIOT-OS/RIOT/commit/50a5845b1572bbd8067c532e24fe186e1aea946b
  Author: benpicco <benpicco at beuth-hochschule.de>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    M boards/mcb2388/Makefile.features
    M boards/mcb2388/include/periph_conf.h
    M boards/msba2/Makefile.features
    M boards/msba2/include/periph_conf.h
    M cpu/lpc2387/include/periph_cpu.h
    M cpu/lpc2387/include/vendor/lpc23xx.h
    A cpu/lpc2387/periph/i2c.c
    M drivers/at24mac/at24mac.c

  Log Message:
  -----------
  Merge pull request #13037 from benpicco/lpc23xx_i2c

cpu/lpc2387: implement periph/i2c


Compare: https://github.com/RIOT-OS/RIOT/compare/c7e1c350a5bc...50a5845b1572


More information about the commits mailing list