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 ais25ba 10 ais2dw12 11 ais2ih 12 ais328dq 13 ais3624dq 14 asm330lhb 15 asm330lhh 16 asm330lhhx 17 h3lis100dl 18 h3lis331dl 19 hts221 20 i3g4250d 21 iis2dh 22 iis2dlpc 23 iis2iclx 24 iis2mdc 25 iis328dq 26 iis3dhhc 27 iis3dwb 28 ilps22qs 29 ilps28qsw 30 ism303dac 31 ism330dhcx 32 ism330dlc 33 ism330is 34 l20g20is 35 l3gd20h 36 lis25ba 37 lis2de12 38 lis2dh 39 lis2dh12 40 lis2ds12 41 lis2dtw12 42 lis2du12 43 lis2dux12 44 lis2duxs12 45 lis2dw12 46 lis2hh12 47 lis2mdl 48 lis331dlh 49 lis3de 50 lis3dh 51 lis3dhh 52 lis3dsh 53 lis3mdl 54 lps22ch 55 lps22df 56 lps22hb 57 lps22hh 58 lps25hb 59 lps27hhtw 60 lps27hhw 61 lps28dfw 62 lps33hw 63 lps33k 64 lps33w 65 lsm303agr 66 lsm303ah 67 lsm6ds3 68 lsm6ds3tr-c 69 lsm6dsl 70 lsm6dsm 71 lsm6dso 72 lsm6dso16is 73 lsm6dso32 74 lsm6dso32x 75 lsm6dsox 76 lsm6dsr 77 lsm6dsrx 78 lsm6dsv16bx 79 lsm6dsv16x 80 lsm6dsv 81 lsm9ds1 82 sths34pf80 83 stts22h 84 stts751 85 ) 86 87foreach(stmems_pid ${stmems_pids}) 88 string(TOUPPER ${stmems_pid} pid_to_upper) 89 if(CONFIG_USE_STDC_${pid_to_upper}) 90 zephyr_include_directories( 91 ${stmems_pid}_STdC/driver/ 92 ) 93 zephyr_library_sources( 94 ${stmems_pid}_STdC/driver/${stmems_pid}_reg.c 95 ) 96 endif() 97endforeach() 98