diff --git a/firmware/hackrf_usb/usb_bulk_buffer.c b/firmware/hackrf_usb/usb_bulk_buffer.c index 9048f49a..9b671e05 100644 --- a/firmware/hackrf_usb/usb_bulk_buffer.c +++ b/firmware/hackrf_usb/usb_bulk_buffer.c @@ -22,11 +22,5 @@ #include "usb_bulk_buffer.h" -/* Address of usb_bulk_buffer is set in ldscripts. If you change the name of this - * variable, it won't be where it needs to be in the processor's address space, - * unless you also adjust the ldscripts. - */ -uint8_t usb_bulk_buffer[32768]; - const uint32_t usb_bulk_buffer_mask = 32768 - 1; volatile uint32_t usb_bulk_buffer_offset = 0; diff --git a/firmware/hackrf_usb/usb_bulk_buffer.h b/firmware/hackrf_usb/usb_bulk_buffer.h index 967bd16c..2acce718 100644 --- a/firmware/hackrf_usb/usb_bulk_buffer.h +++ b/firmware/hackrf_usb/usb_bulk_buffer.h @@ -25,7 +25,12 @@ #include +/* Address of usb_bulk_buffer is set in ldscripts. If you change the name of this + * variable, it won't be where it needs to be in the processor's address space, + * unless you also adjust the ldscripts. + */ extern uint8_t usb_bulk_buffer[32768]; + extern const uint32_t usb_bulk_buffer_mask; extern volatile uint32_t usb_bulk_buffer_offset;