aboutsummaryrefslogtreecommitdiffstats
path: root/examples/using_double_on_avr/doubleproto.proto
diff options
context:
space:
mode:
Diffstat (limited to 'examples/using_double_on_avr/doubleproto.proto')
-rw-r--r--examples/using_double_on_avr/doubleproto.proto13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/using_double_on_avr/doubleproto.proto b/examples/using_double_on_avr/doubleproto.proto
new file mode 100644
index 00000000..d8b7f2db
--- /dev/null
+++ b/examples/using_double_on_avr/doubleproto.proto
@@ -0,0 +1,13 @@
+// A message containing doubles, as used by other applications.
+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;
+}
+