From: aleph Date: Tue, 26 Oct 2010 18:03:49 +0000 (+0000) Subject: sam3 port: enable power on all PIO input ports by default. X-Git-Tag: 2.6.0~5^2~49 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=8de4a97f20464fc0fe516a385513f6b56cf010bd;p=bertos.git sam3 port: enable power on all PIO input ports by default. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4471 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/drv/clock_sam3.c b/bertos/cpu/cortex-m3/drv/clock_sam3.c index dfb2eb24..6df20451 100644 --- a/bertos/cpu/cortex-m3/drv/clock_sam3.c +++ b/bertos/cpu/cortex-m3/drv/clock_sam3.c @@ -38,10 +38,7 @@ #include "clock_sam3.h" #include #include -#include -#include -#include -#include +#include /* Frequency of board main oscillator */ @@ -134,4 +131,7 @@ void clock_init(void) PMC_MCKR = PMC_MCKR_CSS_PLL_CLK; timeout = CLOCK_TIMEOUT; while (!(PMC_SR & BV(PMC_SR_MCKRDY)) && --timeout); + + /* Enable clock on PIO for inputs */ + PMC_PCER = BV(PIOA_ID) | BV(PIOB_ID) | BV(PIOC_ID); }