Photon/P1 pin function chages

@BDub, checking in to see if you’ve had time to look get something put together.
Thanks

@BDub, Do you have any updates on adding the spare pins as GPIOs?

Sorry @wesner0019 I got absolutely slammed and didn’t get to this yet. That said I have it prioritized on this sprint which starts tomorrow :smile:

1 Like

Thanks @BDub, This is awesome how hard Particle works to help out developers!

1 Like

@BDub, So looking into this, below is what I came up with

Below needs to be added to the hal\src\stm32f2xx\pinmap_hal.c file:

I’m not sure what other files also need updating. Any ideas? Is this something I could build locally with?

/* B0 */ { GPIOB, GPIO_Pin_0, GPIO_PinSource0, ADC_Channel_8, NONE, TIM3, TIM_Channel_3, PIN_MODE_NONE, 0, 0 },
/* B1 */ { GPIOB, GPIO_Pin_1, GPIO_PinSource1, ADC_Channel_9, NONE, TIM3, TIM_Channel_4, PIN_MODE_NONE, 0, 0 },
/* B2 */ { GPIOC, GPIO_Pin_0, GPIO_PinSource0, ADC_Channel_12, NONE, NONE, NONE, PIN_MODE_NONE, 0, 0 },
/* B3 */ { GPIOC, GPIO_Pin_4, GPIO_PinSource4, ADC_Channel_14, NONE, NONE, NONE, PIN_MODE_NONE, 0, 0 },
/* B4 */ { GPIOC, GPIO_Pin_13, GPIO_PinSource13, NONE, NONE, NONE, NONE, PIN_MODE_NONE, 0, 0 },
/* B5 */ { GPIOC, GPIO_Pin_1, GPIO_PinSource1, ADC_Channel_11, NONE, NONE, NONE, PIN_MODE_NONE, 0, 0 }

chart created from the data STM32F20XX datasheet: