Fix ports stm32f4xx IAR project warnings (#268)
Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -32,11 +32,11 @@
|
|||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>Input description</name>
|
<name>Input description</name>
|
||||||
<state>Automatic choice of formatter, without multibyte support.</state>
|
<state>Full formatting, without multibyte support.</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>Output description</name>
|
<name>Output description</name>
|
||||||
<state>Automatic choice of formatter, without multibyte support.</state>
|
<state>Full formatting, without multibyte support.</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>GOutputBinary</name>
|
<name>GOutputBinary</name>
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
<option>
|
<option>
|
||||||
<name>OGPrintfVariant</name>
|
<name>OGPrintfVariant</name>
|
||||||
<version>0</version>
|
<version>0</version>
|
||||||
<state>0</state>
|
<state>1</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>OGPrintfMultibyteSupport</name>
|
<name>OGPrintfMultibyteSupport</name>
|
||||||
@@ -182,7 +182,7 @@
|
|||||||
<option>
|
<option>
|
||||||
<name>OGScanfVariant</name>
|
<name>OGScanfVariant</name>
|
||||||
<version>0</version>
|
<version>0</version>
|
||||||
<state>0</state>
|
<state>1</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>OGScanfMultibyteSupport</name>
|
<name>OGScanfMultibyteSupport</name>
|
||||||
|
|||||||
@@ -577,9 +577,13 @@ static void MSTP_Receive_Frame_FSM(void)
|
|||||||
/* if a frame-receipt callback was provided, call */
|
/* if a frame-receipt callback was provided, call */
|
||||||
/* it for this frame */
|
/* it for this frame */
|
||||||
if (Frame_Rx_Callback != NULL) {
|
if (Frame_Rx_Callback != NULL) {
|
||||||
Frame_Rx_Callback(SourceAddress,
|
/* convert from volatile in defined order */
|
||||||
DestinationAddress, FrameType, InputBuffer,
|
uint8_t source, destination, frame;
|
||||||
DataLength);
|
source = SourceAddress;
|
||||||
|
destination = DestinationAddress;
|
||||||
|
frame = FrameType;
|
||||||
|
Frame_Rx_Callback(source, destination,
|
||||||
|
frame, InputBuffer, DataLength);
|
||||||
}
|
}
|
||||||
/* wait for the start of the next frame. */
|
/* wait for the start of the next frame. */
|
||||||
Receive_State = MSTP_RECEIVE_STATE_IDLE;
|
Receive_State = MSTP_RECEIVE_STATE_IDLE;
|
||||||
@@ -587,7 +591,10 @@ static void MSTP_Receive_Frame_FSM(void)
|
|||||||
/* receive the data portion of the frame. */
|
/* receive the data portion of the frame. */
|
||||||
if ((Address == This_Station) ||
|
if ((Address == This_Station) ||
|
||||||
(Address == MSTP_BROADCAST_ADDRESS)) {
|
(Address == MSTP_BROADCAST_ADDRESS)) {
|
||||||
if (DataLength <= InputBufferSize) {
|
/* convert from volatile in defined order */
|
||||||
|
uint32_t length;
|
||||||
|
length = DataLength;
|
||||||
|
if (length <= InputBufferSize) {
|
||||||
/* Data */
|
/* Data */
|
||||||
Receive_State = MSTP_RECEIVE_STATE_DATA;
|
Receive_State = MSTP_RECEIVE_STATE_DATA;
|
||||||
} else {
|
} else {
|
||||||
@@ -662,8 +669,13 @@ static void MSTP_Receive_Frame_FSM(void)
|
|||||||
/* if a frame-receipt callback was provided, call it */
|
/* if a frame-receipt callback was provided, call it */
|
||||||
/* for this frame */
|
/* for this frame */
|
||||||
if (Frame_Rx_Callback != NULL) {
|
if (Frame_Rx_Callback != NULL) {
|
||||||
Frame_Rx_Callback(SourceAddress, DestinationAddress,
|
/* convert from volatile in defined order */
|
||||||
FrameType, InputBuffer, DataLength);
|
uint8_t source, destination, frame;
|
||||||
|
source = SourceAddress;
|
||||||
|
destination = DestinationAddress;
|
||||||
|
frame = FrameType;
|
||||||
|
Frame_Rx_Callback(source, destination,
|
||||||
|
frame, InputBuffer, DataLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -866,7 +878,7 @@ static bool MSTP_Master_Node_FSM(void)
|
|||||||
/* ReceivedPFM */
|
/* ReceivedPFM */
|
||||||
destination = SourceAddress;
|
destination = SourceAddress;
|
||||||
source = This_Station;
|
source = This_Station;
|
||||||
if (DestinationAddress == This_Station) {
|
if (DestinationAddress == source) {
|
||||||
MSTP_Send_Frame(FRAME_TYPE_REPLY_TO_POLL_FOR_MASTER,
|
MSTP_Send_Frame(FRAME_TYPE_REPLY_TO_POLL_FOR_MASTER,
|
||||||
destination, source, NULL, 0);
|
destination, source, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user