aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libopenstm32/timer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libopenstm32/timer.h b/include/libopenstm32/timer.h
index e33dc6e..0249bc4 100644
--- a/include/libopenstm32/timer.h
+++ b/include/libopenstm32/timer.h
@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBOPENSTM32_GPIO_H
-#define LIBOPENSTM32_GPIO_H
+#ifndef LIBOPENSTM32_TIMER_H
+#define LIBOPENSTM32_TIMER_H
#include <libopenstm32.h>
@@ -377,7 +377,7 @@
#define TIM_DIER_CC1DE (1 << 9)
/* UDE: Update DMA request enable */
-#define TIM_DIER_BIE (1 << 8)
+#define TIM_DIER_UDE (1 << 8)
/* BIE: Break interrupt enable */
#define TIM_DIER_BIE (1 << 7)