1# Makefile - STMems_Standard_C_drivers
2#
3# Copyright (c) 2019 STMicroelectronics
4#
5# SPDX-License-Identifier: Apache-2.0
6
7set(stmems_pids
8  a3g4250d
9  ais2dw12
10  ais2ih
11  ais328dq
12  ais3624dq
13  asm330lhh
14  h3lis100dl
15  h3lis331dl
16  hts221
17  i3g4250d
18  iis2dh
19  iis2dlpc
20  iis2iclx
21  iis2mdc
22  iis328dq
23  iis3dhhc
24  iis3dwb
25  ism303dac
26  ism330dhcx
27  ism330dlc
28  l20g20is
29  l3gd20h
30  lis25ba
31  lis2de12
32  lis2dh12
33  lis2ds12
34  lis2dtw12
35  lis2dw12
36  lis2hh12
37  lis2mdl
38  lis331dlh
39  lis3de
40  lis3dh
41  lis3dhh
42  lis3dsh
43  lis3mdl
44  lps22ch
45  lps22hb
46  lps22hh
47  lps25hb
48  lps27hhtw
49  lps27hhw
50  lps33hw
51  lps33k
52  lps33w
53  lsm303agr
54  lsm303ah
55  lsm6ds3
56  lsm6ds3tr-c
57  lsm6dsl
58  lsm6dsm
59  lsm6dso
60  lsm6dso32
61  lsm6dso32x
62  lsm6dsox
63  lsm6dsr
64  lsm6dsrx
65  lsm9ds1
66  stts22h
67  stts751
68  )
69
70foreach(stmems_pid ${stmems_pids})
71  string(TOUPPER ${stmems_pid} pid_to_upper)
72  if(CONFIG_USE_STDC_${pid_to_upper})
73    zephyr_include_directories(
74        ${stmems_pid}_STdC/driver/
75        )
76    zephyr_library_sources(
77        ${stmems_pid}_STdC/driver/${stmems_pid}_reg.c
78        )
79  endif()
80endforeach()
81