diff options
author | marcoveeneman <marco-veeneman@hotmail.com> | 2017-07-02 17:11:10 +0200 |
---|---|---|
committer | marcoveeneman <marco-veeneman@hotmail.com> | 2017-07-03 22:23:55 +0200 |
commit | ffd9d3fd90ffe7f8a7f9d824fa3d9d8b6f33c196 (patch) | |
tree | e0accaff1b8a4db516e05c6bea00b59c090c3a95 /os/hal/ports/TIVA/LLD/uDMA/tiva_udma.h | |
parent | 4092650b1bc013a21c0eaf27f62c84dbf2aece42 (diff) | |
download | ChibiOS-Contrib-ffd9d3fd90ffe7f8a7f9d824fa3d9d8b6f33c196.tar.gz ChibiOS-Contrib-ffd9d3fd90ffe7f8a7f9d824fa3d9d8b6f33c196.tar.bz2 ChibiOS-Contrib-ffd9d3fd90ffe7f8a7f9d824fa3d9d8b6f33c196.zip |
Initial ADC driver and testhal application for TM4C123x.
Diffstat (limited to 'os/hal/ports/TIVA/LLD/uDMA/tiva_udma.h')
-rw-r--r-- | os/hal/ports/TIVA/LLD/uDMA/tiva_udma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.h b/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.h index cf90399..a473f6c 100644 --- a/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.h +++ b/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.h @@ -32,7 +32,7 @@ /** * @brief CHCTL XFERSIZE helper. */ -#define UDMA_CHCTL_XFERSIZE(n) ((n-1) << 4) +#define UDMA_CHCTL_XFERSIZE(n) (((n)-1) << 4) /*===========================================================================*/ /* Driver pre-compile time settings. */ |