Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | all: Make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros. | Damien George | 2017-08-21 |
| | |||
* | zephyr/modzephyr: Add shell_net_iface() function. | Paul Sokolovsky | 2017-08-20 |
| | | | | | Calls out to Zephyr's shell, submodule "net", command "iface", and shows network interface information (if CONFIG_NET_SHELL is enabled). | ||
* | zephyr/prj_96b_carbon.conf: Re-enable networking on Carbon. | Paul Sokolovsky | 2017-08-19 |
| | | | | | | | | The original issue leading to crash on startup if no default network interface was presented, was resolved some time ago. Note that this enables generic networking subsystem, not networking on Carbon. | ||
* | zephyr/modusocket: Update struct sockaddr family field name. | Paul Sokolovsky | 2017-08-19 |
| | | | | Was changed to "sa_family" for POSIX compatibility. | ||
* | zephyr/prj_base.conf: Enable CONFIG_INIT_STACKS. | Paul Sokolovsky | 2017-08-16 |
| | | | | As required for zephyr.stack_analyze(). | ||
* | zephyr/modzephyr: Add current_tid() and stacks_analyze() functions. | Paul Sokolovsky | 2017-08-16 |
| | | | | | | current_tid() returns current thread ID. stacks_analyze() calls k_call_stacks_analyze() which, with CONFIG_INIT_STACKS enabled, will print stack usage for some well-known threads in the system. | ||
* | all: Make use of $(TOP) variable in Makefiles, instead of "..". | Damien George | 2017-08-11 |
| | | | | | $(TOP) is defined in py/mkenv.mk and should be used to refer to the top level of this repository. | ||
* | zephyr/modusocket: Fully switch to native Zephyr sockets. | Paul Sokolovsky | 2017-08-09 |
| | |||
* | zephyr/modusocket: recv: Switch to native sockets. | Paul Sokolovsky | 2017-08-09 |
| | |||
* | zephyr/modusocket: send: Switch to native sockets. | Paul Sokolovsky | 2017-08-09 |
| | |||
* | zephyr/modusocket: bind, connect, listen, accept: Swtich to native sockets. | Paul Sokolovsky | 2017-08-08 |
| | |||
* | zephyr/modusocket: socket, close: Switch to native Zephyr socket calls. | Paul Sokolovsky | 2017-08-07 |
| | |||
* | zephyr/modusocket: Allow to use socketized net_context in upstream. | Paul Sokolovsky | 2017-08-07 |
| | | | | Accesses recv_q, accept_q directly in net_context. | ||
* | zephyr/Makefile: Explicitly define default target as "all". | Paul Sokolovsky | 2017-08-03 |
| | | | | | For some reason, with the latest Zephyr master, running just "make" led to executing Zephyr's "qemu" target. | ||
* | all: Use the name MicroPython consistently in comments | Alexander Steffen | 2017-07-31 |
| | | | | | There were several different spellings of MicroPython present in comments, when there should be only one. | ||
* | all: Unify header guard usage. | Alexander Steffen | 2017-07-18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code conventions suggest using header guards, but do not define how those should look like and instead point to existing files. However, not all existing files follow the same scheme, sometimes omitting header guards altogether, sometimes using non-standard names, making it easy to accidentally pick a "wrong" example. This commit ensures that all header files of the MicroPython project (that were not simply copied from somewhere else) follow the same pattern, that was already present in the majority of files, especially in the py folder. The rules are as follows. Naming convention: * start with the words MICROPY_INCLUDED * contain the full path to the file * replace special characters with _ In addition, there are no empty lines before #ifndef, between #ifndef and one empty line before #endif. #endif is followed by a comment containing the name of the guard macro. py/grammar.h cannot use header guards by design, since it has to be included multiple times in a single C file. Several other files also do not need header guards as they are only used internally and guaranteed to be included only once: * MICROPY_MPHALPORT_H * mpconfigboard.h * mpconfigport.h * mpthreadport.h * pin_defs_*.h * qstrdefs*.h | ||
* | zephyr: Remove long-obsolete machine_ptr_t typedef's. | Damien George | 2017-07-17 |
| | |||
* | zephyr/Makefile: Revert prj.conf construction rule to the previous state. | Paul Sokolovsky | 2017-07-09 |
| | | | | | CONF_FILE can be overriden, e.g. for minimal build, and we don't construct such overriden conf file like we do for prj_merged.conf. | ||
* | zephyr/Makefile: Rework dependencies and "clean" target. | Paul Sokolovsky | 2017-07-08 |
| | | | | | | Got tired of running rm -rf manually. Make should clean, and should clean fast. Also, fix always-running config-related commands (by having per-board merged configs). | ||
* | zephyr/machine_pin: Use native Zephyr types for Zephyr API calls. | Paul Sokolovsky | 2017-06-10 |
| | | | | | In 1.8, Zephyr made a controversial change of dumping C99 stdint types and switching to its own types. | ||
* | zephyr: Define MICROPY_PY_SYS_PLATFORM (to "zephyr"). | Paul Sokolovsky | 2017-06-08 |
| | |||
* | zephyr/modusocket: getaddrinfo: Fix mp_obj_len() usage. | Paul Sokolovsky | 2017-06-03 |
| | | | | | Return value is mp_obj_t, so needs to be accessed using MP_OBJ_SMALL_INT_VALUE(). | ||
* | various: Spelling fixes | Ville Skyttä | 2017-05-29 |
| | |||
* | zephyr/modusocket: Use DEBUG_PRINT macro name as other modules do. | Paul Sokolovsky | 2017-05-26 |
| | | | | Indeed, just "DEBUG" is too generic. | ||
* | zephyr/modusocket: getaddrinfo: Raise OSError on resolution timeout, etc. | Paul Sokolovsky | 2017-05-24 |
| | |||
* | esp8266, stmhal, zephyr: Rename machine.Pin high/low methods to on/off. | Paul Sokolovsky | 2017-05-21 |
| | | | | | | | | | For consistent Pin/Signal class hierarchy. With it, Signal is a proper (while still ducktyped) subclass of a Pin, and any (direct) usage of Pin can be replace with Signal. As stmhal's class is reused both as machine.Pin and legacy pyb.Pin, high/low methods actually retained there. | ||
* | zephyr/modusocket: getaddrinfo: Use RAISE_ERRNO for proper error decoding. | Paul Sokolovsky | 2017-05-17 |
| | |||
* | zephyr/main: Check default netif before applying operations to it. | Paul Sokolovsky | 2017-05-17 |
| | | | | | If no network driver is enabled (e.g., it doesn't exist for a particular board), it will be NULL. | ||
* | zephyr/modusocket: Get rid of cur_pkt object member. | Paul Sokolovsky | 2017-05-16 |
| | | | | Instead, just peek a packet at the head of the queue and work with it. | ||
* | zephyr/modusocket: First step to switch to alternative FIFO processing. | Paul Sokolovsky | 2017-05-16 |
| | | | | | Here we wait for non-empty FIFO, and then directly access/drop its head element. | ||
* | zephyr/modusocket: Implement getaddrinfo(). | Paul Sokolovsky | 2017-05-13 |
| | |||
* | zephyr/modusocket: If there're no packets in recv_q, cancel waiter. | Paul Sokolovsky | 2017-05-13 |
| | | | | | This solves a case when socker_read() has blocked on fifo, and then peer closed event arrives. | ||
* | zephyr/modusocket: Switch to net_pkt_append() returning length. | Paul Sokolovsky | 2017-05-13 |
| | | | | Requires patch in review. | ||
* | zephyr/modusocket: Update for net_pkt refactor. | Paul Sokolovsky | 2017-05-13 |
| | |||
* | zephyr/modusocket: Wrap pkt_get_info() call. | Paul Sokolovsky | 2017-05-13 |
| | | | | | The most important info it returns are numbers of free buffers in different pools (rx/tx packet headers, data fragments). | ||
* | zephyr/README: Update to require Zephyr 1.8. | Paul Sokolovsky | 2017-05-12 |
| | | | | | | | | There're a lot of changes and fixes in 1.8 regarding IP stack, incompatible with previous Zephyr versions, so supporting them doesn't make sense. This is the last commit which should build with Zephyr 1.7. | ||
* | zephyr/prj_qemu_x86.conf: Bump RAM size to 320K. | Paul Sokolovsky | 2017-05-12 |
| | |||
* | zephyr/modusocket: Add SOL_SOCKET and SO_REUSEADDR constants. | Paul Sokolovsky | 2017-05-12 |
| | |||
* | zephyr/modusocket: Add dummy setsockopt() implementation. | Paul Sokolovsky | 2017-05-12 |
| | |||
* | zephyr/main: Remove superfluous include. | Paul Sokolovsky | 2017-05-02 |
| | |||
* | zephyr/mpconfigport.h: Enable line number information for scripts. | Paul Sokolovsky | 2017-05-02 |
| | |||
* | zephyr/Makefile: Add debugserver Zephyr target. | Paul Sokolovsky | 2017-05-02 |
| | |||
* | zephyr/modusocket: Add dummy makefile() implementation. | Paul Sokolovsky | 2017-04-27 |
| | |||
* | zephyr/modusocket: sock_read: Check socket status only at the start of packet. | Paul Sokolovsky | 2017-04-26 |
| | | | | | Otherwise, if we already have a packet in progress, finish it first, before check "peer closed" status. | ||
* | zephyr/modusocket: Add read/readline/readinto stream methods. | Paul Sokolovsky | 2017-04-26 |
| | |||
* | zephyr/modusocket: Refactor recv() into stream read() method. | Paul Sokolovsky | 2017-04-26 |
| | |||
* | zephyr/modusocket: Enable stream write() method. | Paul Sokolovsky | 2017-04-26 |
| | |||
* | zephyr/modusocket: Refactor send() into stream write() method. | Paul Sokolovsky | 2017-04-26 |
| | |||
* | zephyr: Add 96b_carbon configuration. | Kushal Das | 2017-04-26 |
| | | | | | As there's no networking support in mainline yet, networking is disabled, because otherwise the board hangs on startup. | ||
* | zephyr/main: Configure IPv4 netmask and gateway to allow Internet access. | Paul Sokolovsky | 2017-04-22 |
| |