Fix GPIO pin mapping

This commit is contained in:
iabdalkader 2014-09-24 23:26:59 +02:00
parent ec758df357
commit 0224c29588
3 changed files with 14 additions and 13 deletions

View File

@ -373,11 +373,12 @@ void SSIContReadOperation(void)
}
}
void WLAN_IRQHandler(void)
//void WLAN_IRQHandler(void)
void wlan_irqhandler(void)
{
if (__HAL_GPIO_EXTI_GET_FLAG(WLAN_EXTI_LINE)) {
/* Clear the EXTI pending bit */
__HAL_GPIO_EXTI_CLEAR_FLAG(WLAN_EXTI_LINE);
__HAL_GPIO_EXTI_CLEAR_FLAG(WLAN_EXTI_LINE); //FIX EXTI_LINE
switch (sSpiInformation.ulSpiState) {
case eSPI_STATE_POWERUP:

View File

@ -28,12 +28,12 @@ extern const gpio_t gpio_pins[];
/* GPIOs */
typedef enum {
GPIO_PA8,
GPIO_PA15,
GPIO_PC9,
GPIO_PC10,
GPIO_PC11,
GPIO_PC12,
GPIO_PC12, //P1
GPIO_PB11, //P2
GPIO_PC11, //P3
GPIO_PB10, //P4
GPIO_PC10, //P5
GPIO_PA15, //P6 (P7 in schematic)
GPIO_ID_MAX,
} gpio_id_t;

View File

@ -22,12 +22,12 @@ const gpio_t led_pins[] = {
/* GPIOs */
#ifdef OPENMV1
const gpio_t gpio_pins[] = {
{GPIOA, GPIO_PIN_8 },
{GPIOA, GPIO_PIN_15},
{GPIOC, GPIO_PIN_9 },
{GPIOC, GPIO_PIN_10},
{GPIOC, GPIO_PIN_11},
{GPIOC, GPIO_PIN_12},
{GPIOB, GPIO_PIN_11},
{GPIOC, GPIO_PIN_11},
{GPIOB, GPIO_PIN_10},
{GPIOC, GPIO_PIN_10},
{GPIOA, GPIO_PIN_15},
{NULL, 0}
};
#else