Daniel Campora
78744c4f7a
cc3200: Remove WIPY-SD variant, and make the WiPy the default board.
10 years ago
Daniel Campora
2abb58d758
cc3200: Rename Pin.get_config() to Pin.info().
10 years ago
Daniel Campora
1580e331ef
cc3200: Make small changes in WLAN to improve the API.
10 years ago
Daniel Campora
c754d8011d
cc3200: Simplify SPI polarity and phase checks in constructor.
10 years ago
Daniel Campora
95104b0fbd
cc3200: Add note about old revisions of the CC3200-LAUNCHXL.
10 years ago
Daniel Campora
d07de2d307
cc3200: Move the STDIO UART pin configuration to mpconfigboard.h.
10 years ago
Daniel Campora
9414f92fa9
cc3200: Fix I2C and SPI module references.
10 years ago
Daniel Campora
8096be089e
cc3200: Add make_new method to the WDT.
10 years ago
Daniel Campora
fca3493442
cc3200: Add make_new method to the RTC, like in stmhal.
10 years ago
Daniel Campora
5a0c5f8fea
cc3200: Use the WDT stall feature in debug mode only.
10 years ago
Daniel Campora
ec1f0e7551
cc3200: Use MCU reset instead of SOC reset.
I have seen the CC3200 hanging a couple of times, and according to TI
itself the SOC reset is not reliable, which explains my observations.
10 years ago
Daniel Campora
fabe79f7af
cc3200: Clean up exception handling.
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
6545336206
cc3200: Make the WDT aware of the servers sleep/wake state.
10 years ago
Daniel Campora
5cd34aca27
cc3200: Use the correct ADC channel index when creating the object.
10 years ago
Daniel Campora
95f19b4542
cc3200: Remove duplicated checks for boot.py and main.py existency.
10 years ago
Daniel Campora
90d7c4ef3d
cc3200: Make HeartBeat.disable() thread safe.
10 years ago
Daniel Campora
3cb804de26
cc3200: Remove NIC abstraction layer.
That layer is nice, but the CC3200 doesn't need it and getting rid of
it saves ~200 bytes, which are more than welcome.
10 years ago
Daniel Campora
9f8c5456be
cc3200: Reset the servers and close user sockets on WLAN disconection.
This is needed to avoid half-open connections.
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
5e38b48dd6
cc3200: Fix time.localtime() so that it returns the correct fields.
10 years ago
Daniel Campora
56053c37cf
cc3200: Rewrite WLAN.ifconfig(). Add WLAN.info() and WLAN.connections().
10 years ago
Daniel Campora
514ba15d6a
cc3200: Disable UCTYPES and enable ARRAY_SLICE_ASSIGN.
10 years ago
Daniel Campora
6f848b6dba
cc3200: Set the timer edge count interrupt value in the calbback const.
10 years ago
Daniel Campora
95a4f61499
cc3200: Make sure RTC wake value is >= 1ms.
10 years ago
Daniel Campora
c27dc38e85
cc3200: Re-name 'intmode' to 'mode' in the callback API.
10 years ago
Daniel Campora
cd3f2523f1
cc3200: Disable WLAN.urn() by default.
Can be enabled by defining MICROPY_PORT_WLAN_URN=1 in mpconfigport.h.
10 years ago
Daniel Campora
a379b6ed11
cc3200: Add optional timeout param to WLAN.connect().
10 years ago
Daniel Campora
fb9e4cf463
cc3200: Make sure to handle all pending pin interrupts.
When entering the interrupt handler of a given GPIO port, more than
one pin could have pending interrupts, therefore care must be taken
to service each interrupt one by one before leaving.
10 years ago
Daniel Campora
8e611e8414
cc3200: Add Timer module. Supports free running, PWM and capture modes.
10 years ago
Daniel Campora
9466e154b4
cc3200: Fix power mode param check in the UART callback constructor.
10 years ago
Daniel Campora
2b62707051
cc3200: Add os.rename()
10 years ago
Josef Gajdusek
1db4253886
lib: Move time utility functions to common library.
10 years ago
Damien George
c50772d19f
py: Add mp_obj_get_int_truncated and use it where appropriate.
mp_obj_get_int_truncated will raise a TypeError if the argument is not
an integral type. Use mp_obj_int_get_truncated only when you know the
argument is a small or big int.
10 years ago
Daniel Campora
2bdefea9d6
cc3200: Enable MICROPY_MODULE_WEAK_LINKS.
10 years ago
Daniel Campora
e04aa96b4d
cc3200: Define MICROPY_CPYTHON_COMPAT=0.
This only disables some corner case functionality to keep C Python
compatibility, and saves ~600 bytes.
10 years ago
Josef Gajdusek
04ee5983fe
lib: Move some common mod_network_* functions to lib/netutils.
10 years ago
Daniel Campora
8c8d7f3c60
cc3200: Clean up pyb.Pin
Remove unused and unneeded functions, also create Pin.get_config() that
returns the whole configuration of the pin.
This reduces code size by ~500 bytes.
10 years ago
Daniel Campora
e4c899a08c
cc3200: WLAN.ifconfig returns an attrtuple instead of a dictionary.
10 years ago
Daniel Campora
f54bdecff2
cc3200: Implement Sleep.wake_reason()
10 years ago
Daniel Campora
71d482df47
cc3200: Clear the pending interrupt flag when disabling RTC callbacks.
10 years ago
Daniel Campora
6f218d7472
cc3200: Move wlan_init0() to the boot section.
This one creates a semaphore, therefore it must be executed only
after a hard reset (or when coming out of hibernation).
10 years ago
Daniel Campora
d8713d78f5
cc3200: Correct Sleep module name. Must be 'Sleep', not 'sleep'.
10 years ago
Daniel Campora
e282884e54
cc3200: When requesting safe boot, blink the led 3 times, not 4.
10 years ago
Daniel Campora
dbb4aef5e3
cc3200: Make WLAN.isconnected() also work in AP mode.
While in STA mode isconnected() returns True when connected to an AP
and the IP has been acquired. In AP mode, WLAN.isconnected() returns
True if at least one connected station is present.
10 years ago
Daniel Campora
bf4576dc91
cc3200: Clean-up servers enable/disable algorithm.
10 years ago