Created
August 24, 2017 08:14
-
-
Save hunandy14/0f48d91e180aece3db1e4bfbd81d86eb to your computer and use it in GitHub Desktop.
STM32F469I ArduinoPin Define
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
/* | |
Arduino D0~D15 腳位定義 | |
*/ | |
#define ArD0_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
#define ArD1_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
#define ArD2_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
#define ArD3_GPIO_PORT ((GPIO_TypeDef*)GPIOA) | |
#define ArD4_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
#define ArD5_GPIO_PORT ((GPIO_TypeDef*)GPIOA) | |
#define ArD6_GPIO_PORT ((GPIO_TypeDef*)GPIOA) | |
#define ArD7_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
#define ArD8_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
#define ArD9_GPIO_PORT ((GPIO_TypeDef*)GPIOA) | |
#define ArD10_GPIO_PORT ((GPIO_TypeDef*)GPIOH) | |
#define ArD11_GPIO_PORT ((GPIO_TypeDef*)GPIOB) | |
#define ArD12_GPIO_PORT ((GPIO_TypeDef*)GPIOB) | |
#define ArD13_GPIO_PORT ((GPIO_TypeDef*)GPIOD) | |
#define ArD14_GPIO_PORT ((GPIO_TypeDef*)GPIOB) | |
#define ArD15_GPIO_PORT ((GPIO_TypeDef*)GPIOB) | |
#define ArD0_PIN ((uint32_t)GPIO_PIN_9) | |
#define ArD1_PIN ((uint32_t)GPIO_PIN_14) | |
#define ArD2_PIN ((uint32_t)GPIO_PIN_13) | |
#define ArD3_PIN ((uint32_t)GPIO_PIN_1) | |
#define ArD4_PIN ((uint32_t)GPIO_PIN_12) | |
#define ArD5_PIN ((uint32_t)GPIO_PIN_2) | |
#define ArD6_PIN ((uint32_t)GPIO_PIN_6) | |
#define ArD7_PIN ((uint32_t)GPIO_PIN_11) | |
#define ArD8_PIN ((uint32_t)GPIO_PIN_10) | |
#define ArD9_PIN ((uint32_t)GPIO_PIN_7) | |
#define ArD10_PIN ((uint32_t)GPIO_PIN_6) | |
#define ArD11_PIN ((uint32_t)GPIO_PIN_15) | |
#define ArD12_PIN ((uint32_t)GPIO_PIN_14) | |
#define ArD13_PIN ((uint32_t)GPIO_PIN_3) | |
#define ArD14_PIN ((uint32_t)GPIO_PIN_9) | |
#define ArD15_PIN ((uint32_t)GPIO_PIN_8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment