summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mods/pybpin.c
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-07-28 23:03:53 +0200
committerDaniel Campora <daniel@wipy.io>2015-07-30 00:43:08 +0200
commit007878781c74e0e4213759d8ee07ee81b5342f5c (patch)
treefb4ee36746826043ce18993b488ac42b370f5cfa /cc3200/mods/pybpin.c
parentcfc4c338015cb65a35228706c44485dd57ec238e (diff)
downloadmicropython-007878781c74e0e4213759d8ee07ee81b5342f5c.tar.gz
micropython-007878781c74e0e4213759d8ee07ee81b5342f5c.zip
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.
Diffstat (limited to 'cc3200/mods/pybpin.c')
-rw-r--r--cc3200/mods/pybpin.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/cc3200/mods/pybpin.c b/cc3200/mods/pybpin.c
index 6584198863..6bc430a14b 100644
--- a/cc3200/mods/pybpin.c
+++ b/cc3200/mods/pybpin.c
@@ -135,11 +135,11 @@ STATIC pybpin_wake_pin_t pybpin_wake_pin[PYBPIN_NUM_WAKE_PINS] =
DEFINE PUBLIC FUNCTIONS
******************************************************************************/
void pin_init0(void) {
- // assign GPIO10 and GPIO11 to the GPIO peripheral (the default is I2C), so that the I2C bus can
+ // assign GP10 and GP11 to the GPIO peripheral (the default is I2C), so that the I2C bus can
// be assigned safely to any other pins (as recomended by the SDK release notes). Make them
// inputs with pull-downs enabled to ensure they are not floating during LDPS and hibernate.
- pin_config ((pin_obj_t *)&pin_GPIO10, PIN_MODE_0, GPIO_DIR_MODE_IN, PIN_TYPE_STD_PD, PIN_STRENGTH_2MA);
- pin_config ((pin_obj_t *)&pin_GPIO11, PIN_MODE_0, GPIO_DIR_MODE_IN, PIN_TYPE_STD_PD, PIN_STRENGTH_2MA);
+ pin_config ((pin_obj_t *)&pin_GP10, PIN_MODE_0, GPIO_DIR_MODE_IN, PIN_TYPE_STD_PD, PIN_STRENGTH_2MA);
+ pin_config ((pin_obj_t *)&pin_GP11, PIN_MODE_0, GPIO_DIR_MODE_IN, PIN_TYPE_STD_PD, PIN_STRENGTH_2MA);
}
// 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) {
STATIC void pin_get_hibernate_pin_and_idx (const pin_obj_t *self, uint *hib_pin, uint *idx) {
// pin_num is actually : (package_pin - 1)
switch (self->pin_num) {
- case 56: // GPIO2
+ case 56: // GP2
*hib_pin = PRCM_HIB_GPIO2;
*idx = 0;
break;
- case 58: // GPIO4
+ case 58: // GP4
*hib_pin = PRCM_HIB_GPIO4;
*idx = 1;
break;
- case 3: // GPIO13
+ case 3: // GP13
*hib_pin = PRCM_HIB_GPIO13;
*idx = 2;
break;
- case 7: // GPIO17
+ case 7: // GP17
*hib_pin = PRCM_HIB_GPIO17;
*idx = 3;
break;
- case 1: // GPIO11
+ case 1: // GP11
*hib_pin = PRCM_HIB_GPIO11;
*idx = 4;
break;
- case 16: // GPIO24
+ case 16: // GP24
*hib_pin = PRCM_HIB_GPIO24;
*idx = 5;
break;