summaryrefslogtreecommitdiff
path: root/cc3200/boards
diff options
context:
space:
mode:
authordanicampora <danicampora@gmail.com>2015-03-04 13:52:39 +0100
committerdanicampora <danicampora@gmail.com>2015-03-11 17:00:33 +0100
commit9e44383e3f4092940a1e1b49a278978df99f7b08 (patch)
tree606ad67566b41bb037bd02e678891dfb69db6c70 /cc3200/boards
parent73aee8da54f847341d0fd9718d05ca964654a6dd (diff)
cc3200: Add power management framework. Add mpcallback class.
Supports suspend and hibernate modes. Waking is possible throug GPIO and WLAN. The mpcallback class is generic and can be reused by other classes.
Diffstat (limited to 'cc3200/boards')
-rw-r--r--cc3200/boards/LAUNCHXL/mpconfigboard.h2
-rw-r--r--cc3200/boards/cc3200_prefix.c2
-rw-r--r--cc3200/boards/make-pins.py5
3 files changed, 5 insertions, 4 deletions
diff --git a/cc3200/boards/LAUNCHXL/mpconfigboard.h b/cc3200/boards/LAUNCHXL/mpconfigboard.h
index 2d12d4f6c..7044cb003 100644
--- a/cc3200/boards/LAUNCHXL/mpconfigboard.h
+++ b/cc3200/boards/LAUNCHXL/mpconfigboard.h
@@ -46,3 +46,5 @@
#define MICROPY_SYS_LED_PORT_PIN GPIO_PIN_1
#define MICROPY_SAFE_BOOT_PORT_PIN GPIO_PIN_6
+#define MICROPY_PORT_SFLASH_BLOCK_COUNT 32
+
diff --git a/cc3200/boards/cc3200_prefix.c b/cc3200/boards/cc3200_prefix.c
index 2b60134b5..394f8bfa6 100644
--- a/cc3200/boards/cc3200_prefix.c
+++ b/cc3200/boards/cc3200_prefix.c
@@ -43,7 +43,7 @@
{ \
{ &pin_type }, \
.name = MP_QSTR_ ## p_pin_name, \
- .callback = NULL, \
+ .callback = mp_const_none, \
.port = PORT_A ## p_port, \
.type = PIN_TYPE_STD, \
.bit = (p_bit), \
diff --git a/cc3200/boards/make-pins.py b/cc3200/boards/make-pins.py
index 8d4717133..ebe7e6a33 100644
--- a/cc3200/boards/make-pins.py
+++ b/cc3200/boards/make-pins.py
@@ -40,12 +40,11 @@ class Pin(object):
self.board_pin = True
def print(self):
- print('const pin_obj_t pin_{:6s} = PIN({:6s}, {:1d}, {:3d}, {:2d});'.format(
+ print('pin_obj_t pin_{:6s} = PIN({:6s}, {:1d}, {:3d}, {:2d});'.format(
self.name, self.name, self.port, self.gpio_bit, self.pin_num))
def print_header(self, hdr_file):
- hdr_file.write('extern const pin_obj_t pin_{:s};\n'.
- format(self.name))
+ hdr_file.write('extern pin_obj_t pin_{:s};\n'.format(self.name))
class Pins(object):