Hi,
   I found an annotation error at mynewt_stm32f3/...../hal_gpio.c :

/*
 * GPIO pin mapping
 *
 * The stm32F4xx processors have 16 gpio pins per port. We map the logical pin
 * numbers (from 0 to N) in the following manner:
 *      Port A: PA0-PA15 map to pins 0 - 15.
 *      Port B: PB0-PB15 map to pins 16 - 31.
 *      Port C: PC0-PC15 map to pins 32 - 47.
 *
 *      To convert a gpio to pin number, do the following:
 *          - Convert port label to its numeric value (A=0, B=1, C=2, etc).
 *          - Multiply by 16.
 *          - Add port pin number.
 *
 *      Ex: PD11 = (4 * 16) + 11 = 75.
 *          PA0 = (0 * 16) + 0 = 0
 */


it should be :
   PD11 = ( 3 * 16 ) + 11 = 59


Thanks
 









Reply via email to