Skip to content

Commit 0078787

Browse files
author
Daniel Campora
committed
cc3200: Rename pins from GPIO to just GP.
This is how the names will be printed on the sticker that goes on top of the EMI shield. The shorter names also help saving a few bytes of RAM and ROM.
1 parent cfc4c33 commit 0078787

13 files changed

Lines changed: 113 additions & 113 deletions

File tree

cc3200/boards/LAUNCHXL/mpconfigboard.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@
3838
#define MICROPY_STDIO_UART 1
3939
#define MICROPY_STDIO_UART_BAUD 115200
4040
#define MICROPY_STDIO_UART_RX_BUF_SIZE 128
41-
#define MICROPY_STDIO_UART_TX_PIN (pin_GPIO1)
42-
#define MICROPY_STDIO_UART_RX_PIN (pin_GPIO2)
41+
#define MICROPY_STDIO_UART_TX_PIN (pin_GP1)
42+
#define MICROPY_STDIO_UART_RX_PIN (pin_GP2)
4343
#define MICROPY_STDIO_UART_TX_PIN_AF PIN_MODE_3
4444
#define MICROPY_STDIO_UART_RX_PIN_AF PIN_MODE_3
4545

4646
#define MICROPY_SYS_LED_PRCM PRCM_GPIOA1
4747
#define MICROPY_SAFE_BOOT_PRCM PRCM_GPIOA2
4848
#define MICROPY_SYS_LED_PORT GPIOA1_BASE
4949
#define MICROPY_SAFE_BOOT_PORT GPIOA2_BASE
50-
#define MICROPY_SYS_LED_GPIO pin_GPIO9
51-
#define MICROPY_SYS_LED_PIN_NUM PIN_64 // GPIO9
52-
#define MICROPY_SAFE_BOOT_PIN_NUM PIN_15 // GPIO22
50+
#define MICROPY_SYS_LED_GPIO pin_GP9
51+
#define MICROPY_SYS_LED_PIN_NUM PIN_64 // GP9
52+
#define MICROPY_SAFE_BOOT_PIN_NUM PIN_15 // GP22
5353
#define MICROPY_SYS_LED_PORT_PIN GPIO_PIN_1
5454
#define MICROPY_SAFE_BOOT_PORT_PIN GPIO_PIN_6
5555

cc3200/boards/WIPY/mpconfigboard.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
#define MICROPY_SAFE_BOOT_PRCM PRCM_GPIOA3
4040
#define MICROPY_SYS_LED_PORT GPIOA3_BASE
4141
#define MICROPY_SAFE_BOOT_PORT GPIOA3_BASE
42-
#define MICROPY_SYS_LED_GPIO pin_GPIO25
43-
#define MICROPY_SYS_LED_PIN_NUM PIN_21 // GPIO25 (SOP2)
44-
#define MICROPY_SAFE_BOOT_PIN_NUM PIN_18 // GPIO28
42+
#define MICROPY_SYS_LED_GPIO pin_GP25
43+
#define MICROPY_SYS_LED_PIN_NUM PIN_21 // GP25 (SOP2)
44+
#define MICROPY_SAFE_BOOT_PIN_NUM PIN_18 // GP28
4545
#define MICROPY_SYS_LED_PORT_PIN GPIO_PIN_1
4646
#define MICROPY_SAFE_BOOT_PORT_PIN GPIO_PIN_4
4747

cc3200/boards/WIPY/pins.csv

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
L2,GPIO2
2-
L3,GPIO1
3-
L4,GPIO23
4-
L5,GPIO24
5-
L6,GPIO11
6-
L7,GPIO12
7-
L8,GPIO13
8-
L9,GPIO14
9-
L10,GPIO15
10-
L11,GPIO16
11-
L12,GPIO17
12-
L13,GPIO22
13-
L14,GPIO28
14-
R4,GPIO10
15-
R5,GPIO9
16-
R6,GPIO8
17-
R7,GPIO7
18-
R8,GPIO6
19-
R9,GPIO30
20-
R10,GPIO31
21-
R11,GPIO3
22-
R12,GPIO0
23-
R13,GPIO4
24-
R14,GPIO5
25-
HBL,GPIO25
1+
L2,GP2
2+
L3,GP1
3+
L4,GP23
4+
L5,GP24
5+
L6,GP11
6+
L7,GP12
7+
L8,GP13
8+
L9,GP14
9+
L10,GP15
10+
L11,GP16
11+
L12,GP17
12+
L13,GP22
13+
L14,GP28
14+
R4,GP10
15+
R5,GP9
16+
R6,GP8
17+
R7,GP7
18+
R8,GP6
19+
R9,GP30
20+
R10,GP31
21+
R11,GP3
22+
R12,GP0
23+
R13,GP4
24+
R14,GP5
25+
HBL,GP25

