From: Nathael Pajani Date: Thu, 24 Apr 2014 16:32:33 +0000 (+0200) Subject: One more part of multiple SPI busses support (not for LPC1224) X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=48207aef500e177350cb2fa3f9732cb8d553d6b5;p=soft%2Flpc122x%2Fcore One more part of multiple SPI busses support (not for LPC1224) --- diff --git a/drivers/ssp.c b/drivers/ssp.c index 98f7c83..37d3f54 100644 --- a/drivers/ssp.c +++ b/drivers/ssp.c @@ -281,7 +281,11 @@ uint32_t ssp_clk_on(uint8_t ssp_num, uint32_t rate) } while ((prescale > 0xFF) || (pclk_div > 0xFF)); /* Activate the SSP clock (maybe divide main clock) */ - sys_ctrl->ssp0_clk_div = pclk_div; + switch (ssp_num) { + case 0 : + sys_ctrl->ssp0_clk_div = pclk_div; + break; + } /* Set the prescaler */ ssp_regs->clk_prescale = prescale;