Skip to content

Commit 7be6eb5

Browse files
committed
🎨 (clangformat): Run on all files
1 parent e1e78fe commit 7be6eb5

File tree

16 files changed

+86
-86
lines changed

16 files changed

+86
-86
lines changed

‎drivers/CoreFlashMemory/source/CoreFlashIS25LP016D.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ void CoreFlashIS25LP016D::reset()
2121
_flash_manager.reset();
2222
}
2323

24-
auto CoreFlashIS25LP016D::read(uint32_t address, std::span<uint8_t> rx_buffer,
25-
std::size_t rx_buffer_size) -> std::size_t
24+
auto CoreFlashIS25LP016D::read(uint32_t address, std::span<uint8_t> rx_buffer, std::size_t rx_buffer_size)
25+
-> std::size_t
2626
{
2727
if (address + rx_buffer.size() > flash::is25lp016d::size) {
2828
return 0;
@@ -37,8 +37,8 @@ auto CoreFlashIS25LP016D::read(uint32_t address, std::span<uint8_t> rx_buffer,
3737
return bytes_read;
3838
}
3939

40-
auto CoreFlashIS25LP016D::write(uint32_t address, const std::span<uint8_t> tx_buffer,
41-
std::size_t tx_buffer_size) -> std::size_t
40+
auto CoreFlashIS25LP016D::write(uint32_t address, const std::span<uint8_t> tx_buffer, std::size_t tx_buffer_size)
41+
-> std::size_t
4242
{
4343
if (address + tx_buffer.size() > getSize()) {
4444
return 0;

‎drivers/CoreHTS/include/CoreHTS.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ class CoreHTS : public interface::TemperatureSensor, public interface::HumidityS
7373
auto write(uint8_t register_command, uint8_t *data, uint16_t size) -> int;
7474

7575
stmdev_ctx_t _register_io_function;
76-
static auto ptr_io_write(void *handle, uint8_t register_address, uint8_t *p_buffer,
77-
uint16_t number_bytes_to_write) -> int32_t;
78-
static auto ptr_io_read(void *handle, uint8_t register_address, uint8_t *p_buffer,
79-
uint16_t number_bytes_to_read) -> int32_t;
76+
static auto ptr_io_write(void *handle, uint8_t register_address, uint8_t *p_buffer, uint16_t number_bytes_to_write)
77+
-> int32_t;
78+
static auto ptr_io_read(void *handle, uint8_t register_address, uint8_t *p_buffer, uint16_t number_bytes_to_read)
79+
-> int32_t;
8080

8181
interface::I2C &_i2c;
8282
const uint8_t _I2C_ADDRESS = HTS221_I2C_ADDRESS;

‎drivers/CoreHTS/source/CoreHTS.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ auto CoreHTS::write(uint8_t register_address, uint8_t *pBuffer, uint16_t number_
198198
return 0;
199199
}
200200

201-
auto CoreHTS::ptr_io_write(void *handle, uint8_t register_address, uint8_t *p_buffer,
202-
uint16_t number_bytes_to_write) -> int32_t
201+
auto CoreHTS::ptr_io_write(void *handle, uint8_t register_address, uint8_t *p_buffer, uint16_t number_bytes_to_write)
202+
-> int32_t
203203
{
204204
return (int32_t)((CoreHTS *)handle)->write(register_address, p_buffer, number_bytes_to_write);
205205
}
206206

207-
auto CoreHTS::ptr_io_read(void *handle, uint8_t register_address, uint8_t *p_buffer,
208-
uint16_t number_bytes_to_read) -> int32_t
207+
auto CoreHTS::ptr_io_read(void *handle, uint8_t register_address, uint8_t *p_buffer, uint16_t number_bytes_to_read)
208+
-> int32_t
209209
{
210210
return (int32_t)((CoreHTS *)handle)->read(register_address, p_buffer, number_bytes_to_read);
211211
}

‎drivers/CoreIMU/source/CoreIMU.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ auto CoreIMU::write(uint8_t register_address, uint16_t number_bytes_to_write, ui
210210
return ret;
211211
}
212212

213-
auto CoreIMU::ptr_io_write(CoreIMU *handle, uint8_t write_address, uint8_t *p_buffer,
214-
uint16_t number_bytes_to_write) -> int32_t
213+
auto CoreIMU::ptr_io_write(CoreIMU *handle, uint8_t write_address, uint8_t *p_buffer, uint16_t number_bytes_to_write)
214+
-> int32_t
215215
{
216216
return handle->write(write_address, number_bytes_to_write, p_buffer);
217217
}
218218

219-
auto CoreIMU::ptr_io_read(CoreIMU *handle, uint8_t read_address, uint8_t *p_buffer,
220-
uint16_t number_bytes_to_read) -> int32_t
219+
auto CoreIMU::ptr_io_read(CoreIMU *handle, uint8_t read_address, uint8_t *p_buffer, uint16_t number_bytes_to_read)
220+
-> int32_t
221221
{
222222
return handle->read(read_address, number_bytes_to_read, p_buffer);
223223
}

‎drivers/CoreQSPI/include/CoreQSPI.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class CoreQSPI : public interface::QSPI
2525
void setDataTransmissionFormat() final;
2626
void setFrequency(int hz = ONE_MHZ) final;
2727

28-
auto read(uint8_t command, uint32_t address, std::span<uint8_t> rx_buffer,
29-
std::size_t rx_buffer_size) -> std::size_t final;
30-
auto write(uint8_t command, uint32_t address, std::span<uint8_t> tx_buffer,
31-
std::size_t tx_buffer_size) -> std::size_t final;
28+
auto read(uint8_t command, uint32_t address, std::span<uint8_t> rx_buffer, std::size_t rx_buffer_size)
29+
-> std::size_t final;
30+
auto write(uint8_t command, uint32_t address, std::span<uint8_t> tx_buffer, std::size_t tx_buffer_size)
31+
-> std::size_t final;
3232

3333
auto sendCommand(uint8_t command, uint32_t address, std::span<uint8_t> tx_buffer, std::size_t tx_buffer_size,
3434
std::span<uint8_t> rx_buffer, std::size_t rx_buffer_size) -> std::tuple<size_t, std::size_t> final;

‎drivers/CoreQSPI/source/CoreQSPI.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ void CoreQSPI::setFrequency(int hz)
2727
_qspi.set_frequency(hz);
2828
}
2929

30-
auto CoreQSPI::read(uint8_t command, uint32_t address, std::span<uint8_t> rx_buffer,
31-
std::size_t rx_buffer_size) -> std::size_t
30+
auto CoreQSPI::read(uint8_t command, uint32_t address, std::span<uint8_t> rx_buffer, std::size_t rx_buffer_size)
31+
-> std::size_t
3232
{
3333
// ? Use local variable as Mbed's QSPI driver returns the number of bytes read as an in/out parameter
3434
auto size = rx_buffer_size;
@@ -38,8 +38,8 @@ auto CoreQSPI::read(uint8_t command, uint32_t address, std::span<uint8_t> rx_buf
3838
return size;
3939
}
4040

41-
auto CoreQSPI::write(uint8_t command, uint32_t address, std::span<uint8_t> tx_buffer,
42-
std::size_t tx_buffer_size) -> std::size_t
41+
auto CoreQSPI::write(uint8_t command, uint32_t address, std::span<uint8_t> tx_buffer, std::size_t tx_buffer_size)
42+
-> std::size_t
4343
{
4444
// ? Use local variable as Mbed's QSPI driver returns the number of bytes written as an in/out parameter
4545
auto size = tx_buffer_size;

‎drivers/CoreSTM32Hal/include/CoreSTM32Hal.h

+12-12
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class CoreSTM32Hal : public interface::STM32Hal
5353
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) final;
5454

5555
auto HAL_SDRAM_Init(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_TimingTypeDef *Timing) -> HAL_StatusTypeDef final;
56-
auto HAL_SDRAM_SendCommand(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_CommandTypeDef *Command,
57-
uint32_t Timeout) -> HAL_StatusTypeDef final;
56+
auto HAL_SDRAM_SendCommand(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_CommandTypeDef *Command, uint32_t Timeout)
57+
-> HAL_StatusTypeDef final;
5858
auto HAL_SDRAM_ProgramRefreshRate(SDRAM_HandleTypeDef *hsdram, uint32_t RefreshRate) -> HAL_StatusTypeDef final;
5959

6060
auto HAL_DMA_Init(DMA_HandleTypeDef *hdma) -> HAL_StatusTypeDef final;
@@ -77,11 +77,11 @@ class CoreSTM32Hal : public interface::STM32Hal
7777
auto HAL_DSI_LongWrite(DSI_HandleTypeDef *hdsi, uint32_t ChannelID, uint32_t Mode, uint32_t NbParams,
7878
uint32_t Param1, uint8_t *ParametersTable) -> HAL_StatusTypeDef final;
7979

80-
auto HAL_LTDC_StructInitFromVideoConfig(LTDC_HandleTypeDef *hltdc,
81-
DSI_VidCfgTypeDef *VidCfg) -> HAL_StatusTypeDef final;
80+
auto HAL_LTDC_StructInitFromVideoConfig(LTDC_HandleTypeDef *hltdc, DSI_VidCfgTypeDef *VidCfg)
81+
-> HAL_StatusTypeDef final;
8282
auto HAL_LTDC_Init(LTDC_HandleTypeDef *hltdc) -> HAL_StatusTypeDef final;
83-
auto HAL_LTDC_ConfigLayer(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg,
84-
uint32_t LayerIdx) -> HAL_StatusTypeDef final;
83+
auto HAL_LTDC_ConfigLayer(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx)
84+
-> HAL_StatusTypeDef final;
8585

8686
auto HAL_JPEG_Init(JPEG_HandleTypeDef *hjpeg) -> HAL_StatusTypeDef final;
8787
auto HAL_JPEG_GetInfo(JPEG_HandleTypeDef *hjpeg, JPEG_ConfTypeDef *pInfo) -> HAL_StatusTypeDef final;
@@ -93,12 +93,12 @@ class CoreSTM32Hal : public interface::STM32Hal
9393
void HAL_JPEG_ConfigOutputBuffer(JPEG_HandleTypeDef *hjpeg, uint8_t *pNewOutputBuffer,
9494
uint32_t OutDataLength) final;
9595

96-
auto HAL_JPEG_RegisterInfoReadyCallback(JPEG_HandleTypeDef *hjpeg,
97-
pJPEG_InfoReadyCallbackTypeDef pCallback) -> HAL_StatusTypeDef final;
98-
auto HAL_JPEG_RegisterGetDataCallback(JPEG_HandleTypeDef *hjpeg,
99-
pJPEG_GetDataCallbackTypeDef pCallback) -> HAL_StatusTypeDef final;
100-
auto HAL_JPEG_RegisterDataReadyCallback(JPEG_HandleTypeDef *hjpeg,
101-
pJPEG_DataReadyCallbackTypeDef pCallback) -> HAL_StatusTypeDef final;
96+
auto HAL_JPEG_RegisterInfoReadyCallback(JPEG_HandleTypeDef *hjpeg, pJPEG_InfoReadyCallbackTypeDef pCallback)
97+
-> HAL_StatusTypeDef final;
98+
auto HAL_JPEG_RegisterGetDataCallback(JPEG_HandleTypeDef *hjpeg, pJPEG_GetDataCallbackTypeDef pCallback)
99+
-> HAL_StatusTypeDef final;
100+
auto HAL_JPEG_RegisterDataReadyCallback(JPEG_HandleTypeDef *hjpeg, pJPEG_DataReadyCallbackTypeDef pCallback)
101+
-> HAL_StatusTypeDef final;
102102
auto HAL_JPEG_RegisterCallback(JPEG_HandleTypeDef *hjpeg, HAL_JPEG_CallbackIDTypeDef callbackID,
103103
pJPEG_CallbackTypeDef pCallback) -> HAL_StatusTypeDef final;
104104

‎drivers/CoreSTM32Hal/source/CoreSTM32Hal.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ auto CoreSTM32Hal::HAL_DSI_LongWrite(DSI_HandleTypeDef *hdsi, uint32_t ChannelID
226226
return ::HAL_DSI_LongWrite(hdsi, ChannelID, Mode, NbParams, Param1, ParametersTable);
227227
}
228228

229-
auto CoreSTM32Hal::HAL_LTDC_StructInitFromVideoConfig(LTDC_HandleTypeDef *hltdc,
230-
DSI_VidCfgTypeDef *VidCfg) -> HAL_StatusTypeDef
229+
auto CoreSTM32Hal::HAL_LTDC_StructInitFromVideoConfig(LTDC_HandleTypeDef *hltdc, DSI_VidCfgTypeDef *VidCfg)
230+
-> HAL_StatusTypeDef
231231
{
232232
return ::HAL_LTDC_StructInitFromVideoConfig(hltdc, VidCfg);
233233
}
@@ -237,8 +237,8 @@ auto CoreSTM32Hal::HAL_LTDC_Init(LTDC_HandleTypeDef *hltdc) -> HAL_StatusTypeDef
237237
return ::HAL_LTDC_Init(hltdc);
238238
}
239239

240-
auto CoreSTM32Hal::HAL_LTDC_ConfigLayer(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg,
241-
uint32_t LayerIdx) -> HAL_StatusTypeDef
240+
auto CoreSTM32Hal::HAL_LTDC_ConfigLayer(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx)
241+
-> HAL_StatusTypeDef
242242
{
243243
return ::HAL_LTDC_ConfigLayer(hltdc, pLayerCfg, LayerIdx);
244244
}
@@ -283,8 +283,8 @@ auto CoreSTM32Hal::HAL_JPEG_RegisterInfoReadyCallback(JPEG_HandleTypeDef *hjpeg,
283283
return ::HAL_JPEG_RegisterInfoReadyCallback(hjpeg, pCallback);
284284
}
285285

286-
auto CoreSTM32Hal::HAL_JPEG_RegisterGetDataCallback(JPEG_HandleTypeDef *hjpeg,
287-
pJPEG_GetDataCallbackTypeDef pCallback) -> HAL_StatusTypeDef
286+
auto CoreSTM32Hal::HAL_JPEG_RegisterGetDataCallback(JPEG_HandleTypeDef *hjpeg, pJPEG_GetDataCallbackTypeDef pCallback)
287+
-> HAL_StatusTypeDef
288288
{
289289
return ::HAL_JPEG_RegisterGetDataCallback(hjpeg, pCallback);
290290
}

‎drivers/CoreWifi/include/CoreWifi.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class CoreWifi : public WiFiInterface
2424
const nsapi_security_t security = NSAPI_SECURITY_WPA_WPA2;
2525
};
2626

27-
auto set_credentials(const char *ssid, const char *password,
28-
nsapi_security_t security = NSAPI_SECURITY_NONE) -> int final;
27+
auto set_credentials(const char *ssid, const char *password, nsapi_security_t security = NSAPI_SECURITY_NONE)
28+
-> int final;
2929
auto set_channel(uint8_t channel) -> nsapi_error_t final;
3030

3131
auto scan(WiFiAccessPoint *res, nsapi_size_t count) -> nsapi_size_or_error_t final;

‎drivers/CoreWifi/source/CoreWifi.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ auto CoreWifi::connect(const Network &network) -> bool
3333
return true;
3434
}
3535

36-
auto CoreWifi::connect(const char *ssid, const char *password, nsapi_security_t security,
37-
uint8_t channel) -> nsapi_error_t
36+
auto CoreWifi::connect(const char *ssid, const char *password, nsapi_security_t security, uint8_t channel)
37+
-> nsapi_error_t
3838
{
3939
return _module.connect(ssid, password, security, channel);
4040
}

‎include/interface/drivers/QSPI.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ class QSPI
1818
virtual void setDataTransmissionFormat() = 0;
1919
virtual void setFrequency(int hz = 1'000'000) = 0;
2020

21-
virtual auto read(uint8_t command, uint32_t address, std::span<uint8_t> rx_buffer,
22-
std::size_t rx_buffer_size) -> std::size_t = 0;
23-
virtual auto write(uint8_t command, uint32_t address, std::span<uint8_t> tx_buffer,
24-
std::size_t tx_buffer_size) -> std::size_t = 0;
21+
virtual auto read(uint8_t command, uint32_t address, std::span<uint8_t> rx_buffer, std::size_t rx_buffer_size)
22+
-> std::size_t = 0;
23+
virtual auto write(uint8_t command, uint32_t address, std::span<uint8_t> tx_buffer, std::size_t tx_buffer_size)
24+
-> std::size_t = 0;
2525

2626
virtual auto sendCommand(uint8_t command, uint32_t address, std::span<uint8_t> tx_buffer,
27-
std::size_t tx_buffer_size, std::span<uint8_t> rx_buffer,
28-
std::size_t rx_buffer_size) -> std::tuple<size_t, std::size_t> = 0;
27+
std::size_t tx_buffer_size, std::span<uint8_t> rx_buffer, std::size_t rx_buffer_size)
28+
-> std::tuple<size_t, std::size_t> = 0;
2929
};
3030

