Skip to content

Commit

Permalink
fix compiler complaints about volatile on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Dewb committed Oct 7, 2024
1 parent 2821d75 commit 2fe101a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions firmware/mock_hardware/common/ftdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ u8* ftdi_rx_buf(void)
return 0;
}

u8 ftdi_rx_bytes(void)
volatile u8 ftdi_rx_bytes(void)
{
return 0;
}

u8 ftdi_rx_busy(void) { return 0; }
u8 ftdi_tx_busy(void) { return 0; }
volatile u8 ftdi_rx_busy(void) { return 0; }
volatile u8 ftdi_tx_busy(void) { return 0; }

u8 ftdi_connected(void)
{
Expand Down
6 changes: 3 additions & 3 deletions firmware/mock_hardware/include/ftdi.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void ftdi_change(uhc_device_t* dev, u8 plug);
void ftdi_setup(void);

u8* ftdi_rx_buf(void);
u8 ftdi_rx_bytes(void);
u8 ftdi_rx_busy(void);
u8 ftdi_tx_busy(void);
volatile u8 ftdi_rx_bytes(void);
volatile u8 ftdi_rx_busy(void);
volatile u8 ftdi_tx_busy(void);
u8 ftdi_connected(void);
2 changes: 1 addition & 1 deletion firmware/mock_hardware/mock_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ u8* mock_serial_rx_buf(void)
return mock_serial_current_message_buffer;
}

u8 mock_serial_rx_bytes(void)
volatile u8 mock_serial_rx_bytes(void)
{
return mock_serial_current_message_length;
}
Expand Down
2 changes: 1 addition & 1 deletion firmware/whitewhale-kria
Submodule whitewhale-kria updated 1 files
+3 −3 src/main.c

0 comments on commit 2fe101a

Please sign in to comment.