Skip to content

Commit 2adb3c9

Browse files
committed
syntiant_tinyilib: import library
1 parent f026190 commit 2adb3c9

File tree

4 files changed

+2901
-0
lines changed

4 files changed

+2901
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=Syntiant_ilib
2+
version=1.0
3+
author=Arduino
4+
maintainer=Arduino <info@arduino.cc>
5+
sentence=Enables the communication with NDP120 (low level)
6+
paragraph=
7+
category=Communication
8+
url=
9+
architectures=mbed,mbed_nicla
10+
dot_a_linkage=true

libraries/syntiant_ilib/src/Makefile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright (c) 2021 Syntiant Corp. All rights reserved.
2+
# Contact at http://www.syntiant.com
3+
#
4+
# This software is available to you under a choice of one of two licenses.
5+
# You may choose to be licensed under the terms of the GNU General Public
6+
# License (GPL) Version 2, available from the file LICENSE in the main
7+
# directory of this source tree, or the OpenIB.org BSD license below. Any
8+
# code involving Linux software will require selection of the GNU General
9+
# Public License (GPL) Version 2.
10+
#
11+
# OPENIB.ORG BSD LICENSE
12+
#
13+
# Redistribution and use in source and binary forms, with or without
14+
# modification, are permitted provided that the following conditions are met:
15+
#
16+
# 1. Redistributions of source code must retain the above copyright notice,
17+
# this list of conditions and the following disclaimer.
18+
#
19+
# 2. Redistributions in binary form must reproduce the above copyright
20+
# notice, this list of conditions and the following disclaimer in the
21+
# documentation and/or other materials provided with the distribution.
22+
#
23+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29+
# DEALINGS IN THE SOFTWARE.
30+
31+
CFLAGS= -g3 -O3 -Wall -Werror -Wc++-compat -fpic -I. -D_FILE_OFFSET_BITS=64
32+
33+
34+
ILIB_LIBRARY=synilib
35+
ILIB_STATIC_LIBRARY=lib$(ILIB_LIBRARY).a
36+
ILIB_OBJS := syntiant_ndp120_tiny.o
37+
38+
$(ILIB_STATIC_LIBRARY): $(ILIB_OBJS)
39+
$(AR) rcs $@ $^
40+
41+
all: $(ILIB_STATIC_LIBRARY)
42+
43+
-include $(OBJS:.o=.d)
44+
45+
%.o: %.c
46+
$(CC) -MM -MT $*.o $(CFLAGS) $(CPPFLAGS) $*.c > $*.d
47+
$(CC) -c $(CFLAGS) $(CPPFLAGS) $*.c -o $*.o
48+
49+
clean:
50+
$(RM) -f $(ILIB_STATIC_LIBRARY) \
51+
$(ILIB_OBJS) *.d

0 commit comments

Comments
 (0)