Line data Source code
1 0 : /* 2 : * Copyright (c) 2023 Teslabs Engineering S.L. 3 : * SPDX-License-Identifier: Apache-2.0 4 : */ 5 : #ifndef INCLUDE_ZEPHYR_DT_BINDINGS_GPIO_ST_MORPHO_HEADER_H_ 6 : #define INCLUDE_ZEPHYR_DT_BINDINGS_GPIO_ST_MORPHO_HEADER_H_ 7 : 8 : /** ST Morpho pin mask (0...143). */ 9 1 : #define ST_MORPHO_PIN_MASK 0xFF 10 : 11 : /** 12 : * @name ST Morpho pin identifiers 13 : * @{ 14 : */ 15 0 : #define ST_MORPHO_L_1 0 16 0 : #define ST_MORPHO_L_2 1 17 0 : #define ST_MORPHO_L_3 2 18 0 : #define ST_MORPHO_L_4 3 19 0 : #define ST_MORPHO_L_5 4 20 0 : #define ST_MORPHO_L_6 5 21 0 : #define ST_MORPHO_L_7 6 22 0 : #define ST_MORPHO_L_8 7 23 0 : #define ST_MORPHO_L_9 8 24 0 : #define ST_MORPHO_L_10 9 25 0 : #define ST_MORPHO_L_11 10 26 0 : #define ST_MORPHO_L_12 11 27 0 : #define ST_MORPHO_L_13 12 28 0 : #define ST_MORPHO_L_14 13 29 0 : #define ST_MORPHO_L_15 14 30 0 : #define ST_MORPHO_L_16 15 31 0 : #define ST_MORPHO_L_17 16 32 0 : #define ST_MORPHO_L_18 17 33 0 : #define ST_MORPHO_L_19 18 34 0 : #define ST_MORPHO_L_20 19 35 0 : #define ST_MORPHO_L_21 20 36 0 : #define ST_MORPHO_L_22 21 37 0 : #define ST_MORPHO_L_23 22 38 0 : #define ST_MORPHO_L_24 23 39 0 : #define ST_MORPHO_L_25 24 40 0 : #define ST_MORPHO_L_26 25 41 0 : #define ST_MORPHO_L_27 26 42 0 : #define ST_MORPHO_L_28 27 43 0 : #define ST_MORPHO_L_29 28 44 0 : #define ST_MORPHO_L_30 29 45 0 : #define ST_MORPHO_L_31 30 46 0 : #define ST_MORPHO_L_32 31 47 0 : #define ST_MORPHO_L_33 32 48 0 : #define ST_MORPHO_L_34 33 49 0 : #define ST_MORPHO_L_35 34 50 0 : #define ST_MORPHO_L_36 35 51 0 : #define ST_MORPHO_L_37 36 52 0 : #define ST_MORPHO_L_38 37 53 0 : #define ST_MORPHO_L_39 38 54 0 : #define ST_MORPHO_L_40 39 55 0 : #define ST_MORPHO_L_41 40 56 0 : #define ST_MORPHO_L_42 41 57 0 : #define ST_MORPHO_L_43 42 58 0 : #define ST_MORPHO_L_44 43 59 0 : #define ST_MORPHO_L_45 44 60 0 : #define ST_MORPHO_L_46 45 61 0 : #define ST_MORPHO_L_47 46 62 0 : #define ST_MORPHO_L_48 47 63 0 : #define ST_MORPHO_L_49 48 64 0 : #define ST_MORPHO_L_50 49 65 0 : #define ST_MORPHO_L_51 50 66 0 : #define ST_MORPHO_L_52 51 67 0 : #define ST_MORPHO_L_53 52 68 0 : #define ST_MORPHO_L_54 53 69 0 : #define ST_MORPHO_L_55 54 70 0 : #define ST_MORPHO_L_56 55 71 0 : #define ST_MORPHO_L_57 56 72 0 : #define ST_MORPHO_L_58 57 73 0 : #define ST_MORPHO_L_59 58 74 0 : #define ST_MORPHO_L_60 59 75 0 : #define ST_MORPHO_L_61 60 76 0 : #define ST_MORPHO_L_62 61 77 0 : #define ST_MORPHO_L_63 62 78 0 : #define ST_MORPHO_L_64 63 79 0 : #define ST_MORPHO_L_65 64 80 0 : #define ST_MORPHO_L_66 65 81 0 : #define ST_MORPHO_L_67 66 82 0 : #define ST_MORPHO_L_68 67 83 0 : #define ST_MORPHO_L_69 68 84 0 : #define ST_MORPHO_L_70 69 85 0 : #define ST_MORPHO_L_71 70 86 0 : #define ST_MORPHO_L_72 71 87 : 88 0 : #define ST_MORPHO_R_1 72 89 0 : #define ST_MORPHO_R_2 73 90 0 : #define ST_MORPHO_R_3 74 91 0 : #define ST_MORPHO_R_4 75 92 0 : #define ST_MORPHO_R_5 76 93 0 : #define ST_MORPHO_R_6 77 94 0 : #define ST_MORPHO_R_7 78 95 0 : #define ST_MORPHO_R_8 79 96 0 : #define ST_MORPHO_R_9 80 97 0 : #define ST_MORPHO_R_10 81 98 0 : #define ST_MORPHO_R_11 82 99 0 : #define ST_MORPHO_R_12 83 100 0 : #define ST_MORPHO_R_13 84 101 0 : #define ST_MORPHO_R_14 85 102 0 : #define ST_MORPHO_R_15 86 103 0 : #define ST_MORPHO_R_16 87 104 0 : #define ST_MORPHO_R_17 88 105 0 : #define ST_MORPHO_R_18 89 106 0 : #define ST_MORPHO_R_19 90 107 0 : #define ST_MORPHO_R_20 91 108 0 : #define ST_MORPHO_R_21 92 109 0 : #define ST_MORPHO_R_22 93 110 0 : #define ST_MORPHO_R_23 94 111 0 : #define ST_MORPHO_R_24 95 112 0 : #define ST_MORPHO_R_25 96 113 0 : #define ST_MORPHO_R_26 97 114 0 : #define ST_MORPHO_R_27 98 115 0 : #define ST_MORPHO_R_28 99 116 0 : #define ST_MORPHO_R_29 100 117 0 : #define ST_MORPHO_R_30 101 118 0 : #define ST_MORPHO_R_31 102 119 0 : #define ST_MORPHO_R_32 103 120 0 : #define ST_MORPHO_R_33 104 121 0 : #define ST_MORPHO_R_34 105 122 0 : #define ST_MORPHO_R_35 106 123 0 : #define ST_MORPHO_R_36 107 124 0 : #define ST_MORPHO_R_37 108 125 0 : #define ST_MORPHO_R_38 109 126 0 : #define ST_MORPHO_R_39 110 127 0 : #define ST_MORPHO_R_40 111 128 0 : #define ST_MORPHO_R_41 112 129 0 : #define ST_MORPHO_R_42 113 130 0 : #define ST_MORPHO_R_43 114 131 0 : #define ST_MORPHO_R_44 115 132 0 : #define ST_MORPHO_R_45 116 133 0 : #define ST_MORPHO_R_46 117 134 0 : #define ST_MORPHO_R_47 118 135 0 : #define ST_MORPHO_R_48 119 136 0 : #define ST_MORPHO_R_49 120 137 0 : #define ST_MORPHO_R_50 121 138 0 : #define ST_MORPHO_R_51 122 139 0 : #define ST_MORPHO_R_52 123 140 0 : #define ST_MORPHO_R_53 124 141 0 : #define ST_MORPHO_R_54 125 142 0 : #define ST_MORPHO_R_55 126 143 0 : #define ST_MORPHO_R_56 127 144 0 : #define ST_MORPHO_R_57 128 145 0 : #define ST_MORPHO_R_58 129 146 0 : #define ST_MORPHO_R_59 130 147 0 : #define ST_MORPHO_R_60 131 148 0 : #define ST_MORPHO_R_61 132 149 0 : #define ST_MORPHO_R_62 133 150 0 : #define ST_MORPHO_R_63 134 151 0 : #define ST_MORPHO_R_64 135 152 0 : #define ST_MORPHO_R_65 136 153 0 : #define ST_MORPHO_R_66 137 154 0 : #define ST_MORPHO_R_67 138 155 0 : #define ST_MORPHO_R_68 139 156 0 : #define ST_MORPHO_R_69 140 157 0 : #define ST_MORPHO_R_70 141 158 0 : #define ST_MORPHO_R_71 142 159 0 : #define ST_MORPHO_R_72 143 160 : 161 : /** @} */ 162 : 163 : #endif /* INCLUDE_ZEPHYR_DT_BINDINGS_GPIO_ST_MORPHO_HEADER_H_ */