diff options
| author | Daniel Campora <daniel@wipy.io> | 2015-08-18 14:07:19 +0200 |
|---|---|---|
| committer | Daniel Campora <daniel@wipy.io> | 2015-09-10 07:59:03 +0200 |
| commit | e3f8777ee8b50ef8ed45493812a6c0bf94ed38fa (patch) | |
| tree | d4a0e692b1c9b313549f66fecc464014e0a74c38 /cc3200/boards | |
| parent | ec8589e4c9e99dc28ff8c1fc981bcb9af591a1dc (diff) | |
cc3200: Implement new Pin API.
Diffstat (limited to 'cc3200/boards')
| -rw-r--r-- | cc3200/boards/cc3200_prefix.c | 3 | ||||
| -rw-r--r-- | cc3200/boards/make-pins.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cc3200/boards/cc3200_prefix.c b/cc3200/boards/cc3200_prefix.c index d0265df49..330d0eb9e 100644 --- a/cc3200/boards/cc3200_prefix.c +++ b/cc3200/boards/cc3200_prefix.c @@ -44,11 +44,12 @@ { &pin_type }, \ .name = MP_QSTR_ ## p_pin_name, \ .port = PORT_A ## p_port, \ - .type = PIN_TYPE_STD, \ + .pull = PIN_TYPE_STD, \ .bit = (p_bit), \ .pin_num = (p_pin_num), \ .af = PIN_MODE_0, \ .strength = PIN_STRENGTH_4MA, \ .mode = GPIO_DIR_MODE_IN, \ + .value = 0, \ .isused = false, \ } diff --git a/cc3200/boards/make-pins.py b/cc3200/boards/make-pins.py index ac1a80be9..ec078945d 100644 --- a/cc3200/boards/make-pins.py +++ b/cc3200/boards/make-pins.py @@ -107,7 +107,7 @@ class Pins(object): for pin in self.cpu_pins: if pin.is_board_pin(): pin.print() - self.print_named('cpu', self.cpu_pins) + self.print_named('board', self.cpu_pins) print('') def print_header(self, hdr_filename): |
