Normalize includes

This commit is contained in:
Attila Body 2025-06-17 16:18:28 +02:00
parent 3e904a2e71
commit eb385a113f
Signed by: abody
GPG key ID: BD0C6214E68FB5CF
11 changed files with 20 additions and 16 deletions

View file

@ -8,8 +8,10 @@
#pragma once
#include <f4ll/initialized_singleton.h>
#include <f4ll/packet_usart.h>
#include <f4ll/ringbuffer.h>
#include <f4ll/usart_core.h>
#include <platform/dma_ll.h>
namespace f4ll {

View file

@ -6,10 +6,12 @@
*/
#pragma once
#include <inttypes.h>
#include <platform/dma_ll.h>
#include <f4ll/dma_helper.h>
#include <f4ll/initialized_singleton.h>
#include <inttypes.h>
#include <platform/dma_ll.h>
namespace f4ll {

View file

@ -8,6 +8,7 @@
#pragma once
#include <inttypes.h>
#include <platform/dma_ll.h>
namespace f4ll {

View file

@ -6,6 +6,8 @@
*/
#pragma once
#include <cstdint>
#include <f4ll/dma_helper.h>
#include <f4ll/initialized_singleton.h>

View file

@ -95,7 +95,7 @@ private:
virtual void tx_dma_half_transfer(void) override;
virtual void tx_dma_error(dma_helper::dma_error_type reason) override;
struct Buffer
struct buffer
{
packet pkt;
// transfer area ends here
@ -115,8 +115,8 @@ private:
crc_handler::slot<2> m_crc_slot;
ihs_usart_callback *m_user_callback = nullptr;
uintptr_t m_user_callback_param = 0;
Buffer m_tx_buffer;
Buffer m_rx_buffers[2];
buffer m_tx_buffer;
buffer m_rx_buffers[2];
};
}

View file

@ -9,7 +9,6 @@
#include <cstddef>
#include <cstdint>
#include <cstring>
namespace f4ll {
@ -131,4 +130,4 @@ ringbuffer<SZ>::ringbuffer()
{
}
} // namespace f1ll
} // namespace f1ll

View file

@ -5,9 +5,7 @@
* Author: abody
*/
#include <cstddef>
#include <f4ll/console_handler.h>
#include <f4ll/irq_lock.h>
#include <f4ll/str_util.h>
#include <cstring>

View file

@ -6,7 +6,7 @@
* -c "tpiu config internal <logfile_full_path> uart off <cpufreq>"
*/
#include <inttypes.h>
// #include <core_cm4.h>
#include <f4ll/fault.h>
#include <f4ll/str_util.h>
#include <stm32f4xx.h>

View file

@ -183,7 +183,7 @@ void packet_usart::crc_succeeded(uintptr_t callback_param, uint32_t crc, uint8_t
{
(void)task;
Buffer &buf(m_rx_buffers[static_cast<int>(callback_param)]);
buffer &buf(m_rx_buffers[static_cast<int>(callback_param)]);
buf.busy = 1;
if (*(uint32_t *)(buf.pkt.payload + round_up_to_4((uint16_t)buf.pkt.header.payload_length)) != crc) {
@ -201,7 +201,7 @@ void packet_usart::crc_failed(uintptr_t callback_param, uint32_t crc, uint8_t ta
(void)crc;
(void)task;
Buffer &buf(m_rx_buffers[static_cast<int>(callback_param)]);
buffer &buf(m_rx_buffers[static_cast<int>(callback_param)]);
buf.busy = buf.error = true;
buf.error_info = 0;
++m_stats.payload_errror;

View file

@ -1,5 +1,7 @@
#include <f4ll/ringbuffer.h>
#include <cstring>
namespace f4ll {
ringbuffer_ext::ringbuffer_ext(uint8_t *bptr, size_type bsize)
@ -147,4 +149,4 @@ iringbuffer::size_type ringbuffer_ext::marker_diff(size_type m1, size_type m2) c
}
//
}
}

View file

@ -1,7 +1,5 @@
#include <f4ll/str_util.h>
#include <cstdint>
//////////////////////////////////////////////////////////////////////////////
size_t strcpy_ex(char *dst, char const *src)
{