mux
8c10240722
Add ADC support for internal TEMP/VBAT/VREF
* Add ADC support for reading internal temperature sensor.
* Add ADC support for reading internal VREF/VBAT monitor.
11 years ago
mux
3591285091
Implement initial ADC support
* Add simple ADC driver, with support for ADC1 and all channels.
* Export MicroPython ADC object with read_channel function.
* Add stm32f4xx_adc.c and adc.c to Makefile.
11 years ago
mux
b4e374f138
Add missing ADC driver
* Add missing ADC driver from STM32F4xx_StdPeriph_Lib_V1.3.0
11 years ago
xyb
82e61bdc24
support int(str, basbase)
11 years ago
xyb
c178ea471e
Implemented int(str) in UNIX
11 years ago
John R. Lenton
93451002f0
Merge remote-tracking branch 'upstream/master' into builtins
Conflicts:
py/builtin.c
py/builtin.h
py/runtime.c
11 years ago
John R. Lenton
f5a0a7d2b3
Merge remote-tracking branch 'upstream/master' into containment
11 years ago
John R. Lenton
10d2f72860
Merge remote-tracking branch 'upstream/master'
11 years ago
Paul Sokolovsky
5225450b9f
Add generic impl of stream .readall() method. Use one for unix io.FileIO.
11 years ago
Paul Sokolovsky
5d2499c638
Add "buffer management" and "shrink" API calls to vstr.
vstr is initially intended to deal with arbitrary-length strings. By
providing a bit lower-level API calls, it will be also useful to deal
with arbitrary-length I/O buffers (the difference from strings is that
buffers are filled from "outside", via I/O).
Another issue, especially aggravated by I/O buffer use, is alloc size
vs actual size length. If allocated 1Mb for buffer, but actually
read 1 byte, we don't want to keep rest of 1Mb be locked by this I/O
result, but rather return it to heap ASAP ("shrink" buffer before passing
it to qstr_from_str_take()).
11 years ago
Paul Sokolovsky
ca318bba0d
mp_obj_equal(): Compare small and long ints properly.
By dispatching to long int methods.
11 years ago
Paul Sokolovsky
76a90f2f60
Move mp_obj_int_t definition to objint.h, to reuse in long int impls.
11 years ago
John R. Lenton
88cb1e60e0
Made sorted() raise an exception instead of aborting when given no arguments; moved around some things in objfun.c as a consequence
11 years ago
John R. Lenton
2ded68db77
Cleaned up sorted() as per Damien's suggestions.
11 years ago
Damien George
f62d33aa1d
Consolidate rt_make_function_[0123] to rt_make_function_n.
11 years ago
Damien George
f88a72a88e
Merge pull request #168 from dhylands/add-strstr
Added public domain implementations of strchr and strstr.
11 years ago
Damien George
2300537c79
Cleanup built-ins, and fix some compiler warnings/errors.
11 years ago
Damien George
3f5e1b3e2f
Merge pull request #172 from dhylands/init-kw
Initialize is_kw for dynamically allocated mp_obj_fun_native_t ojects.
11 years ago
Dave Hylands
44332ec9ea
Initialize is_kw for dynamically allocated mp_obj_fun_native_t ojects.
This should fix issue #171
11 years ago
John R. Lenton
9549919349
made DEBUG control CFLAGS in Makefiles oter than stm as well.
11 years ago
Mark Schafer
a23a24f89c
logo gradients in master SVG, png
Also new vector_log png with alpha
11 years ago
Dave Hylands
c8effff937
Added public domain implementations of strchr and strstr.
11 years ago
John R. Lenton
5c76839559
sorted
11 years ago
John R. Lenton
07205ec323
added zip()
11 years ago
Metallicow
7ab9c21945
Add combined image to GitHub front page README.md
11 years ago
John R. Lenton
189c8e1cc4
Fixed the merge so it worked and compiled and stuff
11 years ago
John R. Lenton
13e64f0660
Merge remote-tracking branch 'upstream/master' into containment
11 years ago
Damien George
34f813ee29
Merge pull request #162 from chipaca/str_find
Implement a basic str.find; fixes #67
11 years ago
Damien George
ec3e14e2af
Merge pull request #160 from pfalcon/elaborate-int
Elaborate small-int/long-int
11 years ago
Damien George
45eb6eaa54
Merge pull request #159 from chipaca/set_feats
Set features. As per #143 .
11 years ago
Damien George
ed3a32b117
Merge pull request #157 from dhylands/printf-float
Added a hacky implementation for %g
11 years ago
Damien George
328708eb25
stm: Re-instate C debugging USART port (disabled by default).
See pyb_usart_global_debug variable.
Also did some work on USB OTG, but nothing working yet.
11 years ago
John R. Lenton
7244a14439
oops, nasty off-by-one in set_copy
11 years ago
John R. Lenton
be790f94d5
Implemented set binary ops.
11 years ago
John R. Lenton
e820491f7a
Implement a basic str.find; fixes #67
11 years ago
Paul Sokolovsky
48b3572f7e
Add framework to support alternative implementations of long int Python type.
11 years ago
Paul Sokolovsky
80f60e1aee
Parse long Python ints properly.
Long int is something which doesn't fit into SMALL_INT partion of
machine_int_t. But it's also something which doesn't fit into
machine_int_t in the first place.
11 years ago
Paul Sokolovsky
757ac81a69
Add proper checks for fits-in-small-int. Make it reusable.
We likely should make mp_obj_new_int() inline, and rely on its
encapsulated check rather than inline checks everywhere explicitly.
Also, parser for big small int values is still broken.
11 years ago
Paul Sokolovsky
c260bc58e6
Add WORD_MSBIT_HIGH define - machine_int_t with the highest bit set.
11 years ago
Paul Sokolovsky
fc5aac82cb
Move BITS_PER_BYTE, BITS_PER_WORD to mpconfig.h for reuse.
11 years ago
John R. Lenton
0de386bffe
Implemented set.update
11 years ago
John R. Lenton
ae00d334c6
Implemented set.remove
11 years ago
Dave Hylands
b5f458278c
Added a hacky implementation for %g
11 years ago
John R. Lenton
4a08067c0c
Implemented set.isdisjoint
11 years ago
John R. Lenton
f1ae6b48fb
Implemented set.intersection and set.intersection_update
11 years ago
John R. Lenton
032129f3b5
Implemented set.difference and set.difference_update
11 years ago
John R. Lenton
2a24172cdc
Implemented set.discard
11 years ago
John R. Lenton
3b0bd87906
Implemented set.copy
11 years ago
John R. Lenton
1d7fb2f21b
Implemented set.clear
11 years ago
Damien George
fd17921b75
Merge pull request #140 from Metallicow/art-branch
Small graphic - Useful for WebBanners, etc...
11 years ago