Skip to content

Commit

Permalink
Add call to WP PrepareReception to allow target specific code (nanofr…
Browse files Browse the repository at this point in the history
…amework#2917)

***NO_CI***
  • Loading branch information
josesimoes authored Apr 24, 2024
1 parent 96ce46a commit 453bf3d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions targets/ChibiOS/_common/WireProtocol_ReceiverThread.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ __attribute__((noreturn)) void ReceiverThread(void const *argument)
{
(void)argument;

osDelay(500);

WP_Message_PrepareReception();

// loop until thread receives a request to terminate
Expand Down Expand Up @@ -53,7 +51,12 @@ __attribute__((noreturn)) void ReceiverThread(void const *argument)
// this function never returns
}

__nfweak void WP_Message_PrepareReception_Target()
{
// empty on purpose, to be implemented by target if needed
}

void WP_Message_PrepareReception_Platform()
{
// empty on purpose, nothing to configure
WP_Message_PrepareReception_Target();
}

0 comments on commit 453bf3d

Please sign in to comment.