MBSP

Microcontroller Board Support Package

User Tools

Site Tools


configuration_json

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
configuration_json [ 17.08.2025 05:59] larsconfiguration_json [ 08.10.2025 14:32] (current) lars
Line 40: Line 40:
 The user shall not be bothered with the details of the used peripheral. The user should therefore not depend on peripheral names ("SPI0", "UART3", "GPIO PA9", ..) but refer to these resources by names that make sense for the user. These names are defined in this file. The user shall not be bothered with the details of the used peripheral. The user should therefore not depend on peripheral names ("SPI0", "UART3", "GPIO PA9", ..) but refer to these resources by names that make sense for the user. These names are defined in this file.
  
 +===== Types of Settings =====
 +
 +Each setting has a type. The following types are allowed:
 +
 +  * string
 +  * enum
 +  * int
 +  * bool
 +
 +==== string ====
 +
 +The value is a text.
 +
 +**Example:** "chip_name": "APM32F411VC"
 +
 +==== enum ====
 +
 +The value is one out of a limited number of possible values.
 +
 +**Example:** "type": "push pull"
 +
 +==== int ====
 +
 +The value is a number.
 +
 +**Example:** "irq": "23"
 +
 +==== bool ====
 +
 +The value is either "enabled" or "disabled"
 +
 +**Example:** "pull_up": "enabled"
  
 ===== Example ===== ===== Example =====
configuration_json.txt · Last modified: by lars