diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2020-11-19 00:27:15 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2020-11-19 00:27:15 -0700 |
commit | 0c4468b1fa0e50f618f5e3150b3c24c324e5956c (patch) | |
tree | 1d25c8941ed27ab6856057abc965b5261e3a2f5a /02-usart/src | |
parent | c75060eeac2810bd6ffe540e9949952eeb8e41f3 (diff) | |
download | stm32l4-0c4468b1fa0e50f618f5e3150b3c24c324e5956c.tar.gz stm32l4-0c4468b1fa0e50f618f5e3150b3c24c324e5956c.tar.bz2 stm32l4-0c4468b1fa0e50f618f5e3150b3c24c324e5956c.zip |
Change the SCB to use regset() macros.
Diffstat (limited to '02-usart/src')
-rw-r--r-- | 02-usart/src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/02-usart/src/main.c b/02-usart/src/main.c index 72b3fe7..4602fd3 100644 --- a/02-usart/src/main.c +++ b/02-usart/src/main.c @@ -67,10 +67,10 @@ int main() SCB.strv_r = 10000000; /* Enable interrupts. */ - SCB.stcs_bf.tickint = 1; + regset(SCB.stcs_r, scb_tickint, 1); /* Start the systick. */ - SCB.stcs_bf.enable = 1; + regset(SCB.stcs_r, scb_enable, 1); usart_printf(&USART2, "Start Countdown Started!\n"); } |