3131
} // namespace leka::interface

‎include/interface/drivers/RFIDReader.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace interface {
5353
virtual void init() = 0;
5454
virtual void setModeTagDetection() = 0;
5555
virtual void onTagReadable() = 0;
56-
virtual auto getTag() -> rfid::Tag & = 0;
56+
virtual auto getTag() -> rfid::Tag & = 0;
5757
virtual auto didTagCommunicationSucceed(size_t sizeTagData) -> bool = 0;
5858
virtual void sendRequestToTag(std::span<const uint8_t> data) = 0;
5959
virtual void setCommunicationProtocol(rfid::Protocol protocol) = 0;

‎include/interface/drivers/STM32Hal.h

+28-28
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ class STM32Hal
5252
virtual void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) = 0;
5353

5454
virtual auto HAL_SDRAM_Init(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_TimingTypeDef *Timing) -> HAL_StatusTypeDef = 0;
55-
virtual auto HAL_SDRAM_SendCommand(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_CommandTypeDef *Command,
56-
uint32_t Timeout) -> HAL_StatusTypeDef = 0;
57-
virtual auto HAL_SDRAM_ProgramRefreshRate(SDRAM_HandleTypeDef *hsdram,
58-
uint32_t RefreshRate) -> HAL_StatusTypeDef = 0;
55+
virtual auto HAL_SDRAM_SendCommand(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_CommandTypeDef *Command, uint32_t Timeout)
56+
-> HAL_StatusTypeDef = 0;
57+
virtual auto HAL_SDRAM_ProgramRefreshRate(SDRAM_HandleTypeDef *hsdram, uint32_t RefreshRate)
58+
-> HAL_StatusTypeDef = 0;
5959

