Skip to content

Commit

Permalink
Merge pull request #16 from OpenIPC/zigfisher_20230810_add_sc3336_driver
Browse files Browse the repository at this point in the history
Add SC3336 driver
  • Loading branch information
flyrouter authored Aug 10, 2023
2 parents 8ecaedd + 436e1e9 commit 092dbde
Show file tree
Hide file tree
Showing 4 changed files with 2,469 additions and 0 deletions.
17 changes: 17 additions & 0 deletions libraries/sensor/hi3516ev200/smart_sc3336/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
LIB_NAME := libsns_sc3336

override CFLAGS += -DSDK_CODE=$(SDK_CODE) -fPIC -I$(CURDIR)/../../../../include

SRCS := $(wildcard *.c)
OBJS := $(SRCS:%.c=%.o) $(ASM_SRCS:%.S=%.o)

all: $(LIB_NAME).so $(LIB_NAME).a

$(LIB_NAME).so: $(OBJS)
$(CC) -shared -o $@ $(OBJS)

$(LIB_NAME).a: $(OBJS)
$(AR) -rcs $(LIB_NAME).a $(OBJS)

clean:
-rm $(OBJS) $(LIB_NAME).so
Loading

0 comments on commit 092dbde

Please sign in to comment.