2
0

configuration.proto 965 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. syntax = "proto3";
  2. package sys;
  3. import "Services.proto";
  4. import "GPIO.proto";
  5. import "Devices.proto";
  6. import "Names.proto";
  7. import "Network.proto";
  8. import "customoptions.proto";
  9. import "nanopb.proto";
  10. // Main configuration structure
  11. message Config {
  12. // Provides the global name for the pointer to
  13. // protoc plugins
  14. option (cust_msg).global_name = "platform->";
  15. option (nanopb_msgopt).msgid = 1000;
  16. // GPIO structure definition with leds, etc
  17. Gpios gpios = 1;
  18. // Device tree with SPI, I2C, SPDIF, Display, etc
  19. Dev dev = 2;
  20. // Platform services definition with options
  21. Services services = 3 ;
  22. // Main device name used for networking, etc. Services which
  23. // need a name typically has the option to overwrite its own name
  24. Names names = 4;
  25. // Hardware platform (e.g. SqueezeAMP, MUSE, etc.)
  26. string platform = 5 [(nanopb).type = FT_POINTER];
  27. NetworkConfig net = 6;
  28. string target = 7 [(nanopb).max_length = 55];
  29. }