lib/stm32/*.c: Coding-style fixes.
This commit is contained in:
parent
bb8741a79b
commit
6e7403f769
@ -94,7 +94,7 @@ u8 nvic_get_irq_enabled(u8 irqn)
|
||||
|
||||
void nvic_set_priority(u8 irqn, u8 priority)
|
||||
{
|
||||
NVIC_IPR(irqn/4) |= (priority << ((irqn % 4) * 8));
|
||||
NVIC_IPR(irqn / 4) |= (priority << ((irqn % 4) * 8));
|
||||
}
|
||||
|
||||
void nvic_generate_software_interrupt(u8 irqn)
|
||||
@ -102,5 +102,3 @@ void nvic_generate_software_interrupt(u8 irqn)
|
||||
if (irqn <= 239)
|
||||
NVIC_STIR |= irqn;
|
||||
}
|
||||
|
||||
|
||||
|
@ -33,7 +33,7 @@ void usart_set_baudrate(u32 usart, u32 baud, u32 clock)
|
||||
* simple divider to generate the correct baudrate. >_< If I
|
||||
* am wrong feel free to correct me on that. :) (esden)
|
||||
*/
|
||||
USART_BRR(usart) = clock/baud;
|
||||
USART_BRR(usart) = clock / baud;
|
||||
}
|
||||
|
||||
void usart_set_databits(u32 usart, u32 bits)
|
||||
|
Loading…
x
Reference in New Issue
Block a user