cc3200/boards/cc3200_af.csv

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
Pin,Name,Default,AF0,AF1,AF2,AF3,AF4,AF5,AF6,AF7,AF8,AF9,AF10,AF11,AF12,AF13,AF14,AF15,ADC
2-
1,GPIO10,GPIO10,GPIO10,I2C_SCL,,GT_PWM06,,,SDCARD_CLK,UART1_TX,,,,,GT_CCP01,,,,
3-
2,GPIO11,GPIO11,GPIO11,I2C_SDA,,GT_PWM07,pXCLK(XVCLK),,SDCARD_CMD,UART1_RX,,,,,GT_CCP02,McAFSX,,,
4-
3,GPIO12,GPIO12,GPIO12,,,McACLK,pVS(VSYNC),I2C_SCL,,UART0_TX,,,,,GT_CCP03,,,,
5-
4,GPIO13,GPIO13,GPIO13,,,,pHS(HSYNC),I2C_SDA,,UART0_RX,,,,,GT_CCP04,,,,
6-
5,GPIO14,GPIO14,GPIO14,,,,pDATA8(CAM_D4),2C_SCL,,GSPI_CLK,,,,,GT_CCP05,,,,
7-
6,GPIO15,GPIO15,GPIO15,,,,pDATA9(CAM_D5),I2C_SDA,,GSPI_MISO,,,,,,GT_CCP06,,,
8-
7,GPIO16,GPIO16,GPIO16,,,,pDATA10(CAM_D6),UART1_TX,,GSPI_MOSI,,,,,,GT_CCP07,,,
9-
8,GPIO17,GPIO17,GPIO17,,,,pDATA11(CAM_D7),UART1_RX,,GSPI_CS,,,,,,,,,
2+
1,GP10,GP10,GP10,I2C_SCL,,GT_PWM06,,,SDCARD_CLK,UART1_TX,,,,,GT_CCP01,,,,
3+
2,GP11,GP11,GP11,I2C_SDA,,GT_PWM07,pXCLK(XVCLK),,SDCARD_CMD,UART1_RX,,,,,GT_CCP02,McAFSX,,,
4+
3,GP12,GP12,GP12,,,McACLK,pVS(VSYNC),I2C_SCL,,UART0_TX,,,,,GT_CCP03,,,,
5+
4,GP13,GP13,GP13,,,,pHS(HSYNC),I2C_SDA,,UART0_RX,,,,,GT_CCP04,,,,
6+
5,GP14,GP14,GP14,,,,pDATA8(CAM_D4),2C_SCL,,GSPI_CLK,,,,,GT_CCP05,,,,
7+
6,GP15,GP15,GP15,,,,pDATA9(CAM_D5),I2C_SDA,,GSPI_MISO,,,,,,GT_CCP06,,,
8+
7,GP16,GP16,GP16,,,,pDATA10(CAM_D6),UART1_TX,,GSPI_MOSI,,,,,,GT_CCP07,,,
9+
8,GP17,GP17,GP17,,,,pDATA11(CAM_D7),UART1_RX,,GSPI_CS,,,,,,,,,
1010
9,VDD_DIG1,VDD_DIG1,VDD_DIG1,,,,,,,,,,,,,,,,
1111
10,VIN_IO1,VIN_IO1,VIN_IO1,,,,,,,,,,,,,,,,
1212
11,FLASH_SPI_CLK,FLASH_SPI_CLK,FLASH_SPI_CLK,,,,,,,,,,,,,,,,
1313
12,FLASH_SPI_DOUT,FLASH_SPI_DOUT,FLASH_SPI_DOUT,,,,,,,,,,,,,,,,
1414
13,FLASH_SPI_DIN,FLASH_SPI_DIN,FLASH_SPI_DIN,,,,,,,,,,,,,,,,
1515
14,FLASH_SPI_CS,FLASH_SPI_CS,FLASH_SPI_CS,,,,,,,,,,,,,,,,
16-
15,GPIO22,GPIO22,GPIO22,,,,,GT_CCP04,,McAFSX,,,,,,,,,
17-
16,GPIO23,TDI,GPIO23,TDI,UART1_TX,,,,,,,2C_SCL,,,,,,,
18-
17,GPIO24,TDO,GPIO24,TDO,UART1_RX,,GT_CCP06,PWM0,McAFSX,,,I2C_SDA,,,,,,,
19-
18,GPIO28,GPIO28,GPIO28,,,,,,,,,,,,,,,,
16+
15,GP22,GP22,GP22,,,,,GT_CCP04,,McAFSX,,,,,,,,,
17+
16,GP23,TDI,GP23,TDI,UART1_TX,,,,,,,2C_SCL,,,,,,,
18+
17,GP24,TDO,GP24,TDO,UART1_RX,,GT_CCP06,PWM0,McAFSX,,,I2C_SDA,,,,,,,
19+
18,GP28,GP28,GP28,,,,,,,,,,,,,,,,
2020
19,TCK,TCK,,TCK,,,,,,,GT_PWM03,,,,,,,,
21-
20,GPIO29,TMS,GPIO29,TMS,,,,,,,,,,,,,,,
22-
21,GPIO25,SOP2,GPIO25,,McAFSX,,,,,,,GT_PWM02,,,,,,,
21+
20,GP29,TMS,GP29,TMS,,,,,,,,,,,,,,,
22+
21,GP25,SOP2,GP25,,McAFSX,,,,,,,GT_PWM02,,,,,,,
2323
22,WLAN_XTAL_N,WLAN_XTAL_N,WLAN_XTAL_N,,,,,,,,,,,,,,,,
2424
23,WLAN_XTAL_P,WLAN_XTAL_P,WLAN_XTAL_P,,,,,,,,,,,,,,,,
2525
24,VDD_PLL,VDD_PLL,VDD_PLL,,,,,,,,,,,,,,,,
@@ -43,24 +43,24 @@ Pin,Name,Default,AF0,AF1,AF2,AF3,AF4,AF5,AF6,AF7,AF8,AF9,AF10,AF11,AF12,AF13,AF1
4343
42,DCDC_PA_OUT,DCDC_PA_O UT,DCDC_PA_O UT,,,,,,,,,,,,,,,,
4444
43,DCDC_DIG_SW,DCDC_DIG_ SW,DCDC_DIG_ SW,,,,,,,,,,,,,,,,
4545
44,VIN_DCDC_DIG,VIN_DCDC_ DIG,VIN_DCDC_ DIG,,,,,,,,,,,,,,,,
46-
45,GPIO31,DCDC_ANA2_SW_P,GPIO31,,UART1_RX,,,,McAXR0,GSPI_CLK,,UART0_RX,,,McAFSX,,,,
46+
45,GP31,DCDC_ANA2_SW_P,GP31,,UART1_RX,,,,McAXR0,GSPI_CLK,,UART0_RX,,,McAFSX,,,,
4747
46,DCDC_ANA2_SW_N,DCDC_ANA2_SW_N,DCDC_ANA2_SW_N,,,,,,,,,,,,,,,,
4848
47,VDD_ANA2,VDD_ANA2,VDD_ANA2,,,,,,,,,,,,,,,,
4949
48,VDD_ANA1,VDD_ANA1,VDD_ANA1,,,,,,,,,,,,,,,,
5050
49,VDD_RAM,VDD_RAM,VDD_RAM,,,,,,,,,,,,,,,,
51-
50,GPIO0,GPIO0,GPIO0,,,UART0_RTS,McAXR0,,McAXR1,GT_CCP00,,GSPI_CS,UART1_RTS,,UART0_CTS,,,,
51+
50,GP0,GP0,GP0,,,UART0_RTS,McAXR0,,McAXR1,GT_CCP00,,GSPI_CS,UART1_RTS,,UART0_CTS,,,,
5252
51,RTC_XTAL_P,RTC_XTAL_P,RTC_XTAL_P,,,,,,,,,,,,,,,,
53-
52,RTC_XTAL_N,RTC_XTAL_N,GPIO32,,McACLK,,McAXR0,,UART0_RTS,,GSPI_MOSI,,,,,,,,
54-
53,GPIO30,GPIO30,GPIO30,,McACLK,McAFSX,GT_CCP05,,,GSPI_MISO,,UART0_TX,,,,,,,
53+
52,RTC_XTAL_N,RTC_XTAL_N,GP32,,McACLK,,McAXR0,,UART0_RTS,,GSPI_MOSI,,,,,,,,
54+
53,GP30,GP30,GP30,,McACLK,McAFSX,GT_CCP05,,,GSPI_MISO,,UART0_TX,,,,,,,
5555
54,VIN_IO2,VIN_IO2,VIN_IO2,,,,,,,,,,,,,,,,
56-
55,GPIO1,GPIO1,GPIO1,,,GSPI_MISO,pCLK (PIXCLK),,UART1_TX,GT_CCP01,,,,,,,,,
56+
55,GP1,GP1,GP1,,,GSPI_MISO,pCLK (PIXCLK),,UART1_TX,GT_CCP01,,,,,,,,,
5757
56,VDD_DIG2,VDD_DIG2,VDD_DIG2,,,,,,,,,,,,,,,,
58-
57,GPIO2,GPIO2,GPIO2,,,UART0_RX,,,UART1_RX,GT_CCP02,,,,,,,,,ADC_CH0
59-
58,GPIO3,GPIO3,GPIO3,,,,pDATA7(CAM_D3),,UART1_TX,,,,,,,,,,ADC_CH1
60-
59,GPIO4,GPIO4,GPIO4,,,,pDATA6(CAM_D2),,UART1_RX,,,,,,,,,,ADC_CH2
61-
60,GPIO5,GPIO5,GPIO5,,,,pDATA5(CAM_D1),,McAXR1,GT_CCP05,,,,,,,,,ADC_CH3
62-
61,GPIO6,GPIO6,GPIO6,,,UART1_CTS,pDATA4(CAM_D0),UART0_RTS,UART0_CTS,GT_CCP06,,,,,,,,,
63-
62,GPIO7,GPIO7,GPIO7,,,UART1_RTS,,,,,,,UART0_RTS,UART0_TX,,McACLKX,,,
64-
63,GPIO8,GPIO8,GPIO8,,,,,,SDCARD_IRQ,McAFSX,,,,,GT_CCP06,,,,
65-
64,GPIO9,GPIO9,GPIO9,,,GT_PWM05,,,SDCARD_DATA,McAXR0,,,,,GT_CCP00,,,,
58+
57,GP2,GP2,GP2,,,UART0_RX,,,UART1_RX,GT_CCP02,,,,,,,,,ADC_CH0
59+
58,GP3,GP3,GP3,,,,pDATA7(CAM_D3),,UART1_TX,,,,,,,,,,ADC_CH1
60+
59,GP4,GP4,GP4,,,,pDATA6(CAM_D2),,UART1_RX,,,,,,,,,,ADC_CH2
61+
60,GP5,GP5,GP5,,,,pDATA5(CAM_D1),,McAXR1,GT_CCP05,,,,,,,,,ADC_CH3
62+
61,GP6,GP6,GP6,,,UART1_CTS,pDATA4(CAM_D0),UART0_RTS,UART0_CTS,GT_CCP06,,,,,,,,,
63+
62,GP7,GP7,GP7,,,UART1_RTS,,,,,,,UART0_RTS,UART0_TX,,McACLKX,,,
64+
63,GP8,GP8,GP8,,,,,,SDCARD_IRQ,McAFSX,,,,,GT_CCP06,,,,
65+
64,GP9,GP9,GP9,,,GT_PWM05,,,SDCARD_DATA,McAXR0,,,,,GT_CCP00,,,,
6666
65,GND_TAB,GND_TAB,GND_TAB,,,,,,,,,,,,,,,,

cc3200/boards/make-pins.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
def parse_port_pin(name_str):
1212
"""Parses a string and returns a (port, gpio_bit) tuple."""
13-
if len(name_str) < 5:
14-
raise ValueError("Expecting pin name to be at least 5 characters")
15-
if name_str[:4] != 'GPIO':
16-
raise ValueError("Expecting pin name to start with GPIO")
17-
if not name_str[4:].isdigit():
13+
if len(name_str) < 3:
14+
raise ValueError("Expecting pin name to be at least 3 characters")
15+
if name_str[:2] != 'GP':
16+
raise ValueError("Expecting pin name to start with GP")
17+
if not name_str[2:].isdigit():
1818
raise ValueError("Expecting numeric GPIO number")
19-
port = int(int(name_str[4:]) / 8)
20-
gpio_bit = 1 << int(int(name_str[4:]) % 8)
19+
port = int(int(name_str[2:]) / 8)
20+
gpio_bit = 1 << int(int(name_str[2:]) % 8)
2121
return (port, gpio_bit)
2222

2323

cc3200/mods/pybadc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,19 @@ STATIC mp_obj_t adc_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw,
119119
switch (idx) {
120120
case 0:
121121
channel = ADC_CH_0;
122-
pin = &pin_GPIO2;
122+
pin = &pin_GP2;
123123
break;
124124
case 1:
125125
channel = ADC_CH_1;
126-
pin = &pin_GPIO3;
126+
pin = &pin_GP3;
127127
break;
128128
case 2:
129129
channel = ADC_CH_2;
130-
pin = &pin_GPIO4;
130+
pin = &pin_GP4;
131131
break;
132132
case 3:
133133
channel = ADC_CH_3;
134-
pin = &pin_GPIO5;
134+
pin = &pin_GP5;
135135
break;
136136
default:
137137
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, mpexception_value_invalid_arguments));

