mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Aligned fifo buffers to 32-bit for possible speed improvement.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2173 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
d4c24de556
commit
0cae6df8b0
@ -55,10 +55,10 @@ static uint8_t transfer_possible = 0;
|
||||
static uint8_t rx_packet_buffer[PIOS_USB_HID_DATA_LENGTH + 2] = { 0 };
|
||||
static uint8_t tx_packet_buffer[PIOS_USB_HID_DATA_LENGTH + 2] = { 0 };
|
||||
|
||||
uint8_t rx_pios_fifo_buf[1024];
|
||||
uint8_t rx_pios_fifo_buf[1024] __attribute__ ((aligned(4))); // align to 32-bit to try and provide speed improvement
|
||||
t_fifo_buffer rx_pios_fifo_buffer;
|
||||
|
||||
uint8_t tx_pios_fifo_buf[1024];
|
||||
uint8_t tx_pios_fifo_buf[1024] __attribute__ ((aligned(4))); // align to 32-bit to try and provide speed improvement
|
||||
t_fifo_buffer tx_pios_fifo_buffer;
|
||||
/**
|
||||
* Initialises USB COM layer
|
||||
|
@ -50,10 +50,10 @@ struct pios_usart_cfg {
|
||||
struct pios_usart_dev {
|
||||
const struct pios_usart_cfg *const cfg;
|
||||
|
||||
uint8_t rx_buffer[UART_BUFFER_SIZE];
|
||||
uint8_t rx_buffer[UART_BUFFER_SIZE] __attribute__ ((aligned(4))); // align to 32-bit to try and provide speed improvement;
|
||||
t_fifo_buffer rx;
|
||||
|
||||
uint8_t tx_buffer[UART_BUFFER_SIZE];
|
||||
uint8_t tx_buffer[UART_BUFFER_SIZE] __attribute__ ((aligned(4))); // align to 32-bit to try and provide speed improvement;
|
||||
t_fifo_buffer tx;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user