| # Copyright (c) 2020 Project CHIP Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| import("ti_simplelink_board.gni") |
| |
| if (ti_simplelink_device_family == "cc13x2_26x2" || |
| ti_simplelink_device_family == "cc13x2x7_26x2x7") { |
| arm_arch = "armv7e-m" |
| arm_abi = "aapcs" |
| arm_cpu = "cortex-m4" |
| arm_float_abi = "hard" |
| arm_fpu = "fpv5-sp-d16" |
| arm_use_thumb = true |
| } else if (ti_simplelink_device_family == "cc32xx") { |
| arm_arch = "armv7e-m" |
| arm_abi = "" |
| arm_cpu = "cortex-m4" |
| arm_float_abi = "soft" |
| arm_fpu = "" |
| arm_use_thumb = true |
| } else { |
| assert(false, "ti_simplelink_device_family must be specified") |
| } |