cc3200/mods/pybpin.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ STATIC pybpin_wake_pin_t pybpin_wake_pin[PYBPIN_NUM_WAKE_PINS] =
135135
DEFINE PUBLIC FUNCTIONS
136136
******************************************************************************/
137137
void pin_init0(void) {
138-
// assign GPIO10 and GPIO11 to the GPIO peripheral (the default is I2C), so that the I2C bus can
138+
// assign GP10 and GP11 to the GPIO peripheral (the default is I2C), so that the I2C bus can
139139
// be assigned safely to any other pins (as recomended by the SDK release notes). Make them
140140
// inputs with pull-downs enabled to ensure they are not floating during LDPS and hibernate.
141-
pin_config ((pin_obj_t *)&pin_GPIO10, PIN_MODE_0, GPIO_DIR_MODE_IN, PIN_TYPE_STD_PD, PIN_STRENGTH_2MA);
142-
pin_config ((pin_obj_t *)&pin_GPIO11, PIN_MODE_0, GPIO_DIR_MODE_IN, PIN_TYPE_STD_PD, PIN_STRENGTH_2MA);
141+
pin_config ((pin_obj_t *)&pin_GP10, PIN_MODE_0, GPIO_DIR_MODE_IN, PIN_TYPE_STD_PD, PIN_STRENGTH_2MA);
142+
pin_config ((pin_obj_t *)&pin_GP11, PIN_MODE_0, GPIO_DIR_MODE_IN, PIN_TYPE_STD_PD, PIN_STRENGTH_2MA);
143143
}
144144

