-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename portmux_set_func to at32_select_periph, add at32_select_gpio and add flags parameter to specify the initial state of the pins. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
- Loading branch information
Haavard Skinnemoen
committed
Dec 8, 2006
1 parent
68380b5
commit c3e2a79
Showing
4 changed files
with
194 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Pin definitions for AT32AP7000. | ||
* | ||
* Copyright (C) 2006 Atmel Corporation | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
#ifndef __ASM_ARCH_AT32AP7000_H__ | ||
#define __ASM_ARCH_AT32AP7000_H__ | ||
|
||
#define GPIO_PERIPH_A 0 | ||
#define GPIO_PERIPH_B 1 | ||
|
||
#define NR_GPIO_CONTROLLERS 4 | ||
|
||
/* | ||
* Pin numbers identifying specific GPIO pins on the chip. They can | ||
* also be converted to IRQ numbers by passing them through | ||
* gpio_to_irq(). | ||
*/ | ||
#define GPIO_PIOA_BASE (0) | ||
#define GPIO_PIOB_BASE (GPIO_PIOA_BASE + 32) | ||
#define GPIO_PIOC_BASE (GPIO_PIOB_BASE + 32) | ||
#define GPIO_PIOD_BASE (GPIO_PIOC_BASE + 32) | ||
|
||
#define GPIO_PIN_PA(N) (GPIO_PIOA_BASE + (N)) | ||
#define GPIO_PIN_PB(N) (GPIO_PIOB_BASE + (N)) | ||
#define GPIO_PIN_PC(N) (GPIO_PIOC_BASE + (N)) | ||
#define GPIO_PIN_PD(N) (GPIO_PIOD_BASE + (N)) | ||
|
||
#endif /* __ASM_ARCH_AT32AP7000_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters