aboutsummaryrefslogtreecommitdiff
path: root/stmhal/qstrdefsport.h
AgeCommit message (Collapse)Author
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2016-04-16py: Add rules for automated extraction of qstrs from sources.Jan Čapek
- add template rule that converts a specified source file into a qstring file - add special rule for generating a central header that contains all extracted/autogenerated strings - defined by QSTR_DEFS_COLLECTED variable. Each platform appends a list of sources that may contain qstrings into a new build variable: SRC_QSTR. Any autogenerated prerequisities are should be appened to SRC_QSTR_AUTO_DEPS variable. - remove most qstrings from py/qstrdefs, keep only qstrings that contain special characters - these cannot be easily detected in the sources without additional annotations - remove most manual qstrdefs, use qstrdef autogen for: py, cc3200, stmhal, teensy, unix, windows, pic16bit: - remove all micropython generic qstrdefs except for the special strings that contain special characters (e.g. /,+,<,> etc.) - remove all port specific qstrdefs except for special strings - append sources for qstr generation in platform makefiles (SRC_QSTR)
2016-02-10stmhal: Expose flash and SD card as proper objects with block protocol.Damien George
You can now create (singleton) objects representing the flash and SD card, using: flash = pyb.Flash() sdcard = pyb.SDCard() These objects provide the block protocol.
2016-01-19stmhal: Add os.statvfsDave Hylands
Implement enough of statvfs to determine the amount of free space on a volume.
2015-12-25extmod/fsusermount: Move module qstrs to global pool from stmhal port.Paul Sokolovsky
2015-12-22stmhal: Add pyb.irq_stats() to get statistics about IRQ calls.Damien George
Adds a lot of code, makes IRQs a bit less efficient, but is very useful for debugging. Usage: pyb.irq_stats() returns a memory view that can be read and written, eg: list(pyb.irq_stats()) pyb.irq_stats()[0] pyb.irq_stats()[0] = 0 The patch provides general IRQ_ENTER() and IRQ_EXIT() macros that can be modified to provide further IRQ statistics if desired.
2015-12-18ports: Rename "machine" module to "umachine".Paul Sokolovsky
To let unix port implement "machine" functionality on Python level, and keep consistent naming in other ports (baremetal ports will use magic module "symlinking" to still load it on "import machine"). Fixes #1701.
2015-11-09stmhal/moduselect: Expose POLLIN/OUT/ERR/HUP constants.Paul Sokolovsky
This makes select.poll() interface fully compatible with CpYthon. Also, make their numeric values of these options compatible with Linux (and by extension, with iBCS2 standard, which jopefully means compatibility with other Unices too).
2015-10-19stmhal: Bring Pin class close to new machine module specification.Damien George
Looks like we can use the same Pin class for legacy pyb module and new machine module.
2015-10-19stmhal: Implement os.dupterm (was pyb.repl_uart).Damien George
pyb.repl_uart still exists but points to os.dupterm.
2015-10-19stmhal: Add sleep_{ms,us} and ticks_{ms,us,cpu,diff} to time module.Damien George
pyb module still has pyb.delay and pyb.udelay, but these now point to time.sleep_ms and time.sleep_us respectively.
2015-10-19stmhal: Early version of machine module for stmhal.Dave Hylands
2015-09-12stmhal: Add "opt" arg to pyb.main, to set mp_optimise_value.Tom Soulanille
Use this to set the global optimisation value when executing the main script (and all scripts it imports).
2015-09-03stmhal: add option to query for the current usb modeTony Abboud
Fetch the current usb mode and return a string representation when pyb.usb_mode() is called with no args. The possible string values are interned as qstr's. None will be returned if an incorrect mode is set.
2015-08-13py: Add stream_tell method, and use for unix and stmhal file tell.blmorris
2015-08-07stmhal: Generate modstm constants per buildDave Hylands
This causes unnecessary constants to no longer be generated. Some constants (like UART_BRR) are different between the F4 and F7
2015-07-14stmhal: Add qstr definition for ifconfig when building for WizNetDave Hylands
2015-05-12stmhal: Add os.rename function.Steve Zatz
2015-05-11sthmal/rtc.c: Add calibration() method to get/set RTC fine-tuning value.blmorris
2015-04-21stmhal: Implement os.uname() to get details of OS and hardware.Damien George
2015-04-18stmhal: Add support for sending and receiving CAN RTR messages.Henrik
2015-03-15stmhal: Add rtc.wakeup method, to set wakeup timer.Damien George
This allows to wake from low-power modes at a regular interval. This method is preliminary, pending testing and API overhaul.
2015-03-09stmhal: Add support for quadrature encoder mode to pyb.TimerChannel.Dave Hylands
2015-03-01stmhal: Add I2S2EXT and I2S3EXT constants to stm module.Damien George
2015-02-15stmhal: Add support for CAN rx callbacks.Henrik Sölver
2015-02-13stmhal: Add uart.sendbreak() method, to send a break condition.Damien George
2015-02-13stmhal: Properly define pyb.usb_mode() semantics.Damien George
2015-02-13stmhal: Add Python-configurable USB HID mode.Damien George
Different HID modes can be configured in Python. You can either use predefined mouse or keyboard, or write your own report descriptor.
2015-02-10stmhal: Add boot.py and main.py to qstr definitions, to save some RAM.Damien George
2014-12-27stmhal: Add ability to mount custom block device.Damien George
2014-12-24stmhal: Enable ubinascii module, weak link to binascii.Damien George
2014-12-04stmhal: Overhaul network drivers; has generic network protocol in C.Damien George
This patch overhauls the network driver interface. A generic NIC must provide a set of C-level functions to implement low-level socket control (eg socket, bind, connect, send, recv). Doing this, the network and usocket modules can then use such a NIC to implement proper socket control at the Python level. This patch also updates the CC3K and WIZNET5K drivers to conform to the new interface, and fixes some bugs in the drivers. They now work reasonably well.
2014-11-29stmhal: Add USB_VCP.setinterrupt method, to disable CTRL-C.Damien George
2014-11-27stmhal: Enable uhashlib module; add heapq, hashlib weak links.Damien George
hashlib test passes on pyboard.
2014-11-26Adding CAN filter managementHenrik Sölver
2014-11-15stmhal: Improve CAN init so that it can take sjw, bs1, bs2 args.Damien George
Also update docs to explain how CAN baudrate is determined.
2014-10-31stmhal: Implement support for RTS/CTS hardware flow control in UART.Damien George
This is experimental support. API is subject to changes. RTS/CTS available on UART(2) and UART(3) only. Use as: uart = pyb.UART(2, 9600, flow=pyb.UART.RTS | pyb.UART.CTS)
2014-10-30stmhal: Added support for extended CAN frames.Henrik Sölver
2014-10-22Add pyb.hard_reset, and make sys.exit() or raise SystemExit do a soft reset.Dave Hylands
2014-10-21stmhal: Overhaul UART class to use read/write, and improve it.Damien George
UART object now uses a stream-like interface: read, readall, readline, readinto, readchar, write, writechar. Timeouts are configured when the UART object is initialised, using timeout and timeout_char keyword args. The object includes optional read buffering, using interrupts. You can set the buffer size dynamically using read_buf_len keyword arg. A size of 0 disables buffering.
2014-10-12moduzlib: Fix fn prototype and some code style; use it in stmhal port.Damien George
2014-10-12stmhal: Enable module weak links.Damien George
os, time, select modules are now prefixed with u, but are still available (via weak links) as their original names. ure and ujson now available as re and json via weak links.
2014-10-10Add support for complimentary channel output and deadtime.Dave Hylands
This patch enables output on the complimentary channels (TIMx_CHyN). For timers 1 and 8, deadtime can also be inserted when the channels transition. For the pyboard, TIM8_CH1/CH1N and TIM8_CH2/CH2N can take advantage of this.
2014-10-05stmhal, timer: Set freq from float; get timer source freq.Damien George
Timers now have the following new features: - can init freq using floating point; eg tim.init(freq=0.1) - tim.source_freq() added to get freq of timer clock source - tim.freq() added to get/set freq - print(tim) now prints freq
2014-10-02stmhal: Add basic CAN bus support.Damien George
2014-09-30stmhal: Add network and usocket module.Damien George
As per issue #876, the network module is used to configure NICs (hardware modules) and configure routing. The usocket module is supposed to implement the normal Python socket module and selects the underlying NIC using routing logic. Right now the routing logic is brain dead: first-initialised, first-used. And the routing table is just a list of registered NICs. cc3k and wiznet5k work, but not at the same time due to C name clashes (to be fixed). Note that the usocket module has alias socket, so that one can import socket and it works as normal. But you can also override socket with your own module, using usocket at the backend.
2014-09-28Added pyb.elapsed_millis and pyb.elapsed_microsDave Hylands
tested using: stmhal: https://github.com/dhylands/upy-examples/blob/master/elapsed.py teensy: https://github.com/dhylands/upy-examples/blob/master/teensy/elapsed.py
2014-09-26stmhal: Initial implementation of cc3k module and driver.Damien George
Pulled in and modified work done by mux/iabdalkader on cc3k driver, from iabdalkader-cc3k-update branch. That branch was terribly messy and had too many conflicts to merge neatly.
2014-09-23Add pulse_width_percent to teensy.Dave Hylands
Fix stmhal and teensy print routines to report actual prescaler an period. Fix teensy build to use soft-float Add USE_ARDUINO_TOOLCHAIN option to teensy build