aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/nanopb/examples/using_double_on_avr/doubleproto.proto
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nanopb/examples/using_double_on_avr/doubleproto.proto')
-rw-r--r--third_party/nanopb/examples/using_double_on_avr/doubleproto.proto15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/nanopb/examples/using_double_on_avr/doubleproto.proto b/third_party/nanopb/examples/using_double_on_avr/doubleproto.proto
new file mode 100644
index 0000000000..72d3f9c127
--- /dev/null
+++ b/third_party/nanopb/examples/using_double_on_avr/doubleproto.proto
@@ -0,0 +1,15 @@
+// A message containing doubles, as used by other applications.
+syntax = "proto2";
+
+message DoubleMessage {
+ required double field1 = 1;
+ required double field2 = 2;
+}
+
+// A message containing doubles, but redefined using uint64_t.
+// For use in AVR code.
+message AVRDoubleMessage {
+ required fixed64 field1 = 1;
+ required fixed64 field2 = 2;
+}
+