aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/AT91SAM7/pal_lld.c
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-11-08 07:29:55 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-11-08 07:29:55 +0000
commit25acf389b0475d90c8d3fcb2ed0eb24bc15b1287 (patch)
treec66ccfbaff9bdc0609810869edde69fe3598d19b /os/hal/platforms/AT91SAM7/pal_lld.c
parent07f4e8ed945b736dccdf1f20a37551f5cd7b6775 (diff)
downloadChibiOS-25acf389b0475d90c8d3fcb2ed0eb24bc15b1287.tar.gz
ChibiOS-25acf389b0475d90c8d3fcb2ed0eb24bc15b1287.tar.bz2
ChibiOS-25acf389b0475d90c8d3fcb2ed0eb24bc15b1287.zip
AT91SAM7A3. Initial commit.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4799 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AT91SAM7/pal_lld.c')
-rw-r--r--os/hal/platforms/AT91SAM7/pal_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/AT91SAM7/pal_lld.c b/os/hal/platforms/AT91SAM7/pal_lld.c
index 733345c95..e4914261e 100644
--- a/os/hal/platforms/AT91SAM7/pal_lld.c
+++ b/os/hal/platforms/AT91SAM7/pal_lld.c
@@ -63,7 +63,7 @@ void _pal_lld_init(const PALConfig *config) {
uint32_t ports = (1 << AT91C_ID_PIOA);
#if (SAM7_PLATFORM == SAM7X128) || (SAM7_PLATFORM == SAM7X256) || \
- (SAM7_PLATFORM == SAM7X512)
+ (SAM7_PLATFORM == SAM7X512) || (SAM7_PLATFORM == SAM7A3)
ports |= (1 << AT91C_ID_PIOB);
#endif
AT91C_BASE_PMC->PMC_PCER = ports;
@@ -87,7 +87,7 @@ void _pal_lld_init(const PALConfig *config) {
* PIOB setup.
*/
#if (SAM7_PLATFORM == SAM7X128) || (SAM7_PLATFORM == SAM7X256) || \
- (SAM7_PLATFORM == SAM7X512)
+ (SAM7_PLATFORM == SAM7X512) || (SAM7_PLATFORM == SAM7A3)
AT91C_BASE_PIOB->PIO_PPUER = config->P1Data.pusr; /* Pull-up as spec.*/
AT91C_BASE_PIOB->PIO_PPUDR = ~config->P1Data.pusr;
AT91C_BASE_PIOB->PIO_PER = 0xFFFFFFFF; /* PIO enabled.*/