Damien George
38f0c607b0
stmhal: Change Usart creation function to class make_new.
11 years ago
Damien George
3021632501
stmhal: Shuffle around some init functions in main().
11 years ago
Damien George
6cfda3084d
stmhal: Add I2C support; change accel driver to use new I2C.
11 years ago
Damien George
681d0a9ca7
Merge pull request #370 from xbe/str-rfind
py/objstr.c: Implement str.rfind() and add tests for it, refactor find_subbytes().
11 years ago
Damien George
6e628c49ca
py: Replace naive and teribble hash function with djb2.
11 years ago
Damien George
ffb5cfc8d8
py: Removed some unnecessary exception objects.
They still exist in commented-out form in objexcept.c if they are ever
needed.
11 years ago
Damien George
caac542b23
Proper support for registering builtin modules in ROM.
Comes with some refactoring of code and renaming of files. All modules
are now named mod*.[ch].
11 years ago
Damien George
1dfde891e3
Merge pull request #373 from iabdalkader/module_register
Add mp_obj_module_register
11 years ago
Damien George
24d527bf22
Merge pull request #375 from dhylands/stmhal-adc
Some changes that I forgot to push with my last pull request
11 years ago
Dave Hylands
f0729b19ad
Fix netduino to build
Fix adc to work with resolution changes.
11 years ago
Paul Sokolovsky
9512e9e817
objexcept: Add "args" exception attribute, as well as StopIteration.value.
11 years ago
Paul Sokolovsky
7f8b31345b
rt_load_method(): Add missing qstr_str() when getting type name.
11 years ago
mux
89d45248ee
Add mp_obj_module_register
* Add function to load static modules.
* Use module_register to pyb module.
11 years ago
Damien George
da5e269e51
stmhal: Make pyb.ADC the ADC class (not a function).
11 years ago
Dave Hylands
1403298a65
stmhal - fixed up adc stuff
Added support for the ADC channels and mappings to make_pins.py
I'm not sure if the hal properly deals with the channel 16/18 differences
between the 40x and 42x. It seems to deal with it partially. This particular
aspect will need testing on a 42x or 43x.
11 years ago
Damien George
6609d636d0
stmhal: Add comment to DAC driver for function to implement.
11 years ago
Damien George
b13492f8ad
stmhal: Add DAC driver.
11 years ago
Damien George
840efe0661
Update README.
11 years ago
Damien George
41ea651839
Add tools/pyboard.py, a simple module to communicate with the pyboard.
Using pyboard.py you can use Python running on your PC to execute
commands on the connected pyboard. See examples in that file.
11 years ago
Damien George
f704e7f20e
stmhal: Improve REPL CTRL commands.
11 years ago
Damien George
2f8beb8d88
stmhal: Fix bug with USB CDC transmit buffer wrap around.
11 years ago
Damien George
a82d7ef29d
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
0e9d96f18f
stmhal: Make Led, Servo and Accel their class, not a function.
11 years ago
Damien George
5fd2ebbbdd
stmhal: Update help function.
11 years ago
Damien George
24ff063e80
py: Remove obsolete declarations; make mp_obj_get_array consistent.
11 years ago
xbe
17a5a83fb4
Implement str.rfind() and add tests for it.
11 years ago
xbe
8562de6c48
py/objstr.c: Remove done TODOs.
11 years ago
Damien George
4750a8398b
Merge pull request #367 from pfalcon/del-name
py: Implement support for "except Exception as var" clause.
11 years ago
Paul Sokolovsky
f909034400
py: Implement support for "except Exception as var" clause.
For this, needed to implement DELETE_NAME bytecode (because var bound
in except clause is automatically deleted at its end).
http://docs.python.org/3/reference/compound_stmts.html#except :
"When an exception has been assigned using as target, it is cleared at
the end of the except clause."
11 years ago
Paul Sokolovsky
4b2b7ceca7
runtime: RT_BINARY_OP_EXCEPTION_MATCH: don't fall thru in case of wrong types.
11 years ago
Paul Sokolovsky
1673420053
vm: Abstract working with tagged pointers in VM using macro accessors.
Based on issues raised during recent review and inconsistency of different
implementations.
11 years ago
Damien George
f357a19202
stmhal: Fix issues with USB CDC init and receive.
Late USB enumeration could clear settings after they had been set.
Now fixed by not clearing some settings on init.
RX was blocking if received characters were not being processed, so
CTRL-C would not be picked up. Now "fixed" by not blocking, but
instead discarding incoming characters if they overflow the buffer.
11 years ago
Damien George
9050b2ee33
stmhal: Improved interface to accelerometer.
11 years ago
Damien George
6fc5449343
stmhal: Remove servo LED debugging.
11 years ago
Damien George
90834b956d
stm/stmhal: Change gammaf to tgammaf.
11 years ago
Damien George
d67441de18
Merge pull request #365 from xbe/tgamma
py/builtinmath.c: use tgamma() instead of gamma().
11 years ago
Damien George
1214028842
Merge pull request #354 from xbe/osx-fix
Fix OS X detection.
11 years ago
Damien George
506589a4b7
stmhal: Change flash MSD from fixed to removable drive.
11 years ago
xbe
1ea8fcfae4
py/builtinmath.c: use tgamma() instead of gamma().
gamma() is now deprecated.
11 years ago
xbe
606821007a
Fix OS X detection.
Switch to checking for the __APPLE__ and __MACH__ macros.
11 years ago
Damien George
5a16658b21
stmhal: Copy changes to math.c from stm port.
11 years ago
Damien George
e43e27cf79
Merge pull request #356 from iabdalkader/d2f
Implement __aeabi_f2d and __aeabi_d2f
11 years ago
Damien George
196990b8b1
Merge pull request #364 from pfalcon/mpz-unbreak-int-long
objint_mpz: Quick&dirty implementation of bitwise operations.
11 years ago
Damien George
23261f3a52
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
965e2bafea
stmhal: Improve LED intensity get/set method.
11 years ago
Damien George
badc9d4a95
py: Improve dir(): extract names from type->methods table.
11 years ago
Paul Sokolovsky
57207b8818
objint_mpz: Quick&dirty implementation of bitwise operations.
Made solely to unbreak int-long.py test which in turn uncovered thinko
with implementation of inplace ops. On mpz level, bitwise ops implemented
only for same-sign numbers, and are not efficient (unconditional calling of
mpn_cmp() is apparently superfluous).
11 years ago
Paul Sokolovsky
fd232c3ef7
run-tests: Dump output of failing tests to files again.
This was a long-standing regression from converting script from sh to python.
11 years ago
Damien George
5e756c9860
stmhal: Rename servo_TIM2_Handle -> TIM2_Handle.
11 years ago
Damien George
e254809505
Merge branch 'master' of github.com:micropython/micropython
11 years ago