summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/stm32/pin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/pin.h b/ports/stm32/pin.h
index 04479bd04..33f34ebcc 100644
--- a/ports/stm32/pin.h
+++ b/ports/stm32/pin.h
@@ -45,8 +45,8 @@ typedef struct {
typedef struct {
mp_obj_base_t base;
qstr name;
- uint32_t port : 4;
- uint32_t pin : 5; // Some ARM processors use 32 bits/PORT
+ uint32_t port : 4; // Allows GPIOA through GPIOP
+ uint32_t pin : 4; // ST MCUs have a maximum of 16 pins per port
uint32_t num_af : 4;
uint32_t adc_channel : 5; // Some ARM processors use 32 bits/PORT
uint32_t adc_num : 3; // 1 bit per ADC