Daniel Campora
dbdcb58d64
cc3200: New irq API, affects all classes that provide the irq method.
9 years ago
Daniel Campora
dffa9f6da6
cc3200: New SD and RTC API plus os and time modules' extensions.
9 years ago
Daniel Campora
22b4c28f85
cc3200: New ADC API.
9 years ago
Daniel Campora
aba75e1233
cc3200: New SPI API.
9 years ago
Daniel Campora
41f6948545
cc3200: New WDT API.
9 years ago
Daniel Campora
8332044f75
cc3200: Add UART.ODD and UART.EVEN to select parity.
9 years ago
Daniel Campora
d5ec336eef
cc3200: Replace Pin.PULL_NONE with None.
9 years ago
Daniel Campora
e77abc261b
cc3200: Default peripheral ID support on I2C.
9 years ago
Daniel Campora
7d6b6f6681
cc3200: Make UART choose default id when not given.
9 years ago
Daniel Campora
d936317143
cc3200: New I2C API.
9 years ago
Daniel Campora
f91f212d9f
cc3200: New UART API plus related test.
9 years ago
Daniel Campora
36821d095a
cc3200: Add alternate functions list to Pin object.
Also remove pin.high() and pin.low() methods.
9 years ago
Daniel Campora
d5e256486e
cc3200: Re-work Pin class according to the new API.
Also add relevant test.
9 years ago
Daniel Campora
475c60eefc
cc3200: Add alt param to Pin constructor.
9 years ago
Daniel Campora
e3f8777ee8
cc3200: Implement new Pin API.
9 years ago
Daniel Campora
11d21081b4
cc3200: Rework SD API. Increase heap to avoid malloc failures.
9 years ago
Daniel Campora
34c290b678
cc3200: Rename SPI nss param to cs.
The nss param in the pyboard has a different meaning that doesn't
apply to the WiPy.
9 years ago
Daniel Campora
ea5061e409
cc3200: Improve callback API.
Rename "wakes" param to "wake_from" and make "value" an object
instead of an integer.
9 years ago
Daniel Campora
7027fd5343
cc3200: Make ADC API compatible with the pyboard.
9 years ago
Daniel Campora
00c4d6562e
cc3200: Add nic.iwconfig() to set/get WLAN configuration.
Changes are based on this post:
https://github.com/micropython/micropython/issues/876#issuecomment-115255551
The constructor can optionally take the same params of iwconfig in
order to configure WiFi when creating the object. Params are
keyworkd only. The WiPy accepts:
- mode (int -> WLAN.AP or WLAN.STA)
- ssdi (string)
- security (int -> WLAN.OPEN, WLAN.WEP, WLAN.WPA, WLAN.WPA2)
- key (string)
- channel (int (1-11))
- antenna (int -> WLAN.INTERNAL, WLAN.EXTERNAL)
9 years ago
Daniel Campora
c6926c374d
cc3200: Make I2C and SPI API the same as in stmhal.
9 years ago
Daniel Campora
9a348fc840
cc3200: Add socket.makefile()
9 years ago
Daniel Campora
f22b35e4e5
cc3200: Add socket.sendall() (aliases to send()).
Simplelink's socket send checks for the size of the packet and sends
it in chunks if the size is too large.
9 years ago
Daniel Campora
fa47bebfbc
cc3200: Add struct weak link for ustruct.
9 years ago
Daniel Campora
c030e77861
cc3200: Enable base64 methods from modubinascii.
9 years ago
Daniel Campora
9a65fa304c
cc3200: Add modussl, ssl sockets subclassed from normal sockets.
Stream methods were added to normal sockets as in the unix port.
10 years ago
Daniel Campora
f522849a4d
cc3200: Add socket.timeout and socket.error exceptions.
9 years ago
Daniel Campora
813b581127
cc3200: Add `Pin.name()` method.
10 years ago
Daniel Campora
b630de1103
cc3200: Rename os.mkdisk() to os.mkfs().
10 years ago
Daniel Campora
1811c6bccf
cc3200: Remove Timer.AB constant.
Timer.A and Timer.B can be ORed for this purpose.
10 years ago
Daniel Campora
95cc1ff542
cc3200: Re-name pyb.hard_reset() to pyb.reset().
10 years ago
Daniel Campora
3319780e96
cc3200: Add sendbreak method to the UART.
10 years ago
Daniel Campora
8a6d93aeed
cc3200: Make UART API more similar to stmhal.
10 years ago
Daniel Campora
a3acaa000c
cc3200: Add antenna selection feature to WLAN.
10 years ago
Daniel Campora
cc20482aa9
cc3200: Add method to configure the servers timeout.
With network.server_timeout(secs) the timeout can be changed.
The default value is 300 secs. Minimmum accpeted is 5 secs.
Without params the function returns the current configured timeout.
10 years ago
Daniel Campora
84d11b5e53
cc3200: Add period set method to the Timer class.
10 years ago
Daniel Campora
622f241317
cc3200: Rename pyb.reset() to pyb.hard_reset() and add pyb.unique_id().
10 years ago
Daniel Campora
2abb58d758
cc3200: Rename Pin.get_config() to Pin.info().
10 years ago
Daniel Campora
8096be089e
cc3200: Add make_new method to the WDT.
10 years ago
Daniel Campora
124aa000af
cc3200: Use polarity and phase instead of submode in the SPI construct.
10 years ago
Daniel Campora
2dd47239de
cc3200: Make API more similar to stmhal.
In general the changes are:
1. Peripheral (UART, SPI, ADC, I2C, Timer) IDs start from 1, not zero.
2. Make I2C and SPI require the ID even when there's only one bus.
3. Make I2C and SPI accept 'mode' parameter even though only MASTER
is supported.
10 years ago
Daniel Campora
ed56b0baba
cc3200: Finally unlock the full wake on WLAN feature set.
10 years ago
Daniel Campora
18030bd85d
cc3200: Add own ubinascii module.
The reason to have our owm ubinascii module is so that later we
can add crc32 support using the hardware engine.
10 years ago
Daniel Campora
7506db4ccb
cc3200: Remove uhashlib.hexdigest().
10 years ago
Daniel Campora
e800db562f
cc3200: Add uhashlib. Supports SHA1 and SHA256.
10 years ago
Daniel Campora
56053c37cf
cc3200: Rewrite WLAN.ifconfig(). Add WLAN.info() and WLAN.connections().
10 years ago
Daniel Campora
c27dc38e85
cc3200: Re-name 'intmode' to 'mode' in the callback API.
10 years ago
Daniel Campora
8e611e8414
cc3200: Add Timer module. Supports free running, PWM and capture modes.
10 years ago
Daniel Campora
2b62707051
cc3200: Add os.rename()
10 years ago
Daniel Campora
2bdefea9d6
cc3200: Enable MICROPY_MODULE_WEAK_LINKS.
10 years ago