Skip to content
Snippets Groups Projects
  1. Feb 17, 2016
    • Damien George's avatar
      README.md: Add link to micropython.org. · 53fec1ef
      Damien George authored
      53fec1ef
    • Damien George's avatar
      py/vm: Add macros to hook into various points in the VM. · 40d8430e
      Damien George authored
      These can be used to insert arbitrary checks, polling, etc into the VM.
      They are left general because the VM is a highly tuned loop and it should
      be up to a given port how that port wants to modify the VM internals.
      
      One common use would be to insert a polling check, but only done after
      a certain number of opcodes were executed, so as not to slow down the VM
      too much.  For example:
      
       #define MICROPY_VM_HOOK_COUNT (30)
       #define MICROPY_VM_HOOK_INIT static uint vm_hook_divisor = MICROPY_VM_HOOK_COUNT
       #define MICROPY_VM_HOOK_POLL if (--vm_hook_divisor == 0) { \
           vm_hook_divisor = MICROPY_VM_HOOK_COUNT;
           extern void vm_hook_function(void);
           vm_hook_function();
       }
       #define MICROPY_VM_HOOK_LOOP MICROPY_VM_HOOK_POLL
       #define MICROPY_VM_HOOK_RETURN MICROPY_VM_HOOK_POLL
      40d8430e
    • Alex March's avatar
      py/repl: Check for an identifier char after the keyword. · 69d9e7d2
      Alex March authored
      - As described in the #1850.
      - Add cmdline tests.
      69d9e7d2
  2. Feb 15, 2016
  3. Feb 14, 2016
  4. Feb 13, 2016
  5. Feb 12, 2016
  6. Feb 11, 2016
  7. Feb 10, 2016
Loading