Skip to content

Commit

Permalink
🎨 Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffyFTW committed Jan 14, 2025
1 parent 31183ff commit 821c68b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/libhal-arm-mcu/stm32f411/dma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "constants.hpp"

namespace hal::stm32f411 {
enum class dma_t : std::uint32_t
enum class dma : std::uint32_t
{
dma1 = static_cast<uint32_t>(peripheral::dma1),
dma2 = static_cast<uint32_t>(peripheral::dma2),
Expand All @@ -33,7 +33,7 @@ enum class dma_t : std::uint32_t
* @param p_source source span of bytes
* @param p_destination destination span of bytes
*/
void set_dma_memory_transfer(dma_t p_dma,
void set_dma_memory_transfer(dma p_dma,
std::span<byte const> const p_source,
std::span<byte> const p_destination);
/// Maximum length of a buffer that the stm32f411 series dma controller can
Expand Down
4 changes: 2 additions & 2 deletions src/stm32f411/dma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ dma_channel_stream_t setup_dma_transfer(
return selected_config;
};

void set_dma_memory_transfer(dma_t p_dma,
std::span<byte const> const p_source,
void set_dma_memory_transfer(dma p_dma,
std::span<byte const> p_source,
std::span<byte> const p_destination)
{
std::array<dma_channel_stream_t, 8> all_streams = {
Expand Down

0 comments on commit 821c68b

Please sign in to comment.