| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-04-16 | stmhal: Add pyb.have_cdc function to check if USB CDC device is enabled. | Damien George | |
| 2014-04-16 | stmhal: Fix USB CDC buffer overrun error. | Damien George | |
| Need to wait for the low-level USB driver to send the data over the USB in-endpoint before the buffer can be used again. This patch adds a check for this. | |||
| 2014-04-16 | Merge pull request #498 from lurch/create-headers-from-files | Damien George | |
| Auto-generate the stmhal/pybcdc_inf header file from static files | |||
| 2014-04-16 | stmhal: Fix C bindings of I2C.read/write. | Damien George | |
| 2014-04-16 | Auto-generate the stmhal/pybcdc_inf header file from static files | Andrew Scheller | |
| The USB VID&PID are automatically extracted from usbd_desc_cdc_msc.c and inserted into pybcdc_inf.template, ensuring that the same USB IDs get used everywhere | |||
| 2014-04-16 | stmhal: Add I2C functions for pure master read/write. | Damien George | |
| 2014-04-15 | Merge pull request #496 from dhylands/fix-debug-usart | Damien George | |
| Fix call to enable pyb_usart_global_debug. | |||
| 2014-04-15 | Fix call to enable pyb_usart_global_debug. | Dave Hylands | |
| 2014-04-15 | stmhal: Fix USB MSC so that it unmounts correctly on Mac OS X. | Damien George | |
| Mac OS X sends a SCSI command to remove the medium when it unmounts a drive. If this command is not honoured, then OS X will automatically remount the drive, making it impossible to eject. This patch disables the USB MSC when the right SCSI command is sent. | |||
| 2014-04-15 | stmhal: Add ADC function to read data at a given frequency. | Damien George | |
| Reads ADC values into a bytearray (or similar) at a fixed rate. Needs a better name and improved API. Also fix up DAC dma function (which also needs a better name and API). | |||
| 2014-04-15 | stmhal: Add I2C.scan method, to scan all devices on the bus. | Damien George | |
| Simple way to find the address of an attached I2C device. | |||
| 2014-04-15 | stmhal: Add simple README.txt to freshly-created filesystem. | Damien George | |
| 2014-04-15 | stmhal: Wrap skin-named-usarts in PYBV10 #if. | Damien George | |
| 2014-04-14 | stmhal: Work around crazy bug in USB CDC. | Damien George | |
| Packets of 64 bytes length are not send to the host until the following packet is sent. Fixed by never sending packets of 64 bytes length. | |||
| 2014-04-14 | stmhal: Improved usart module a bit. | Damien George | |
| 2014-04-14 | stmhal: Add pyb.wfi() function (calls __WFI). | Damien George | |
| 2014-04-13 | stmhal: Add stdin/stdout/stderr objects. | Damien George | |
| Available via sys.std{in,out,err}. Basic reading and writing supported. Even sys.stdin.readline! | |||
| 2014-04-13 | stmhal: Improve USB CDC write function (increase timeout). | Damien George | |
| 2014-04-13 | py: Fix up source-line calculation. | Damien George | |
| Should address issue #475. | |||
| 2014-04-13 | stm[hal]: Init mp_sys_path and mp_sys_argv correctly. | Damien George | |
| 2014-04-13 | Merge pull request #476 from pfalcon/static-sys | Damien George | |
| Convert sys module to static allocation | |||
| 2014-04-13 | py: Fix mp_get_buffer, and use it in more places. | Damien George | |
| Must use mp_obj_get_type to get the type of an object. Can't assume mp_obj_t is castable to mp_obj_base_t. | |||
| 2014-04-13 | stmhal: Little hack to dump GC allocation table using pyb.info(). | Damien George | |
| Pass a single parameter (doesn't matter what): pyb.info(1), will dump the GC alloc table. | |||
| 2014-04-13 | stmhal: Update for static mod sys. | Paul Sokolovsky | |
| 2014-04-12 | stmhal: Put a USB structure in ROM; GC doesn't scan the data segment. | Damien George | |
| 2014-04-12 | stmhal: Move fatfs volume/partition lookup table to ROM. | Damien George | |
| 2014-04-12 | stmhal: Move I2C objects to ROM. | Damien George | |
| 2014-04-10 | Merge pull request #458 from lurch/patch-1 | Damien George | |
| Tweak pybcdc.inf to match recent changes to pybcdc.h | |||
| 2014-04-10 | stmhal: Add stm module, which contains some constants for the MCU. | Damien George | |
| Also contains raw memory read/write functions, read8, read16, read32, write8, write16, write32. Can now do: stm.write16(stm.GPIOA + stm.GPIO_BSRRL, 1 << 13) This turns on the red LED. With the new constant folding, the above constants for the GPIO address are actually compiled to constants (and the addition done) at compile time. For viper code and inline assembler, this optimisation will make a big difference. In the inline assembler, using these constants would not be possible without this constant folding. | |||
| 2014-04-10 | Tweak pybcdc.inf to match recent changes to pybcdc.h | Andrew Scheller | |
| 2014-04-09 | stmhal: Make /src/main.py just /main.py; allow SD to be used as root device. | Damien George | |
| 2014-04-09 | stmhal: Update windows driver; \r\n newlines and addition USB id. | Damien George | |
| 2014-04-09 | stmhal: Add windows cdc .inf driver to flash filesystem. | Damien George | |
| 2014-04-09 | stmhal: Improve help() function. | Damien George | |
| 2014-04-09 | stmhal: Add functionality to Servo object. | Damien George | |
| Can now calibrate, set pulse width, angle and speed. | |||
| 2014-04-08 | Fix make-pins.py to support having multiple names for a pin. | Dave Hylands | |
| SW and X17 now both map to PB3 | |||
| 2014-04-08 | stmhal: Make USRSW re-register the EXTI callback each time it's set. | Damien George | |
| 2014-04-08 | stmhal: in EXTI interrupt handler wrap uPy calls in gc_lock and nlr_buf. | Damien George | |
| 2014-04-08 | Add a check for NULL nlr_top in nlr_jump. | Damien George | |
| If no nlr_buf has been pushed, and an nlr_jump is called, then control is transferred to nlr_jump_fail (which should bail out with a fatal error). | |||
| 2014-04-08 | Improve REPL detecting when input needs to continue. | Damien George | |
| Full CPython compatibility with this requires actually parsing the input so far collected, and if it fails parsing due to lack of tokens, then continue collecting input. It's not worth doing it this way. Not having compatibility at this level does not hurt the goals of Micro Python. | |||
| 2014-04-08 | unix, stmhal: Consistently use "FileIO" as class name for file objects. | Paul Sokolovsky | |
| They correspond to io.FileIO in io module hierarchy (with small caveat that io.FileIO is raw file and works with bytes, not strings). | |||
| 2014-04-07 | Replace some Makefile commands with variables in py/mkenv.mk | Andrew Scheller | |
| 2014-04-06 | py: Add option to compiler to specify default code emitter. | Damien George | |
| Also add command line option to unix port to select emitter. | |||
| 2014-04-05 | py: Replace stream_p with *stream_p in mp_obj_type_t. | Damien George | |
| This is to reduce ROM usage. stream_p is used in file and socket types only (at the moment), so seems a good idea to make the protocol functions a pointer instead of the actual structure. It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/. | |||
| 2014-04-05 | py: Make globals and locals proper dictionary objects. | Damien George | |
| Finishes addressing issue #424. In the end this was a very neat refactor that now makes things a lot more consistent across the py code base. It allowed some simplifications in certain places, now that everything is a dict object. Also converted builtins tables to dictionaries. This will be useful when we need to turn builtins into a proper module. | |||
| 2014-04-05 | py: Change module globals from mp_map_t* to mp_obj_dict_t*. | Damien George | |
| Towards addressing issue #424. Had a small increase to ROM usage (order 60 bytes). | |||
| 2014-04-05 | Improve GC finalisation code; add option to disable it. | Damien George | |
| 2014-04-05 | py: Change nlr_jump to nlr_raise, to aid in debugging. | Damien George | |
| This does not affect code size or performance when debugging turned off. To address issue #420. | |||
| 2014-04-05 | stmhal: autoflash now enters serial comms after flashing. | Damien George | |
| 2014-04-05 | stmhal: Add more escape seqs; add debugging output for escape seq. | Damien George | |
