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.
2014-03-24 11:16:35 -07:00
Damien George
6609d636d0
stmhal: Add comment to DAC driver for function to implement.
2014-03-24 15:17:40 +00:00
Damien George
b13492f8ad
stmhal: Add DAC driver.
2014-03-24 15:15:33 +00:00
Damien George
840efe0661
Update README.
2014-03-24 12:47:37 +00:00
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.
2014-03-24 12:42:06 +00:00
Damien George
f704e7f20e
stmhal: Improve REPL CTRL commands.
2014-03-24 12:23:37 +00:00
Damien George
2f8beb8d88
stmhal: Fix bug with USB CDC transmit buffer wrap around.
2014-03-24 12:23:03 +00:00
Damien George
a82d7ef29d
Merge branch 'master' of github.com:micropython/micropython
2014-03-24 11:49:32 +00:00
Damien George
0e9d96f18f
stmhal: Make Led, Servo and Accel their class, not a function.
2014-03-24 11:48:39 +00:00
Damien George
5fd2ebbbdd
stmhal: Update help function.
2014-03-24 11:27:56 +00:00
Damien George
24ff063e80
py: Remove obsolete declarations; make mp_obj_get_array consistent.
2014-03-24 10:47:13 +00:00
xbe
17a5a83fb4
Implement str.rfind() and add tests for it.
2014-03-24 01:00:00 -07:00
xbe
8562de6c48
py/objstr.c: Remove done TODOs.
2014-03-23 22:56:21 -07:00
Damien George
4750a8398b
Merge pull request #367 from pfalcon/del-name
...
py: Implement support for "except Exception as var" clause.
2014-03-24 01:14:59 +00:00
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."
2014-03-23 22:00:04 +02:00
Paul Sokolovsky
4b2b7ceca7
runtime: RT_BINARY_OP_EXCEPTION_MATCH: don't fall thru in case of wrong types.
2014-03-23 21:45:19 +02:00
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.
2014-03-23 21:41:29 +02:00
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.
2014-03-23 18:54:48 +00:00
Damien George
9050b2ee33
stmhal: Improved interface to accelerometer.
2014-03-23 15:34:54 +00:00
Damien George
6fc5449343
stmhal: Remove servo LED debugging.
2014-03-23 14:52:46 +00:00
Damien George
90834b956d
stm/stmhal: Change gammaf to tgammaf.
2014-03-23 14:00:02 +00:00
Damien George
d67441de18
Merge pull request #365 from xbe/tgamma
...
py/builtinmath.c: use tgamma() instead of gamma().
2014-03-23 13:59:14 +00:00
Damien George
1214028842
Merge pull request #354 from xbe/osx-fix
...
Fix OS X detection.
2014-03-23 13:57:46 +00:00
Damien George
506589a4b7
stmhal: Change flash MSD from fixed to removable drive.
2014-03-23 12:48:58 +00:00
xbe
1ea8fcfae4
py/builtinmath.c: use tgamma() instead of gamma().
...
gamma() is now deprecated.
2014-03-23 02:46:10 -07:00
xbe
606821007a
Fix OS X detection.
...
Switch to checking for the __APPLE__ and __MACH__ macros.
2014-03-22 17:37:20 -07:00
Damien George
5a16658b21
stmhal: Copy changes to math.c from stm port.
2014-03-23 00:34:49 +00:00
Damien George
e43e27cf79
Merge pull request #356 from iabdalkader/d2f
...
Implement __aeabi_f2d and __aeabi_d2f
2014-03-23 00:34:11 +00:00
Damien George
196990b8b1
Merge pull request #364 from pfalcon/mpz-unbreak-int-long
...
objint_mpz: Quick&dirty implementation of bitwise operations.
2014-03-23 00:30:14 +00:00
Damien George
23261f3a52
Merge branch 'master' of github.com:micropython/micropython
2014-03-23 00:26:06 +00:00
Damien George
965e2bafea
stmhal: Improve LED intensity get/set method.
2014-03-23 00:25:09 +00:00
Damien George
badc9d4a95
py: Improve dir(): extract names from type->methods table.
2014-03-23 00:03:11 +00:00
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).
2014-03-23 01:59:11 +02:00
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.
2014-03-23 01:58:07 +02:00
Damien George
5e756c9860
stmhal: Rename servo_TIM2_Handle -> TIM2_Handle.
2014-03-22 23:57:03 +00:00
Damien George
e254809505
Merge branch 'master' of github.com:micropython/micropython
2014-03-22 23:55:11 +00:00
Damien George
908a670dfc
stmhal: Add intensity method for blue LED.
...
As part of this, rejig the way TIM3 is initialised, since it's now
shared by USB CDC and the blue LED PWM.
2014-03-22 23:54:13 +00:00
Damien George
02fa035800
stmhal: Add input() and pyb.input() functions.
2014-03-22 23:53:50 +00:00
Damien George
c91097223d
py: Remove some unnecessary exception objects.
2014-03-22 23:40:02 +00:00
Paul Sokolovsky
8dc768b96f
objgenerator: Add comments for latest mp_obj_gen_instance_t refactors.
2014-03-22 23:42:22 +02:00
Damien George
3ec0a1a32d
py: Add 'object' object.
2014-03-22 21:31:28 +00:00
Damien George
eabdf6718a
py: Add function to convert long int to float.
2014-03-22 20:54:01 +00:00
Damien George
8138205bea
stm/stmhal: Add more math stubs.
2014-03-22 20:44:43 +00:00
Damien George
6280587320
py: Fix types in new math functions.
2014-03-22 20:44:15 +00:00
Damien George
ffa37db5c5
py: Fix int -> machine_uint_t.
2014-03-22 20:43:45 +00:00
Damien George
4ab128bbee
Merge branch 'master' of github.com:micropython/micropython
2014-03-22 20:34:22 +00:00
Damien George
26a4506da7
Merge pull request #360 from rjdowdall/master
...
Fixed some math functions and added more exceptions.
2014-03-22 20:34:43 +00:00
Rachel Dowdall
63c157e534
Merge branch 'master' of https://github.com/rjdowdall/micropython
2014-03-22 20:32:18 +00:00
Rachel Dowdall
2d15deebdc
Fixed floor division on mp ints and small ints. Added a floordivide test case.
2014-03-22 20:29:56 +00:00
Damien George
a6d53188b7
Merge pull request #359 from rjdowdall/master
...
Fixed some math functions and added more exceptions.
2014-03-22 20:26:17 +00:00