diff --git a/firmware/.cproject b/firmware/.cproject index d52a8d3..b028a60 100644 --- a/firmware/.cproject +++ b/firmware/.cproject @@ -16,25 +16,28 @@ - - - - - @@ -174,25 +172,29 @@ - - - - - diff --git a/firmware/bsp_drivers/rpmsg.cpp b/firmware/bsp_drivers/rpmsg.cpp index 18f2186..9d11d10 100644 --- a/firmware/bsp_drivers/rpmsg.cpp +++ b/firmware/bsp_drivers/rpmsg.cpp @@ -53,8 +53,8 @@ RPMsgRcvStatus RPMsg::get_msg(HighToLow& msg, uint32_t timeout_ms) { uint8_t msg_buffer[HighToLow_size]; uint16_t msg_buffer_len = sizeof(msg_buffer); - uint16_t remote_core_id_, remote_end_point_; - + uint16_t remote_core_id_; + uint32_t remote_end_point_; auto status = RPMessage_recv(&rpmsg_ep, msg_buffer, &msg_buffer_len, &remote_core_id_, &remote_end_point_, 0); // FIXME (aw): what to do here, technically this couldn't fail diff --git a/firmware/bsp_drivers/rpmsg.hpp b/firmware/bsp_drivers/rpmsg.hpp index 88d2ce2..ac13874 100644 --- a/firmware/bsp_drivers/rpmsg.hpp +++ b/firmware/bsp_drivers/rpmsg.hpp @@ -36,7 +36,7 @@ class RPMsg { bool remote_peer_detected{false}; uint16_t remote_core_id; - uint16_t remote_end_point; + uint32_t remote_end_point; SemaphoreHandle_t pending_msgs_semaphore; StaticSemaphore_t pending_msgs_semaphore_buffer; diff --git a/firmware/lib/iec61851_hal.hpp b/firmware/lib/iec61851_hal.hpp index 2c5cbaf..029ce69 100644 --- a/firmware/lib/iec61851_hal.hpp +++ b/firmware/lib/iec61851_hal.hpp @@ -48,7 +48,7 @@ struct IControlPilot { struct IClock { // FIXME (aw): should be const somehow - uint32_t ticks_per_ms; + uint64_t ticks_per_ms; uint32_t (*get_current_ticks)(); };