mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 09:33:50 +01:00
cpu/atmega2560: removed deps to F_CPU
This commit is contained in:
parent
80023f07d8
commit
6fc95e4d6d
@ -80,7 +80,7 @@ int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg)
|
||||
|
||||
static int init_base(uart_t uart, uint32_t baudrate)
|
||||
{
|
||||
uint16_t clock_divider = F_CPU / (16 * baudrate);
|
||||
uint16_t clock_divider = CLOCK_CORECLOCK / (16 * baudrate);
|
||||
|
||||
switch (uart) {
|
||||
#if UART_0_EN
|
||||
|
||||
@ -24,8 +24,6 @@
|
||||
|
||||
/* For Catchall-Loop */
|
||||
#include "board.h"
|
||||
#include <util/delay.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user