Changeset 0c1413c in rtems


Ignore:
Timestamp:
Jun 14, 2016, 3:10:05 PM (3 years ago)
Author:
Alexander Krutwig <alexander.krutwig@…>
Branches:
master
Children:
ec5d95e1
Parents:
0fddefe
git-author:
Alexander Krutwig <alexander.krutwig@…> (06/14/16 15:10:05)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/23/16 05:54:20)
Message:

bsp/atsam: Add I2C driver

Location:
c/src/lib/libbsp/arm/atsam
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/atsam/Makefile.am

    r0fddefe r0c1413c  
    5252include_bsp_HEADERS += include/irq.h
    5353include_bsp_HEADERS += include/pin-config.h
     54include_bsp_HEADERS += include/atsam-i2c.h
     55include_bsp_HEADERS += include/i2c.h
    5456
    5557include_libchipdir = $(includedir)/libchip
     
    427429endif
    428430
     431# i2c
     432libbsp_a_SOURCES += i2c/atsam_i2c_bus.c
     433libbsp_a_SOURCES += i2c/atsam_i2c_init.c
     434
    429435# Includes
    430436libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/CMSIS/Include
  • c/src/lib/libbsp/arm/atsam/preinstall.am

    r0fddefe r0c1413c  
    134134PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pin-config.h
    135135
     136$(PROJECT_INCLUDE)/bsp/atsam-i2c.h: include/atsam-i2c.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     137        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/atsam-i2c.h
     138PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/atsam-i2c.h
     139
     140$(PROJECT_INCLUDE)/bsp/i2c.h: include/i2c.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     141        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/i2c.h
     142PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/i2c.h
     143
    136144$(PROJECT_INCLUDE)/libchip/$(dirstamp):
    137145        @$(MKDIR_P) $(PROJECT_INCLUDE)/libchip
Note: See TracChangeset for help on using the changeset viewer.