From 3b951cfb3744648a4ad18788dc373d7fa880a964 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 18 Feb 2013 14:30:38 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5250 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/SPC5xx') diff --git a/os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c b/os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c index a79ff5962..9516a7f6a 100644 --- a/os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c +++ b/os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c @@ -91,7 +91,7 @@ static void spc5_linflex_init(SerialDriver *sdp, const SerialConfig *config) { parameters.*/ linflexp->UARTCR.R = SPC5_UARTCR_UART; /* UART mode FIRST. */ linflexp->UARTCR.R = SPC5_UARTCR_UART | SPC5_UARTCR_RXEN | config->mode; - div = halSPCGetSystemClock() / config->speed; + div = SPC5_LINFLEX0_CLK / config->speed; linflexp->LINFBRR.R = (uint16_t)(div & 15); /* Fractional divider. */ linflexp->LINIBRR.R = (uint16_t)(div >> 4); /* Integer divider. */ linflexp->UARTSR.R = 0xFFFF; /* Clearing UARTSR register.*/ -- cgit v1.2.3