{
  "authors": [
    "AdaCore",
    "Daniel King"
  ],
  "configuration": {
    "generate_c": false,
    "output_dir": "gnat_user",
    "variables": {
      "AHB_Pre": {
        "default": "DIV1",
        "type": "Enum",
        "values": [
          "DIV1",
          "DIV2",
          "DIV4",
          "DIV8",
          "DIV16",
          "DIV64",
          "DIV128",
          "DIV256",
          "DIV512"
        ]
      },
      "APB_Pre": {
        "default": "DIV2",
        "type": "Enum",
        "values": [
          "DIV1",
          "DIV2",
          "DIV4",
          "DIV8",
          "DIV16"
        ]
      },
      "HSE_Bypass": {
        "default": false,
        "type": "Boolean"
      },
      "HSE_Clock_Frequency": {
        "default": 8000000,
        "first": 1,
        "last": 32000000,
        "type": "Integer"
      },
      "Interrupt_Secondary_Stack_Size": {
        "default": 128,
        "first": 1,
        "type": "Integer"
      },
      "Interrupt_Stack_Size": {
        "default": 1024,
        "first": 1,
        "type": "Integer"
      },
      "LSI_Enabled": {
        "default": true,
        "type": "Boolean"
      },
      "MCU_Pin_Count": {
        "default": "R",
        "type": "Enum",
        "values": [
          "C",
          "E",
          "F",
          "G",
          "K",
          "R",
          "V"
        ]
      },
      "MCU_Sub_Family": {
        "default": "F072",
        "type": "Enum",
        "values": [
          "F030",
          "F031",
          "F038",
          "F042",
          "F048",
          "F051",
          "F058",
          "F070",
          "F071",
          "F072",
          "F078",
          "F091",
          "F098"
        ]
      },
      "MCU_User_Code_Memory_Size": {
        "default": "B",
        "type": "String"
      },
      "PLLMUL": {
        "default": 12,
        "first": 2,
        "last": 16,
        "type": "Integer"
      },
      "PLL_Src": {
        "default": "HSI_2",
        "type": "Enum",
        "values": [
          "HSI_2",
          "HSI_PREDIV",
          "HSE_PREDIV",
          "HSI48_PREDIV"
        ]
      },
      "PREDIV": {
        "default": 2,
        "first": 1,
        "last": 16,
        "type": "Integer"
      },
      "SYSCLK_Src": {
        "default": "PLL",
        "type": "Enum",
        "values": [
          "HSI",
          "HSE",
          "PLL",
          "HSI48"
        ]
      }
    }
  },
  "depends-on": [
    {
      "gnat_arm_elf": "^15"
    }
  ],
  "description": "light runtime for the STM32F0XX SoC",
  "licenses": "GPL-3.0-or-later WITH GCC-exception-3.1",
  "long-description": "## Usage\n\nFirst edit your `alire.toml` file and add the following elements:\n - Add `light_stm32f0xx` in the dependency list:\n   ```toml\n   [[depends-on]]\n   light_stm32f0xx = \"*\"\n   ```\n - if applicable, apply any runtime configuration variables (see below).\n\nThen edit your project file to add the following elements:\n - \"with\" the run-time project files. With this, gprbuild will compile the run-time before your application\n   ```ada\n   with \"runtime_build.gpr\";\n   ```\n - Specify the `Target` and `Runtime` attributes:\n   ```ada\n      for Target use runtime_build'Target;\n      for Runtime (\"Ada\") use runtime_build'Runtime (\"Ada\");\n   ```\n - specify the `Linker` switches:\n   ```ada\n   package Linker is\n     for Switches (\"Ada\") use Runtime_Build.Linker_Switches;\n   end Linker;\n   ```\n\nThe runtime is configurable via Alire crate configuration variables.\nSee the project website for full details of the available options.\n\nBy default, the runtime is configured for the STM32F072RB. If your board has\na different MCU, then you will need to specify which MCU you are using via\nthe crate configuration. For example, to configure the runtime for the\nSTM32F030F4, add the following to your `alire.toml`:\n```toml\n[configuration.values]\nlight_stm32f0xx.MCU_Sub_Family            = \"F030\"\nlight_stm32f0xx.MCU_Pin_Count             = \"F\"\nlight_stm32f0xx.MCU_User_Code_Memory_Size = \"4\"\n```\n\nBy default, the runtime configures the clock tree for a 48 MHz system clock\nfrom the high-speed internal (HSI) oscillator. If you want a different clock\nconfiguration, then use the crate configuration variables to specify the\nconfiguration you wish to use. For example, to configure the runtime to\ngenerate a 32 MHz system clock from a 16 MHz HSE crystal oscillator:\n```toml\n[configuration.values]\n# Configure a 16 MHz HSE crystal oscillator\nlight_stm32f0xx.HSE_Clock_Frequency = 16000000\nlight_stm32f0xx.HSE_Bypass = false\n\n# Use the PLL as the SYSCLK source\nlight_stm32f0xx.SYSCLK_Src = \"PLL\"\n\n# Configure the PLL input for a 16 MHz input from the HSE\nlight_stm32f0xx.PLL_Src = \"HSE_PREDIV\"\nlight_stm32f0xx.PREDIV = 1\n\n# Configure the PLL to output 32 MHz (16 MHz * 2)\nlight_stm32f0xx.PLLMUL = 2\n\n# Configure the AHB an APB to also run at 32 MHz\nlight_stm32f0xx.AHB_Pre = \"DIV1\"\nlight_stm32f0xx.APB_Pre = \"DIV1\"\n```\n",
  "maintainers": [
    "Daniel King <damaki.gh@gmail.com>"
  ],
  "maintainers-logins": [
    "damaki"
  ],
  "name": "light_stm32f0xx",
  "origin": {
    "hashes": [
      "sha256:fde018e10cf55e2cf54991d246e9ac42767b5a24db2c0958c6a2c86af9c8b649",
      "sha512:2336fbef713b81ed3b5927a61b4e5098b5c41982c68362f901f124020b14e796a5cff857ad0b5e8b775282174da486779419e8bedb9083decaf86467f487e140"
    ],
    "url": "https://github.com/damaki/community-bb-runtimes/releases/download/v15.4.0/light-stm32f0xx-15.4.0.tar.gz"
  },
  "project-files": [
    "runtime_build.gpr"
  ],
  "tags": [
    "embedded",
    "runtime",
    "stm32f0"
  ],
  "version": "15.4.0",
  "website": "https://github.com/damaki/community-bb-runtimes"
}
