Daniel Campora
aba75e1233
cc3200: New SPI API.
9 years ago
Daniel Campora
624cdeacc4
docs/wipy: Add pins to the I2C constructor.
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
f352fe82a5
tests/wipy: Add I2C tests.
9 years ago
Daniel Campora
d936317143
cc3200: New I2C API.
9 years ago
Daniel Campora
359b4e9ed9
cc3200: Refactor pin af assigment functions.
9 years ago
Daniel Campora
4d7fa05b43
cc3200: Improve Pin and UART implementation.
Deassign pins af before assigning. Make uart.any() return the
correct value everytime, this requires interrupts to be always
enabled.
9 years ago
Daniel Campora
4054c4eadd
cc3200: Remove I2C inline documentation (sphinx is on the lead).
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
598aad2140
cc3200: Fix bug in pybsleep remove.
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
e9fa7625f4
cc3200: Correct WLAN constructor argument checking.
9 years ago
Daniel Campora
f837d166e5
cc3200: Fix typo in modpyb.
9 years ago
Daniel Campora
641a3d39e1
cc3200: Make sure to update sleep objects when registered.
9 years ago
Daniel Campora
6ff2d54347
cc3200: Small renaming in wdt functions for the sake of consistency.
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
4c5bfe2d10
cc3200: Server side SSL socket requires both certfile and keyfile.
9 years ago
Daniel Campora
7027fd5343
cc3200: Make ADC API compatible with the pyboard.
9 years ago
Daniel Campora
2673374d18
cc3200: Refactor PRCM special user bits implementation.
9 years ago
Daniel Campora
e54a4f1f48
cc3200: Improve support for WEP security.
Key is always entered as a string, but if security is WEP, the key
is converted automatically to hex before connecting or configuring
the device as an AP.
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
aa58c7ec74
cc3200: Append last 2 bytes of the MAC address to the default SSID.
9 years ago
Daniel Campora
b56634e691
cc3200: On ssl.read() or ssl.readall() ignore ssl layer closed error.
9 years ago
Daniel Campora
9a348fc840
cc3200: Add socket.makefile()
9 years ago
Daniel Campora
007878781c
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.
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
a243d6b057
cc3200: Make socket stream methods return POSIX error codes.
9 years ago
Daniel Campora
cf814b2d34
cc3200: Refactor and clean-up socket closing code.
9 years ago
Daniel Campora
ecb7f9fe58
cc3200: Set simplelink time and date when enabling WLAN.
9 years ago
Daniel Campora
a0a3de60be
cc3200: Translate simplelink's socket error numbers to POSIX values.
9 years ago
Daniel Campora
fa655ce196
cc3200: Improve interrupt handling and fix bug in HAL_Delay().
9 years ago
Daniel Campora
c030e77861
cc3200: Enable base64 methods from modubinascii.
9 years ago
Daniel Campora
31b40eebe8
cc3200: Fix socket recv and recvfrom return value type.
9 years ago
Daniel Campora
5161239c9f
cc3200: time.sleep() now receives seconds, like CPython.
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
7c1c9af5d4
cc3200: Code clean-up on pybpin.
9 years ago
Daniel Campora
4f8eeaedef
cc3200: Set WLAN date/time via the rtc.datetime method().
WLAN needs time info when validating certificates.
10 years ago
Daniel Campora
d680e28a11
cc3200: Optimize check for WLAN AP mode.
9 years ago
Daniel Campora
7fd538c1b6
cc3200: Raise an exception if trying to scan for networks in AP mode.
9 years ago
Daniel Campora
f522849a4d
cc3200: Add socket.timeout and socket.error exceptions.
9 years ago