Damien George
bad2df3e95
stmhal, modwiznet5k: Add very minimal documentation.
2014-09-01 22:58:22 +01:00
Damien George
bcf041f1a3
stmhal: Add wiznet5k module, to control WIZnet ethernet adaptor.
...
Allows to create socket objects that support TCP and UDP in server and
client mode. Interface is very close to standard Python socket class,
except bind and accept do not work the same (due to hardware not
supporting them in the usual way).
Not compiled by default. To compile this module, use:
make MICROPY_PY_WIZNET5K=1
2014-09-01 22:52:38 +01:00
Damien George
cdd40f149a
drivers, wiznet5k: Make DNS service use HAL sys tick.
2014-09-01 22:52:38 +01:00
Damien George
9091e84454
drivers, wiznet5k: Add HAL_Delay(1) to "infinite" loops.
2014-09-01 22:52:38 +01:00
Damien George
7da9145e47
drivers, wiznet5k: Properly fix ARP bug with W5200 chipset.
2014-09-01 22:52:37 +01:00
Damien George
0c0550bff0
drivers, wiznet5k: Add W5200 support.
2014-09-01 22:52:37 +01:00
Damien George
79d17e3e7d
drivers, wiznet5k: Change SPI interface to read/write multiple bytes.
2014-09-01 22:52:37 +01:00
Damien George
812cf62f43
drivers, wiznet5k: Fix IP addr verification.
2014-09-01 22:52:37 +01:00
Damien George
71224cb8db
drivers: Initial import of WIZnet5x000 driver.
2014-09-01 22:52:37 +01:00
Damien George
e07737d202
Added 'drivers' directory, intended to hold code for specific hardware.
2014-09-01 22:52:37 +01:00
Damien George
90fad65d2f
Merge pull request #841 from dhylands/teensy-README
...
Update teensy README.md file
2014-08-31 00:36:54 +01:00
Dave Hylands
76dd7e180f
Update teensy README.md file
...
Thanks to Artur Wroblewski for some suggested changes.
I also added the TIPs section at the end while I was updating.
2014-08-30 12:21:08 -07:00
Damien George
ca6d75f16d
py: Small simplifications in tuple and list accessors.
2014-08-30 15:17:47 +01:00
Damien George
4abff7500f
py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h.
...
Part of code cleanup, working towards resolving issue #50 .
2014-08-30 14:59:21 +01:00
Damien George
4d91723587
py: Remove use of int type in obj.h.
...
Part of code cleanup, working towards resolving issue #50 .
2014-08-30 14:28:06 +01:00
Damien George
d182b98a37
py: Change all uint to mp_uint_t in obj.h.
...
Part of code cleanup, working towards resolving issue #50 .
2014-08-30 14:19:41 +01:00
Damien George
9c4cbe2ac0
py: Make tuple and list use mp_int_t/mp_uint_t.
...
Part of code cleanup, to resolve issue #50 .
2014-08-30 14:04:14 +01:00
Damien George
93965e726f
py: Make map, dict, set use mp_int_t/mp_uint_t exclusively.
...
Part of code cleanup, towards resolving issue #50 .
2014-08-30 13:23:35 +01:00
Damien George
1c70cbf151
py: Save about 200 bytes of ROM by using smaller type for static table.
2014-08-30 00:38:16 +01:00
Damien George
ecc88e949c
Change some parts of the core API to use mp_uint_t instead of uint/int.
...
Addressing issue #50 , still some way to go yet.
2014-08-30 00:35:11 +01:00
Damien George
4d3fc46326
lib, libm: Add back dummy definition of tanf.
2014-08-29 23:24:00 +01:00
Damien George
8707ea3421
lib: Add lib and libm, moving current files from stmhal.
...
Top-level lib directory is for standard C libraries that we want to
provide our own versions of (for efficiency and stand-alone reasons).
It currently has libm in it for math functions.
Also add atanf and atan2f, which addresses issue #837 .
2014-08-29 22:42:26 +01:00
Damien George
17ae2395c2
py: Use memmove instead of memcpy when appropriate.
...
Found this bug by running unix/ tests with DEBUG=1 enabled when
compiling.
2014-08-29 21:07:54 +01:00
Damien George
02d95d7ce9
py: Fix 2 bugs in native emitter: jump_or_pop and stack settling.
...
Addresses issue #838 .
2014-08-29 20:05:32 +01:00
Damien George
eb4e18f057
py: Add compiler optimisation for conditions in parenthesis.
...
Optimises:
if () -> if False
if (x,...) -> if True
if (a and b) -> if a and b
2014-08-29 20:04:01 +01:00