6060
virtual auto HAL_DMA_Init(DMA_HandleTypeDef *hdma) -> HAL_StatusTypeDef = 0;
6161
virtual auto HAL_DMA_DeInit(DMA_HandleTypeDef *hdma) -> HAL_StatusTypeDef = 0;
6262

63-
virtual auto HAL_DMA2D_Init(DMA2D_HandleTypeDef *hdma2d) -> HAL_StatusTypeDef = 0;
64-
virtual auto HAL_DMA2D_ConfigLayer(DMA2D_HandleTypeDef *hdma2d, uint32_t LayerIdx) -> HAL_StatusTypeDef = 0;
63+
virtual auto HAL_DMA2D_Init(DMA2D_HandleTypeDef *hdma2d) -> HAL_StatusTypeDef = 0;
64+
virtual auto HAL_DMA2D_ConfigLayer(DMA2D_HandleTypeDef *hdma2d, uint32_t LayerIdx) -> HAL_StatusTypeDef = 0;
6565
virtual auto HAL_DMA2D_Start(DMA2D_HandleTypeDef *hdma2d, uint32_t pdata, uint32_t DstAddress, uint32_t Width,
66-
uint32_t Height) -> HAL_StatusTypeDef = 0;
67-
virtual auto HAL_DMA2D_Start_IT(DMA2D_HandleTypeDef *hdma2d, uint32_t, uint32_t, uint32_t,
68-
uint32_t) -> HAL_StatusTypeDef = 0;
66+
uint32_t Height) -> HAL_StatusTypeDef = 0;
67+
virtual auto HAL_DMA2D_Start_IT(DMA2D_HandleTypeDef *hdma2d, uint32_t, uint32_t, uint32_t, uint32_t)
68+
-> HAL_StatusTypeDef = 0;
6969
virtual auto HAL_DMA2D_PollForTransfer(DMA2D_HandleTypeDef *hdma2d, uint32_t Timeout) -> HAL_StatusTypeDef = 0;
7070