145145
// C API used to convert a user-supplied pin name into an ordinal pin number.
@@ -210,27 +210,27 @@ STATIC void pin_obj_configure (const pin_obj_t *self) {
210210
STATIC void pin_get_hibernate_pin_and_idx (const pin_obj_t *self, uint *hib_pin, uint *idx) {
211211
// pin_num is actually : (package_pin - 1)
212212
switch (self->pin_num) {
213-
case 56: // GPIO2
213+
case 56: // GP2
214214
*hib_pin = PRCM_HIB_GPIO2;
215215
*idx = 0;
216216
break;
217-
case 58: // GPIO4
217+
case 58: // GP4
218218
*hib_pin = PRCM_HIB_GPIO4;
219219
*idx = 1;
220220
break;
221-
case 3: // GPIO13
221+
case 3: // GP13
222222
*hib_pin = PRCM_HIB_GPIO13;
223223
*idx = 2;
224224
break;
225-
case 7: // GPIO17
225+
case 7: // GP17
226226
*hib_pin = PRCM_HIB_GPIO17;
227227
*idx = 3;
228228
break;
229-
case 1: // GPIO11
229+
case 1: // GP11
230230
*hib_pin = PRCM_HIB_GPIO11;
231231
*idx = 4;
232232
break;
233-
case 16: // GPIO24
233+
case 16: // GP24
234234
*hib_pin = PRCM_HIB_GPIO24;
235235
*idx = 5;
236236
break;

docs/library/pyb.ADC.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Constructors
4949
.. warning::
5050

5151
ADC pin input range is 0-1.4V (being 1.8V the absolute maximum that it
52-
can withstand). When GPIO2, GPIO3, GPIO4 or GPIO5 are remapped to the
52+
can withstand). When GP2, GP3, GP4 or GP5 are remapped to the
5353
ADC block, 1.8 V is the maximum. If these pins are used in digital mode,
5454
then the maximum allowed input is 3.6V.
5555

docs/library/pyb.HeartBeat.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ class HeartBeat -- heart beat LED
55

66
The HeartBeat class controls the heart beat led which by default
77
flashes once every 5s. The user can disable the HeartBeat and then
8-
is free to control this LED manually through GPIO25 using the Pin
9-
class. The GPIO25 can also be remapped as a PWM output, an this
8+
is free to control this LED manually through GP25 using the Pin
9+
class. The GP25 can also be remapped as a PWM output, an this
1010
can be used to control the light intesity of the heart beat LED.
1111

1212
Example usage::
@@ -39,8 +39,8 @@ Methods
3939
4040
# disable the heart beat
4141
pyb.HeartBeat().disable()
42-
# get the GPIO25 pin object
43-
hbl = pyb.Pin('GPIO25')
42+
# get the GP25 pin object
43+
hbl = pyb.Pin('GP25')
4444
# toggle the led
4545
hbl.toggle()
4646
...

docs/library/pyb.Pin.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ Usage Model:
6767

6868
Board pins are identified by their string name::
6969

70-
g = pyb.Pin('GPIO9', af=0, mode=pyb.Pin.IN, type=pyb.Pin.STD, strength=pyb.Pin.S2MA)
70+
g = pyb.Pin('GP9', af=0, mode=pyb.Pin.IN, type=pyb.Pin.STD, strength=pyb.Pin.S2MA)
7171

7272
You can also configure the Pin to generate interrupts. For instance::
7373

7474
def pincb(pin):
7575
print(pin.name())
7676

77-
pin_int = pyb.Pin('GPIO10', af=0, mode=Pin.IN, type=pyb.Pin.STD_PD, strength=pyb.Pin.S2MA)
77+
pin_int = pyb.Pin('GP10', af=0, mode=Pin.IN, type=pyb.Pin.STD_PD, strength=pyb.Pin.S2MA)
7878
pin_int.callback (mode=pyb.Pin.INT_RISING, handler=pincb)
7979
# the callback can be triggered manually
8080
pin_int.callback()()
@@ -288,12 +288,12 @@ Methods
288288
board. Please note:
289289

290290
- If ``wakes=pyb.Sleep.ACTIVE`` any pin can wake the board.
291-
- If ``wakes=pyb.Sleep.SUSPENDED`` pins ``GPIO2``, ``GPIO4``, ``GPIO10``,
292-
``GPIO11``, GPIO17`` or ``GPIO24`` can wake the board. Note that only 1
291+
- If ``wakes=pyb.Sleep.SUSPENDED`` pins ``GP2``, ``GP4``, ``GP10``,
292+
``GP11``, GP17`` or ``GP24`` can wake the board. Note that only 1
293293
of this pins can be enabled as a wake source at the same time, so, only
294294
the last enabled pin as a ``pyb.Sleep.SUSPENDED`` wake source will have effect.
295-
- If ``wakes=pyb.Sleep.SUSPENDED`` pins ``GPIO2``, ``GPIO4``, ``GPIO10``,
296-
``GPIO11``, ``GPIO17`` and ``GPIO24`` can wake the board. In this case all of the
295+
- If ``wakes=pyb.Sleep.SUSPENDED`` pins ``GP2``, ``GP4``, ``GP10``,
296+
``GP11``, ``GP17`` and ``GP24`` can wake the board. In this case all of the
297297
6 pins can be enabled as a ``pyb.Sleep.HIBERNATE`` wake source at the same time.
298298
- Values can be ORed to make a pin generate interrupts in more than one power
299299
mode.

0 commit comments

Comments
 (0)