Skip to content

Commit 6bb05ee

Browse files
committed
!fixup
1 parent c21b794 commit 6bb05ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/arduino/stm32/OpenAMP/mbox_ipcc.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ int MAILBOX_Poll(struct virtio_device *vdev, uint32_t vring_id)
119119
* RING_NUM_BUFFS times at maximum.
120120
*/
121121
rproc_virtio_notified(vdev, VRING1_ID);
122-
msg_received_ch2 = RX_NO_MSG;
122+
msg_received_ch2 = MBOX_NO_MSG;
123123
ret = 0;
124124
}
125125
break;
@@ -171,7 +171,7 @@ void IPCC_channel1_callback(IPCC_HandleTypeDef *hipcc,
171171
uint32_t ChannelIndex, IPCC_CHANNELDirTypeDef ChannelDir)
172172
{
173173
(void) ChannelDir;
174-
msg_received_ch1 = RX_BUF_FREE;
174+
msg_received_ch1 = MBOX_BUF_FREE;
175175

176176
/* Inform the host processor that we have received the 'buff free' msg */
177177
HAL_IPCC_NotifyCPU(hipcc, ChannelIndex, IPCC_CHANNEL_DIR_RX);
@@ -182,7 +182,7 @@ void IPCC_channel2_callback(IPCC_HandleTypeDef *hipcc,
182182
uint32_t ChannelIndex, IPCC_CHANNELDirTypeDef ChannelDir)
183183
{
184184
(void) ChannelDir;
185-
msg_received_ch2 = RX_NEW_MSG;
185+
msg_received_ch2 = MBOX_NEW_MSG;
186186

187187
/* Inform the host processor that we have received the msg */
188188
HAL_IPCC_NotifyCPU(hipcc, ChannelIndex, IPCC_CHANNEL_DIR_RX);

0 commit comments

Comments
 (0)