7171
virtual auto HAL_DSI_Init(DSI_HandleTypeDef *hdsi, DSI_PLLInitTypeDef *PLLInit) -> HAL_StatusTypeDef = 0;
@@ -77,32 +77,32 @@ class STM32Hal
7777
virtual auto HAL_DSI_LongWrite(DSI_HandleTypeDef *hdsi, uint32_t ChannelID, uint32_t Mode, uint32_t NbParams,
7878
uint32_t Param1, uint8_t *ParametersTable) -> HAL_StatusTypeDef = 0;
7979

80-
virtual auto HAL_LTDC_StructInitFromVideoConfig(LTDC_HandleTypeDef *hltdc,
81-
DSI_VidCfgTypeDef *VidCfg) -> HAL_StatusTypeDef = 0;
82-
virtual auto HAL_LTDC_Init(LTDC_HandleTypeDef *hltdc) -> HAL_StatusTypeDef = 0;
83-
virtual auto HAL_LTDC_ConfigLayer(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg,
84-
uint32_t LayerIdx) -> HAL_StatusTypeDef = 0;
80+
virtual auto HAL_LTDC_StructInitFromVideoConfig(LTDC_HandleTypeDef *hltdc, DSI_VidCfgTypeDef *VidCfg)
81+
-> HAL_StatusTypeDef = 0;
82+
virtual auto HAL_LTDC_Init(LTDC_HandleTypeDef *hltdc) -> HAL_StatusTypeDef = 0;
83+
virtual auto HAL_LTDC_ConfigLayer(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx)
84+
-> HAL_StatusTypeDef = 0;
8585

