diff options
author | danicampora <daniel@wipy.io> | 2016-02-14 13:46:04 +0100 |
---|---|---|
committer | danicampora <daniel@wipy.io> | 2016-02-21 21:53:16 +0100 |
commit | 73c9f85b4ca10bcf8a01942e3638aa8b4331957a (patch) | |
tree | fbfbdb064ec984c7ba568c8e4a8b492ec039adf6 /cc3200/boards/make-pins.py | |
parent | 562bcffd3aa9e9e1226389e658c6d5d0ac007add (diff) | |
download | micropython-73c9f85b4ca10bcf8a01942e3638aa8b4331957a.tar.gz micropython-73c9f85b4ca10bcf8a01942e3638aa8b4331957a.zip |
cc3200: Simplify the Timer API and correct the documents.
Make the PWM duty cycle configurable from 0.00 to 100.00 by
accepting values from 0 to 10000.
Add automatic Pin assignment when operating in PWM mode.
Diffstat (limited to 'cc3200/boards/make-pins.py')
-rw-r--r-- | cc3200/boards/make-pins.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cc3200/boards/make-pins.py b/cc3200/boards/make-pins.py index 676896803a..26ca5a0b92 100644 --- a/cc3200/boards/make-pins.py +++ b/cc3200/boards/make-pins.py @@ -12,7 +12,7 @@ SUPPORTED_AFS = { 'UART': ('TX', 'RX', 'RTS', 'CTS'), 'SPI': ('CLK', 'MOSI', 'MISO', 'CS0'), #'I2S': ('CLK', 'FS', 'DAT0', 'DAT1'), 'I2C': ('SDA', 'SCL'), - 'TIM': ('PWM0', 'PWM1', 'CC0', 'CC1'), + 'TIM': ('PWM'), 'SD': ('CLK', 'CMD', 'DAT0'), 'ADC': ('CH0', 'CH1', 'CH2', 'CH3') } @@ -44,6 +44,7 @@ class AF: def print(self): print (' AF({:16s}, {:4d}, {:8s}, {:4d}, {:8s}), // {}'.format(self.name, self.idx, self.fn, self.unit, self.type, self.name)) + class Pin: """Holds the information associated with a pin.""" def __init__(self, name, port, gpio_bit, pin_num): |