projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: ao_fec_prepare using wrong value for input len
[fw/altos]
/
src
/
stm
/
ao_beep_stm.c
diff --git
a/src/stm/ao_beep_stm.c
b/src/stm/ao_beep_stm.c
index 12d2b0b6439eed06dacc5085d2c81a9f205be883..4db03a5b4a41b95de41c573ec5aafa1584c97522 100644
(file)
--- a/
src/stm/ao_beep_stm.c
+++ b/
src/stm/ao_beep_stm.c
@@
-40,9
+40,9
@@
ao_beep(uint8_t beep)
{
if (beep == 0) {
stm_beeper.cr1 = 0;
{
if (beep == 0) {
stm_beeper.cr1 = 0;
- stm_rcc.apb1enr &= ~(1 << RCC_BEEPER);
+ stm_rcc.apb1enr &= ~(1
UL
<< RCC_BEEPER);
} else {
} else {
- stm_rcc.apb1enr |= (1 << RCC_BEEPER);
+ stm_rcc.apb1enr |= (1
UL
<< RCC_BEEPER);
stm_beeper.cr2 = ((0 << STM_TIM234_CR2_TI1S) |
(STM_TIM234_CR2_MMS_RESET << STM_TIM234_CR2_MMS) |
stm_beeper.cr2 = ((0 << STM_TIM234_CR2_TI1S) |
(STM_TIM234_CR2_MMS_RESET << STM_TIM234_CR2_MMS) |
@@
-162,5
+162,5
@@
ao_beep_init(void)
stm_afr_set(BEEPER_PORT, BEEPER_PIN, BEEPER_AFR);
/* Leave the timer off until requested */
stm_afr_set(BEEPER_PORT, BEEPER_PIN, BEEPER_AFR);
/* Leave the timer off until requested */
- stm_rcc.apb1enr &= ~(1 << RCC_BEEPER);
+ stm_rcc.apb1enr &= ~(1
UL
<< RCC_BEEPER);
}
}