8686
virtual auto HAL_JPEG_Init(JPEG_HandleTypeDef *hjpeg) -> HAL_StatusTypeDef = 0;
8787
virtual auto HAL_JPEG_GetInfo(JPEG_HandleTypeDef *hjpeg, JPEG_ConfTypeDef *pInfo) -> HAL_StatusTypeDef = 0;
8888
virtual auto HAL_JPEG_Decode(JPEG_HandleTypeDef *hjpeg, uint8_t *pDataIn, uint32_t InDataLength,
89-
uint8_t *pDataOutMCU, uint32_t OutDataLength,
90-
uint32_t Timeout) -> HAL_StatusTypeDef = 0;
89+
uint8_t *pDataOutMCU, uint32_t OutDataLength, uint32_t Timeout)
90+
-> HAL_StatusTypeDef = 0;
9191
virtual auto HAL_JPEG_Decode_DMA(JPEG_HandleTypeDef *hjpeg, uint8_t *pDataIn, uint32_t InDataLength,
92-
uint8_t *pDataOutMCU, uint32_t OutDataLength) -> HAL_StatusTypeDef = 0;
92+
uint8_t *pDataOutMCU, uint32_t OutDataLength) -> HAL_StatusTypeDef = 0;
9393
virtual void HAL_JPEG_ConfigInputBuffer(JPEG_HandleTypeDef *hjpeg, uint8_t *pNewInputBuffer,
94-
uint32_t InDataLength) = 0;
94+
uint32_t InDataLength) = 0;
9595
virtual void HAL_JPEG_ConfigOutputBuffer(JPEG_HandleTypeDef *hjpeg, uint8_t *pNewOutputBuffer,
96-
uint32_t OutDataLength) = 0;
97-
98-
virtual auto HAL_JPEG_RegisterInfoReadyCallback(JPEG_HandleTypeDef *hjpeg,
99-
pJPEG_InfoReadyCallbackTypeDef) -> HAL_StatusTypeDef = 0;
100-
virtual auto HAL_JPEG_RegisterGetDataCallback(JPEG_HandleTypeDef *hjpeg,
101-
pJPEG_GetDataCallbackTypeDef) -> HAL_StatusTypeDef = 0;
102-
virtual auto HAL_JPEG_RegisterDataReadyCallback(JPEG_HandleTypeDef *hjpeg,
103-
pJPEG_DataReadyCallbackTypeDef) -> HAL_StatusTypeDef = 0;
104-
virtual auto HAL_JPEG_RegisterCallback(JPEG_HandleTypeDef *hjpeg, HAL_JPEG_CallbackIDTypeDef,
105-
pJPEG_CallbackTypeDef) -> HAL_StatusTypeDef = 0;
96+
uint32_t OutDataLength) = 0;
97+
98+
virtual auto HAL_JPEG_RegisterInfoReadyCallback(JPEG_HandleTypeDef *hjpeg, pJPEG_InfoReadyCallbackTypeDef)
99+
-> HAL_StatusTypeDef = 0;
100+
virtual auto HAL_JPEG_RegisterGetDataCallback(JPEG_HandleTypeDef *hjpeg, pJPEG_GetDataCallbackTypeDef)
101+
-> HAL_StatusTypeDef = 0;
102+
virtual auto HAL_JPEG_RegisterDataReadyCallback(JPEG_HandleTypeDef *hjpeg, pJPEG_DataReadyCallbackTypeDef)
103+
-> HAL_StatusTypeDef = 0;
104+
virtual auto HAL_JPEG_RegisterCallback(JPEG_HandleTypeDef *hjpeg, HAL_JPEG_CallbackIDTypeDef, pJPEG_CallbackTypeDef)
105+
-> HAL_StatusTypeDef = 0;
106106

