Josef Gajdusek
25a8a42447
esp8266: Add pyb.ADC class
10 years ago
Josef Gajdusek
492fd5cb6b
esp8266: Enable setting CPU frequency to 160MHz
10 years ago
Damien George
a16715ac62
tests: Add special tests to test mp_printf function to improve coverage.
10 years ago
Damien George
9ede4dcfbb
tests: Add some tests for printing floats to improve coverage.
10 years ago
Damien George
79474c6b16
py: Remove unnecessary extra handling of padding of nan/inf.
C's printf will pad nan/inf differently to CPython. Our implementation
originally conformed to C, now it conforms to CPython's way.
Tests for this are also added in this patch.
10 years ago
Damien George
2cae0f6290
py: Reduce size of mp_printf by eliminating unnecessary code.
Saves around 120 bytes on Thumb2 archs.
10 years ago
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
Damien George
6d1ff7e966
tests: Add tests to create valid and invalid UART, I2C, SPI, CAN busses.
10 years ago
Damien George
17d9b5006d
stmhal: Fix off-by-one error when checking for valid I2C and SPI bus.
10 years ago
Damien George
5a57447a8c
ACKNOWLEDGEMENTS: Add 1 backer name to the file.
10 years ago
Dave Hylands
669dbca959
tools: Allow pyboard constructor to take a baudrate parameter.
This allows pyboard.py to be used over a UART interface
rather than just over a USB serial interface.
10 years ago
Damien George
70446f46c2
stmhal: Allow to name SPI busses, and give them names for pyboard.
10 years ago
Damien George
0e6f5e08e1
stmhal: Allow to name I2C busses, and give them names for pyboard.
10 years ago
Damien George
1775b65e07
stmhal: Remove PYBVxx defines and use config vars for UART/CAN names.
Now all stmhal-based boards can name their peripherals (if they want) to
any string.
10 years ago
Damien George
9ae3fc6523
unix: Add option to use uPy readline, and enable by default.
This gets uPy readline working with unix port, with tab completion and
history. GNU readline is still supported, configure using
MICROPY_USE_READLINE variable.
10 years ago
Damien George
4a10214be2
unix: Factor out stdio and ctrl-C code to unix_mphal.c file.
10 years ago
Damien George
2acfb7c002
lib/mp-readline: Export readline_push_history function.
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
Josef Gajdusek
967f3230f5
esp8266: Move initialization to system_init_done_cb
Initializing too early caused some of the API functions (wifi_*) to fail
when called in main.py
10 years ago
Josef Gajdusek
59610c4004
esp8266: Add uos module
Currently implements only .uname()
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
Damien George
1a97f6721f
py: Make makeversionhdr.py extract version from docs/conf.py if no git.
Addresses issue #1285 .
10 years ago
Damien George
3c4b5d4281
stmhal: Implement sys.std{in,out,err}.buffer, for raw byte mode.
It's configurable and only enabled for stmhal port.
10 years ago
Dave Hylands
968b7dd173
stmhal: Detect disk full condition
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
Damien George
0d31bbc7fa
stmhal: Make pendsv variable non-static so gcc-5 doesn't opt it away.
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
7bd273b818
extmod: Actually expose the ubinascii python methods.
10 years ago
Dave Hylands
a3a14b9db7
lib: Fix some issues in timeutils
In particular, dates prior to Mar 1, 2000 are screwed up.
The easiest way to see this is to do:
>>> import time
>>> time.localtime(0)
(2000, 1, 1, 0, 0, 0, 5, 1)
>>> time.localtime(1)
(2000, 1, 2, 233, 197, 197, 6, 2)
With this patch, we instead get:
>>> import time
>>> time.localtime(1)
(2000, 1, 1, 0, 0, 1, 5, 1)
Doh - In C % is NOT a modulo operator, it's a remainder operator.
10 years ago
Daniel Campora
6f1cffeb28
py: Remove hexdigest QSTR since the method has been removed as well.
10 years ago
Daniel Campora
7506db4ccb
cc3200: Remove uhashlib.hexdigest().
10 years ago
Paul Sokolovsky
2fddc68fdf
moduhashlib: Remove not implemented .hexdigest().
Effect can be easily achieved by ubinsacii.hexlify(hash.digest()).
10 years ago
Daniel Campora
0f716aced7
extmod: Expose mod_binascii_hexlify() and mod_binascii_unhexlify().
10 years ago