diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-15 17:20:09 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-15 17:20:09 +0000 |
commit | 8da7f367eeb3dc4dd71a10f7e7f18efe785c554f (patch) | |
tree | 03b0eea2f7d4000445e995ebc61baef6af10c4cf | |
parent | e1eef3b01547597ce8d84759c6fc7613243ccf9a (diff) | |
download | ChibiOS-8da7f367eeb3dc4dd71a10f7e7f18efe785c554f.tar.gz ChibiOS-8da7f367eeb3dc4dd71a10f7e7f18efe785c554f.tar.bz2 ChibiOS-8da7f367eeb3dc4dd71a10f7e7f18efe785c554f.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1220 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/io/platforms/AT91SAM7X/pal_lld.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/os/io/platforms/AT91SAM7X/pal_lld.c b/os/io/platforms/AT91SAM7X/pal_lld.c index 0bfde1f68..b3baeb1fe 100644 --- a/os/io/platforms/AT91SAM7X/pal_lld.c +++ b/os/io/platforms/AT91SAM7X/pal_lld.c @@ -38,10 +38,10 @@ void _pal_lld_init(const AT91SAM7XPIOConfig *config) { AT91C_BASE_PMC->PMC_PCER = (1 << AT91C_ID_PIOA) | (1 << AT91C_ID_PIOB);
/*
- * PIOA setup. + * PIOA setup.
*/
- AT91C_BASE_PIOA->PIO_OER = config->P0Data.pusr; /* Pull-up as spec.*/
- AT91C_BASE_PIOA->PIO_ODR = ~config->P0Data.pusr;
+ AT91C_BASE_PIOA->PIO_PPUER = config->P0Data.pusr; /* Pull-up as spec.*/
+ AT91C_BASE_PIOA->PIO_PPUDR = ~config->P0Data.pusr;
AT91C_BASE_PIOA->PIO_PER = 0xFFFFFFFF; /* PIO enabled.*/
AT91C_BASE_PIOA->PIO_ODSR = config->P0Data.odsr; /* Data as specified.*/
AT91C_BASE_PIOA->PIO_OER = config->P0Data.osr; /* Dir. as specified.*/
@@ -53,10 +53,10 @@ void _pal_lld_init(const AT91SAM7XPIOConfig *config) { AT91C_BASE_PIOA->PIO_OWER = 0xFFFFFFFF; /* Write enabled.*/
/*
- * PIOB setup. + * PIOB setup.
*/
- AT91C_BASE_PIOB->PIO_OER = config->P0Data.pusr; /* Pull-up as spec.*/
- AT91C_BASE_PIOB->PIO_ODR = ~config->P0Data.pusr;
+ AT91C_BASE_PIOB->PIO_PPUER = config->P0Data.pusr; /* Pull-up as spec.*/
+ AT91C_BASE_PIOB->PIO_PPUDR = ~config->P0Data.pusr;
AT91C_BASE_PIOB->PIO_PER = 0xFFFFFFFF; /* PIO enabled.*/
AT91C_BASE_PIOB->PIO_ODSR = config->P1Data.odsr; /* Data as specified.*/
AT91C_BASE_PIOB->PIO_OER = config->P1Data.osr; /* Dir. as specified.*/
|