107107
virtual auto HAL_JPEG_Pause(JPEG_HandleTypeDef *hjpeg, uint32_t XferSelection) -> HAL_StatusTypeDef = 0;
108108
virtual auto HAL_JPEG_Resume(JPEG_HandleTypeDef *hjpeg, uint32_t XferSelection) -> HAL_StatusTypeDef = 0;

‎libs/Utils/include/MathUtils.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
namespace leka::utils::math {
1111

1212
template <typename OutputType, typename IntputType>
13-
constexpr auto map(IntputType x, IntputType in_min, IntputType in_max, OutputType out_min,
14-
OutputType out_max) -> OutputType
13+
constexpr auto map(IntputType x, IntputType in_min, IntputType in_max, OutputType out_min, OutputType out_max)
14+
-> OutputType
1515
{
1616
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
1717
}

‎tests/functional/tests/boost_ut/test_expect.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ suite suite_expect = [] {
8888
"compiletime/runtime constants"_test = [] {
8989
constexpr auto compile_time_v = 42;
9090
auto run_time_v = 99;
91-
expect(constant<42_i == compile_time_v> and run_time_v == 99_i);
91+
expect(constant < 42_i == compile_time_v > and run_time_v == 99_i);
9292
};
9393

9494
"bool conversion"_test = [] { expect(static_cast<bool>(std::make_unique<int>())); };

‎tests/unit/stubs/stubs/mbed/source/QSPI.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ auto QSPI::read(qspi_inst_t instruction, int alt, int address, char *rx_buffer,
6262
return QSPI_STATUS_OK;
6363
}
6464

65-
auto QSPI::write(qspi_inst_t instruction, int alt, int address, const char *tx_buffer,
66-
std::size_t *tx_length) -> qspi_status_t
65+
auto QSPI::write(qspi_inst_t instruction, int alt, int address, const char *tx_buffer, std::size_t *tx_length)
66+
-> qspi_status_t
6767
{
6868
leka::spy_QSPI_command = instruction;
6969
leka::spy_QSPI_address = address;

0 commit comments

Comments
 (0)