Daniel Campora
7027fd5343
cc3200: Make ADC API compatible with the pyboard.
2015-08-10 23:42:05 +02:00
Daniel Campora
7da2fdc3cd
cc3200: On the first boot, always make AP ssid='wipy-wlan'.
...
On the first boot don't add the MAC address, this is to speed up
factory testing.
2015-08-09 22:16:45 +02:00
Daniel Campora
2673374d18
cc3200: Refactor PRCM special user bits implementation.
2015-08-09 22:15:18 +02:00
Daniel Campora
651c870d77
cc3200: Speed up file system checking during start-up.
2015-08-09 22:09:16 +02:00
Daniel Campora
aa3569cd57
cc3200: Add factory smoke test as part of the tools.
2015-08-09 19:22:26 +02:00
Daniel Campora
8cd9fedf58
cc3200: Add script to program the WiPy via UniFlash (windows only...).
2015-08-09 19:22:23 +02:00
Daniel Campora
e23ae63970
cc3200: Fix bug in ffconf regarding '/flash' string length.
...
This bug was introduced when renaming '/sflash' to '/flash'.
2015-08-09 19:22:21 +02:00
Daniel Campora
31f6a6fa70
cc3200: Enable bootloader safe boot on latest firmware.
...
The first safe boot level executes the latest firmware but skips
'main.py' and 'boot.py'.
2015-08-09 19:22:19 +02:00
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.
2015-08-09 19:22:16 +02:00
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)
2015-08-09 19:22:12 +02:00
Daniel Campora
c6926c374d
cc3200: Make I2C and SPI API the same as in stmhal.
2015-08-02 20:22:15 +02:00
Daniel Campora
aa58c7ec74
cc3200: Append last 2 bytes of the MAC address to the default SSID.
2015-07-30 00:43:16 +02:00
Daniel Campora
b56634e691
cc3200: On ssl.read() or ssl.readall() ignore ssl layer closed error.
2015-07-30 00:43:14 +02:00
Daniel Campora
fb3f9cff33
cc3200: Switch to 1 byte hash for QSTRs.
2015-07-30 00:43:13 +02:00
Daniel Campora
9a348fc840
cc3200: Add socket.makefile()
2015-07-30 00:43:10 +02:00
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.
2015-07-30 00:43:08 +02:00
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.
2015-07-17 11:38:01 +02:00
Daniel Campora
a243d6b057
cc3200: Make socket stream methods return POSIX error codes.
2015-07-16 22:39:35 +02:00
Daniel Campora
f738424403
cc3200: Remove superflous assignment since the result is not used.
2015-07-15 14:45:24 +02:00
Daniel Campora
753a8e8bc4
cc3200: Create /flash/cert folder if it doesn't exist.
2015-07-15 14:25:35 +02:00
Daniel Campora
e955089da0
cc3200: Implement new OTA mechanism with 2 firmware update slots.
2015-07-15 14:25:28 +02:00
Daniel Campora
cf814b2d34
cc3200: Refactor and clean-up socket closing code.
2015-07-10 11:37:50 +02:00
Daniel Campora
ecb7f9fe58
cc3200: Set simplelink time and date when enabling WLAN.
2015-07-10 11:37:48 +02:00
Daniel Campora
fa47bebfbc
cc3200: Add struct weak link for ustruct.
2015-07-10 11:37:46 +02:00
Daniel Campora
af33ebb13b
cc3200: Increment telnet Tx retry delay on every try.
2015-07-09 17:30:17 +02:00
Daniel Campora
9220dc466a
cc3200: Correct udelay us to ticks calculation.
2015-07-08 13:13:37 +02:00
Daniel Campora
d18ced9cdd
cc3200: Use alternative HAL_Delay also when interrupts are disabled.
2015-07-08 12:48:35 +02:00
Daniel Campora
a0a3de60be
cc3200: Translate simplelink's socket error numbers to POSIX values.
2015-07-07 16:13:54 +02:00
Daniel Campora
5685b565c3
cc3200: Create /flash/sys and /flash/lib directories while booting.
2015-07-07 16:13:40 +02:00
Daniel Campora
76e52b5daf
cc3200: Make update-wipy.py more robust.
2015-07-07 16:11:48 +02:00
Daniel Campora
fa655ce196
cc3200: Improve interrupt handling and fix bug in HAL_Delay().
2015-07-07 16:11:05 +02:00
Daniel Campora
194c8c761e
cc3200: Increment interrupt stack size from 2K to 3K.
2015-07-07 16:10:10 +02:00
Daniel Campora
aaf7c5b35e
cc3200/README.md: Improve make deploy instructions.
2015-07-04 16:39:05 +02:00
Daniel Campora
c030e77861
cc3200: Enable base64 methods from modubinascii.
2015-07-04 16:33:54 +02:00
Daniel Campora
219a74c014
cc3200/README.md: Add notes about deploying a new software version.
2015-07-04 16:32:49 +02:00
Daniel Campora
31b40eebe8
cc3200: Fix socket recv and recvfrom return value type.
2015-07-02 23:17:22 +02:00
Daniel Campora
5161239c9f
cc3200: time.sleep() now receives seconds, like CPython.
2015-07-02 17:23:22 +02:00
Daniel Campora
9a65fa304c
cc3200: Add modussl, ssl sockets subclassed from normal sockets.
...
Stream methods were added to normal sockets as in the unix port.
2015-07-02 16:30:00 +02:00
Daniel Campora
7c1c9af5d4
cc3200: Code clean-up on pybpin.
2015-07-02 16:29:51 +02:00
Daniel Campora
4f8eeaedef
cc3200: Set WLAN date/time via the rtc.datetime method().
...
WLAN needs time info when validating certificates.
2015-07-02 16:29:43 +02:00
Daniel Campora
d680e28a11
cc3200: Optimize check for WLAN AP mode.
2015-07-02 16:15:59 +02:00
Daniel Campora
7fd538c1b6
cc3200: Raise an exception if trying to scan for networks in AP mode.
2015-07-02 15:03:58 +02:00
Daniel Campora
f522849a4d
cc3200: Add socket.timeout and socket.error exceptions.
2015-07-02 11:53:15 +02:00
Daniel Campora
70fc42cb28
cc3200: Add CA, certificate and key files to the updater list.
2015-06-30 22:11:15 +02:00
Daniel Campora
5ebf39784a
cc3200: Correct socket settimeout time format.
2015-06-29 11:01:11 +02:00
Daniel Campora
4f5b896a0b
cc3200: Adapt update-wipy.py timing to improve stability.
2015-06-28 14:14:24 +02:00
Daniel Campora
813b581127
cc3200: Add Pin.name()
method.
2015-06-28 14:14:22 +02:00
Daniel Campora
778413168b
cc3200: Enable more features to improve compatibility with stmhal.
2015-06-28 14:14:20 +02:00
Daniel Campora
d02f671737
cc3200: Add deploy target and improve robustness of update-wipy.py.
2015-06-24 15:26:05 +02:00
Daniel Campora
e64afde073
cc3200: Create tools folder and add update-wipy.py script.
...
This script is used by Jenkins to update the WiPy with the newly
built firmware before running the tests. It's not placed in the
common tools folder because it is very WiPy specific.
2015-06-24 12:36:38 +02:00