mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 20:38:27 +08:00
[telemetry] rename 'device' to 'link_device'
This commit is contained in:
@@ -203,7 +203,7 @@ module Gen_onboard = struct
|
||||
print_macro_parameters h fields;
|
||||
fprintf h ")\n";
|
||||
(* Print message_send functions *)
|
||||
fprintf h "static inline void pprz_msg_send_%s(struct transport_tx *trans, struct device *dev, uint8_t ac_id" s;
|
||||
fprintf h "static inline void pprz_msg_send_%s(struct transport_tx *trans, struct link_device *dev, uint8_t ac_id" s;
|
||||
print_function_parameters h fields;
|
||||
fprintf h ") {\n";
|
||||
let size = (size_fields fields "0") in
|
||||
@@ -222,7 +222,7 @@ module Gen_onboard = struct
|
||||
fprintf h "#define DOWNLINK_SEND_%s(_trans, _dev" s;
|
||||
print_macro_parameters h fields;
|
||||
fprintf h ") {}\n";
|
||||
fprintf h "void pprz_msg_send_%s(struct transport_tx *trans, struct device *dev, uint8_t ac_id" s;
|
||||
fprintf h "void pprz_msg_send_%s(struct transport_tx *trans, struct link_device *dev, uint8_t ac_id" s;
|
||||
print_function_parameters h fields;
|
||||
fprintf h ") {}\n"
|
||||
|
||||
|
||||
@@ -212,7 +212,7 @@ let _ =
|
||||
fprintf out_h "extern struct pprz_telemetry telemetry_%s;\n" process_name;
|
||||
fprintf out_h "#endif /* PERIODIC_C_%s */\n" (String.uppercase process_name);
|
||||
|
||||
lprintf out_h "static inline void periodic_telemetry_send_%s(struct transport_tx *trans __attribute__((unused)), struct device *dev __attribute__((unused))) { /* %dHz */\n" process_name freq; (*TODO pass transport+device with correct types *)
|
||||
lprintf out_h "static inline void periodic_telemetry_send_%s(struct transport_tx *trans __attribute__((unused)), struct link_device *dev __attribute__((unused))) { /* %dHz */\n" process_name freq; (*TODO pass transport+device with correct types *)
|
||||
right ();
|
||||
output_modes out_h process_name modes freq modules_name;
|
||||
left ();
|
||||
|
||||
Reference in New Issue
Block a user