//----------------------------------------------------------------------------
///
/// \file   app_arguments.h
///
/// \brief  Json structures for parameter arguments
///
/// \date   20180910
/// \author Maximilian Seesslen <mes@seesslen.net>
///
//----------------------------------------------------------------------------


const char *boardSingleSpiArguments =
R"({
   "name": "Single shared SPI",
   "peripheries": [
      { "type": "GPIO", "periphery": "PB3"},
      { "type": "GPIO", "periphery": "PB5"},
      { "type": "GPIO", "periphery": "PB4"},
      { "type": "SPI", "periphery": "SPI1", "name": "Spi1", "mode": "shared",
         "arguments": [
            { "value": "Prefix1", "position": -1 },
            { "value": "Speed1", "position": 1 }
         ],
         "consumes": [
            { "periphery": "PB3",   "name": "SCK" },
            { "periphery": "PB5",   "name": "MOSI" },
            { "periphery": "PB4",   "name": "MISO" }
         ]
      },
      {
         "type": "GDISPLAY", "name": "GDISPLAY", "mode": "fabricate",
         "consumes": [
            {
               "type": "SPI",
               "name": "spi",
               "mode": "shared",
               "arguments": [
                  { "value": "Prefix2", "position": -1 },
                  { "value": "Speed2", "position": 1 }
               ]
            }
         ]
      }
   ]
})";


const char *appDisplayArguments =
R"({
   "name": "display",
   "periphery": [
      { "type": "GDISPLAY", "name": "nh1", "prefered_mi": "GDISPLAY B_SPI1 PB0 PB1", "class": "CGraphicDisplayNh" }
   ]
})";

const char *appDisplay2Arguments =
R"({
   "name": "display",
   "periphery": [
      {
         "type": "SPI",
         "name": "spi",
         "mode": "shared",
         "arguments": [
            { "value": "Prefix3", "position": -1 },
            { "value": "Speed3", "position": 1 }
         ]
      },
      { "type": "GDISPLAY", "name": "nh1", "prefered_mi": "GDISPLAY B_SPI1 PB0 PB1", "class": "CGraphicDisplayNh" }
   ]
})";


//---fin-----------------------------------------------------------------------
