diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-26 14:58:07 -0400 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-26 17:10:36 -0400 |
commit | cf4af09e9a20e9cdaec4b3896eb6d10c27f89eba (patch) | |
tree | 016f876531f7dfc822be17f686074f0c859fd508 /libhw_cr/rp2040_dma.h | |
parent | 42fb27570262b52e2ca889030c621b5f4af76fe1 (diff) |
No more (static inline) function bodies in headers
Diffstat (limited to 'libhw_cr/rp2040_dma.h')
-rw-r--r-- | libhw_cr/rp2040_dma.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libhw_cr/rp2040_dma.h b/libhw_cr/rp2040_dma.h index e8bceec..5c1c7bb 100644 --- a/libhw_cr/rp2040_dma.h +++ b/libhw_cr/rp2040_dma.h @@ -21,10 +21,7 @@ /* Borrowed from <hardware/dma.h> *********************************************/ -static inline dma_channel_hw_t *dma_channel_hw_addr(uint channel) { - assert(channel < NUM_DMA_CHANNELS); - return &dma_hw->ch[channel]; -} +dma_channel_hw_t *dma_channel_hw_addr(uint channel); enum dma_channel_transfer_size { DMA_SIZE_8 = 0, ///< Byte transfer (8 bits) |