File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -103,21 +103,13 @@ struct DmaBase
103
103
/// @ingroup modm_platform_dma
104
104
class DmaController : public DmaBase
105
105
{
106
- template <uint32_t ...values> struct bit_or;
107
- template <uint32_t val,uint32_t ...values> struct bit_or<val,values...>{
108
- static constexpr uint32_t value = val | bit_or<values...>::value;
109
- };
110
- template <uint32_t val> struct bit_or<val>{
111
- static constexpr uint32_t value = val;
112
- };
113
-
114
106
public:
115
107
/**
116
108
* Start multiple channels simultaneously
117
109
*/
118
- template <class ...Channels>
110
+ template <class... Channels>
119
111
static inline void start() {
120
- dma_hw->multi_channel_trigger = bit_or< Channels::mask...>::value ;
112
+ dma_hw->multi_channel_trigger = ( Channels::mask | ...) ;
121
113
}
122
114
123
115
class ChannelDummy
You can’t perform that action at this time.
0 commit comments