<?xml version="1.0" encoding="UTF-8"?>
<package schemaVersion="1.7.36" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="https://raw.githubusercontent.com/Open-CMSIS-Pack/Open-CMSIS-Pack-Spec/v1.7.36/schema/PACK.xsd">
  <name>STM32L073Z-EVAL_BSP</name>
  <vendor>Keil</vendor>
  <description overview="Documents/OVERVIEW.md">STMicroelectronics STM32L0 Series STM32L073Z-EVAL Board Support Pack</description>
  <url>https://www.keil.com/pack/</url>
  <repository type="git">https://github.com/Open-CMSIS-Pack/STM32L073Z-EVAL_BSP.git</repository>
  <license>LICENSES</license>
  <licenseSets>
    <licenseSet id="all" default="true" gating="true">
      <license title="Apache-2.0 License for CMSIS add-ons"                  name="LICENSE-Apache-2.0"   spdx="Apache-2.0"/>
      <license title="BSD-3-Clause License for STMicroelectronics STM32 HAL" name="LICENSE-BSD-3-Clause" spdx="BSD-3-Clause"/>
    </licenseSet>
  </licenseSets>

  <releases>
    <release version="1.1.0" date="2025-09-10" tag="v1.1.0">
      Blinky project:
      - Specified thread names using thread attributes
      - Renamed thread IDs
      - Modified app_main_thread (replace loop forever)
      - Added dbgconf files
      - Updated RTE_Components.h files
      - Added DWARF-5 debug information
      - Added generated output files
      Package Description (pdsc):
      - Removed 'compatibleDevice' element
    </release>
    <release version="1.0.0" date="2025-03-21" tag="v1.0.0">
      Prepared for new CMSIS-Toolbox CubeMX integration
      Board description for STM32L073Z-EVAL
      Blinky example (CMSIS Solution)
      Default Board Layer
      CMSIS Drivers:
      - CMSIS-Driver VIO
    </release>
  </releases>

  <keywords>
    <!-- keywords for indexing -->
    <keyword>ST</keyword>
    <keyword>Board Support Pack</keyword>
    <keyword>STM32L0</keyword>
    <keyword>STM32L073Z-EVAL</keyword>
  </keywords>

  <requirements>
    <packages>
      <package vendor="Keil" name="STM32L0xx_DFP"      version="3.0.0-0"/>
      <package vendor="ARM"  name="CMSIS"              version="6.0.0-0"/>
      <package vendor="ARM"  name="CMSIS-Driver_STM32" version="1.2.0-0"/>
    </packages>
  </requirements>

  <conditions>
    <!-- Board Condition -->
    <condition id="STM32L073Z-EVAL">
      <description>STMicroelectronics STM32L073Z-EVAL Board</description>
      <require Bvendor="STMicroelectronics" Bname="STM32L073Z-EVAL"/>
    </condition>

    <!-- Board Condition + CMSIS Driver GPIO-->
    <condition id="STM32L073Z-EVAL GPIO">
      <description>STMicroelectronics STM32L073Z-EVAL Board with CMSIS Driver GPIO</description>
      <require condition="STM32L073Z-EVAL"/>
      <require Cclass="CMSIS Driver" Cgroup="GPIO"/>
    </condition>
  </conditions>

  <components>
    <!-- CMSIS VIO Driver component for STM32L073Z-EVAL -->
    <component Cclass="CMSIS Driver" Cgroup="VIO" Csub="Board" Cversion="1.0.0" Capiversion="1.0.0" condition="STM32L073Z-EVAL GPIO">
      <description>I/O implementation for STM32L073Z-EVAL</description>
      <RTE_Components_h>
        #define RTE_VIO_BOARD
        #define RTE_VIO_STM32L073Z_EVAL
      </RTE_Components_h>
      <files>
        <file category="source" name="CMSIS/Driver/vio_STM32L073Z-EVAL.c"/>
      </files>
    </component>
  </components>

  <csolution>
    <clayer type="Board" path="Layers/Default" file="Board.clayer.yml" copy-to="Board/STM32L073Z-EVAL" condition="STM32L073Z-EVAL"/>
  </csolution>

  <boards>
    <!-- STM32L073Z-EVAL -->
    <board vendor="STMicroelectronics" name="STM32L073Z-EVAL" revision="Rev.A"
           salesContact="https://www.st.com/content/st_com/en/contact-us.html">
      <description>STM32 Evaluation development board with STM32L073VZTx MCU</description>
      <image small="Images/stm32l073z-eval_small.png"
             large="Images/stm32l073z-eval_large.png"/>
      <book category="overview"  name="https://www.st.com/en/evaluation-tools/stm32l073z-eval.html" title="STM32L073Z-EVAL Board"/>
      <book category="overview"  name="https://www.st.com/resource/en/data_brief/stm32l073z-eval.pdf" title="Data Brief"/>
      <book category="manual"    name="https://www.st.com/resource/en/user_manual/um1878-evaluation-board-with-stm32l073vz-mcu-stmicroelectronics.pdf" title="User Manual"/>
      <book category="schematic" name="https://www.st.com/resource/en/schematic_pack/mb1168-l073vzt6-c02-schematic.pdf" title="Schematics"/>
      <book category="other"     name="Documents/README.md" title="Guide"/>
      <mountedDevice    deviceIndex="0" Dvendor="STMicroelectronics:13" Dname="STM32L073VZTx"/>
      <feature type="ODbg"      n="1"              name="On-board ST-LINK/V2-1"/>
      <feature type="XTAL"      n="8000000"        name="8 MHz Crystal Oscillator"/>
      <feature type="PWR"       n="5"              name="USB Powered"/>
      <feature type="PWR"       n="3"  m="5"       name="External Supply"/> 
      <feature type="USB"       n="1"              name="User USB 2.0 FS with Mini-B connector"/>
      <feature type="Button"    n="2"              name="Push-buttons: Tamper and Reset"/>
      <feature type="Joystick"  n="1"              name="5-position Joystick"/>
      <feature type="GLCD"      n="1"  m="240.320" name="2.8-inch color TFT LCD with resistive touch panel"/>
      <feature type="LED"       n="1"  m="8.40"    name="LCD 40 × 8 segments"/>
      <feature type="Touch"     n="1"              name="Linear Touch Sensor or four Touch Keys"/>
      <feature type="LED"       n="9"              name="LEDs: COM, Power, 4 user"/>
      <feature type="IrDA"      n="1"              name="IrDA transceiver"/>
      <feature type="PressSens" n="1"              name="Pressure sensor"/>
      <feature type="RS232"     n="1"              name="RS-232 communication interface"/>
      <feature type="MemCard"   n="1"              name="microSD card"/>
      <feature type="ConnOther" n="1"              name="RF-EEPROM daughterboard expansion"/>
      <feature type="ConnOther" n="2"              name="I/O expansion connector"/>
      <debugInterface adapter="SW" connector="20-pin JTAG (0.1 inch connector)"/>
      <debugInterface adapter="SW" connector="20-pin Cortex debug + ETM Trace (0.05 inch connector)"/>
      <debugInterface adapter="ST-Link" connector="USB"/>
      <debugProbe connector="USB" debugClock="10000000" debugLink="swd" name="ST-Link"/>
    </board>
  </boards>

  <examples>
    <example name="Blinky" folder="Examples/Blinky" doc="README.md">
      <description>CMSIS-RTOS2 Blinky example with VIO</description>
      <board name="STM32L073Z-EVAL" vendor="STMicroelectronics"/>
      <project>
        <environment name="csolution" load="Blinky.csolution.yml"/>
      </project>
    </example>
  </examples>
</package>
