aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-05-03stmhal: Allow to configure UART pins completely via mpconfigboard.h.Eero af Heurlin
2015-05-03cc3200: Clean up pyb.PinDaniel Campora
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.
2015-05-03cc3200: WLAN.ifconfig returns an attrtuple instead of a dictionary.Daniel Campora
2015-05-03cc3200: Implement Sleep.wake_reason()Daniel Campora
2015-05-03cc3200: Clear the pending interrupt flag when disabling RTC callbacks.Daniel Campora
2015-05-01unix/modffi.c: get_buffer is allowed to return NULL if len=0.Damien George
This is consistent with the logic in mp_get_buffer, and the code here is an inlined version of that function.
2015-04-30msvc: Allow overriding of build options with custom filestijn
- by default look for a user.props in the msvc directory, which is more convenient than the built-in way of looking for such file in the user's home directory - make git ignore the file
2015-04-29cc3200: Move wlan_init0() to the boot section.Daniel Campora
This one creates a semaphore, therefore it must be executed only after a hard reset (or when coming out of hibernation).
2015-04-29cc3200: Correct Sleep module name. Must be 'Sleep', not 'sleep'.Daniel Campora
2015-04-29cc3200: When requesting safe boot, blink the led 3 times, not 4.Daniel Campora
2015-04-29cc3200: Make WLAN.isconnected() also work in AP mode.Daniel Campora
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.
2015-04-29cc3200: Clean-up servers enable/disable algorithm.Daniel Campora
2015-04-29stmhal: Automatically re-enable IRQs on the USB REPL.Dave Hylands
This allows errors to be seen and prevents hanging the board from doing: pyb.disable_irq()
2015-04-29py/repl.c: Fix shadowing of local variable "i".Damien George
2015-04-29py, readline: Add tab autocompletion for REPL.Damien George
Can complete names in the global namespace, as well as a chain of attributes, eg pyb.Pin.board.<tab> will give a list of all board pins. Costs 700 bytes ROM on Thumb2 arch, but greatly increases usability of REPL prompt.
2015-04-29mp-readline: Save "prompt" string in readline state.Damien George
2015-04-29py: Fix attrtuple array length in print and creation.Damien George
2015-04-28py: Replace py-version.sh with makeversionhdr.py, written in Python.Damien George
Also rename py-version.h to mpversion.h for consistency with mpconfig.h.
2015-04-29cc3200: Make WLAN scan results a list of attrtupple.Daniel Campora
Each result is displayed like this: ssid='MySSID', bssid=b'\xc0J\x00z.\xcc', security=2, channel=None, rssi=-74 The CC3200 doesn't provide channel info, that why is 'None'.
2015-04-29py: In attrtuple use the correct length value and index for 'fields'.Daniel Campora
2015-04-29cc3200: Remove unneeded -lgcc in Makefile.Daniel Campora
2015-04-29cc3200: Implement os.uname() to get details of the OS and hardware.Daniel Campora
2015-04-29cc3200: Move telnet_process_credential with the other private functions.Daniel Campora
Just for consistency.
2015-04-28unix/modffi: Support passing float/double args.Damien George
2015-04-28cc3200: Improve telnet_parse_input() in case of an incomplete option.Daniel Campora
2015-04-28cc3200: Make telnet login procedure work with Tera Term.Matt Anderson
This is actually a workaround Ter Term's issue of not obeying to the telnet options that the server is sending. Therefore, we must buffer chars until either a '\r' or the max length of the username/password is received.
2015-04-28lib/libc: Add memchr. We already have strchr, but memchr is useful too.Daniel Campora
2015-04-28cc3200: Add delays to allow the servers to start and stop properly.Daniel Campora
2015-04-28cc3200: Select NIC when the socket is created.Daniel Campora
This makes sense since only WLAN is supported here.
2015-04-28stmhal: Actually disable unhandled timer interrupts.Dave Hylands
2015-04-25py: Fix handling of negative numbers in struct.pack of q/Q.Damien George
2015-04-26vm: On exiting except block, clear sys.exc_info() value.Paul Sokolovsky
This doesn't handle case fo enclosed except blocks, but once again, sys.exc_info() support is a workaround for software which uses it instead of properly catching exceptions via variable in except clause.
2015-04-25py: Implement power op for long-long implementation of bignum.Damien George
2015-04-25py: Support conversion of bignum to bytes.Damien George
This gets int.to_bytes working for bignum, and also struct.pack with 'q' and 'Q' args on 32-bit machines. Addresses issue #1155.
2015-04-25cc3200: Correct MAKE_SOCKADDR and UNPACK_SOCKADDR byte order.Daniel Campora
2015-04-25modsys: Add basic sys.exc_info() implementation.Paul Sokolovsky
The implementation is very basic and non-compliant and provided solely for CPython compatibility. The function itself is bad Python2 heritage, its usage is discouraged.
2015-04-25objfun: Fix to stackless mode after recent refactor.Paul Sokolovsky
2015-04-24py: Modify bytecode "with" behaviour so it doesn't use any heap.Damien George
Before this patch a "with" block needed to create a bound method object on the heap for the __exit__ call. Now it doesn't because we use load_method instead of load_attr, and save the method+self on the stack.
2015-04-23py: Add optional code to check bytes constructor values are in range.Damien George
Compiled in only if MICROPY_CPYTHON_COMPAT is set. Addresses issue #1093.
2015-04-22stmhal: Reset the timer counter to zero after changing the auto reload.Dave Hylands
Because if the counter is above the new value of the auto-reload register then it may be a long time until the timer wraps around.
2015-04-22tests: Add more tests for viper, including tests for ViperTypeError's.Damien George
2015-04-22py/objint_mpz.c: Make int_from_uint actually return uint.Damien George
2015-04-22py/mpz.c: Fix bug with shl not truncating zero digits correctly.Damien George
2015-04-22py/emitnative.c: Fix stack adjustment when erroring on binary op.Damien George
2015-04-22cc3200: Add WiPy specific information to README.mdDaniel Campora
2015-04-22tests: Add tests for attrtuple, and for more corner cases.Damien George
2015-04-22py: Fix printing of "inf" and "nan" floating point values.Damien George
2015-04-22msvc: Update genhdr script to emit MicroPython version numbersstijn
2015-04-21docs: Document pyb.stop, pyb.standby and pyb.RTC.wakeup.Damien George
2015-04-21py: Clean up some bits and pieces in parser, grammar.Damien George