AnsweredAssumed Answered

GPIO - arduino pin mapping for STM32F769I-discovery?

Question asked by ben biles on Apr 24, 2017
Latest reply on Apr 25, 2017 by ben biles

Hi , I have succesfuly managed to merge the GPIO example code into my project.

I am using the audio application project as the base project.

The GPIO button toggles the LED.

 

I would like to define 3 GPIO pins as digital ouputs on the arduino headers of the STM32F769I-discovery board

 

so far I have code below, but can't find the arduino pin : GPIO pin map ?

can arduino pins GPIO ? or should I be doing this a different way ? I just need to toggle 3 pins high and low.

 

static void EXTI0_GPIO_BEN(void)
{
  GPIO_InitTypeDef   GPIO_InitStructure;

 

  /* Enable GPIOC clock */
  __HAL_RCC_GPIOA_CLK_ENABLE();

 

// configure gpio pins for reset for external adc dsp and dac devices

 

// gpio reset for ADC
  GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
  GPIO_InitStructure.Pull = GPIO_NOPULL; // no pullup or pull dowm resistors ?
  GPIO_InitStructure.Pin = GPIO_PIN_0;
  // gpio reset for DSP
  GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
   GPIO_InitStructure.Pull = GPIO_NOPULL; // no pullup or pull dowm resistors ?
   GPIO_InitStructure.Pin = GPIO_PIN_1;
   // gpio reset for DAC
    GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
     GPIO_InitStructure.Pull = GPIO_NOPULL; // no pullup or pull dowm resistors ?
     GPIO_InitStructure.Pin = GPIO_PIN_1;

 

  HAL_GPIO_Init(GPIOA, &GPIO_InitStructure);  /// go initilize pins ?

 

  // i don't think I need to have interrupts for this ??

 /* Enable and set EXTI line 0 Interrupt to the lowest priority */
 //  HAL_NVIC_SetPriority(EXTI0_IRQn, 2, 0);
 //  HAL_NVIC_EnableIRQ(EXTI0_IRQn);
}

Outcomes