- 25 Sep, 2014 1 commit
-
-
Damien George authored
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.
-
- 13 Sep, 2014 1 commit
-
-
Damien George authored
Tested and working on unix and pyboard.
-
- 11 Sep, 2014 1 commit
-
-
Damien George authored
Also use less stack space when printing single precision float. Addition of asinf and acosf addresses issue #851.
-
- 07 Sep, 2014 1 commit
-
-
Damien George authored
-
- 01 Sep, 2014 1 commit
-
-
Damien George authored
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
-
- 29 Aug, 2014 1 commit
-
-
Damien George authored
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.
-
- 25 Aug, 2014 1 commit
-
-
Dave Hylands authored
Factored irq functions into a separate file.
-
- 24 Aug, 2014 1 commit
-
-
Dave Hylands authored
Added some functions to Pin class to query mode, pull, and af
-
- 16 Aug, 2014 2 commits
-
-
Dave Hylands authored
This basically shrinks the remaining size of flash in the portion that goes after the internal flash drive.
-
Damien George authored
Saves over 35k ROM due to elimination of unused HAL functions. All tests pass. Addresses issue #702.
-
- 08 Aug, 2014 2 commits
-
-
Damien George authored
Trying to move towards consistency, let's use _ exclusively in names of source files (eg .c, .h, .csv).
-
Dave Hylands authored
Converts generted pins to use qstrs instead of string pointers. This patch also adds the following functions: pyb.Pin.names() pyb.Pin.af_list() pyb.Pin.gpio() dir(pyb.Pin.board) and dir(pyb.Pin.cpu) also produce useful results. pyb.Pin now takes kw args. pyb.Pin.__str__ now prints more useful information about the pin configuration. I found the following functions in my boot.py to be useful: ```python def pins(): for pin_name in dir(pyb.Pin.board): pin = pyb.Pin(pin_name) print('{:10s} {:s}'.format(pin_name, str(pin))) def af(): for pin_name in dir(pyb.Pin.board): pin = pyb.Pin(pin_name) print('{:10s} {:s}'.format(pin_name, str(pin.af_list()))) ```
-
- 06 Aug, 2014 1 commit
-
-
Damien George authored
This patch updates ST's HAL to the latest version, V1.3.0, dated 19 June 2014. Files were copied verbatim from the ST package. Only change was to suppress compiler warning of unused variables in 4 places. A lot of the changes from ST are cosmetic: comments and white space. Some small code changes here and there, and addition of F411 header. Main code change is how SysTick interrupt is set: it now has a configuration variable to set the priority, so we no longer need to work around this (originall in system_stm32f4xx.c).
-
- 31 Jul, 2014 1 commit
-
-
Damien George authored
Some important changes to the way the file system is structured on the pyboard: 1. 0: and 1: drive names are now replaced with POSIX inspired directories, namely /flash and /sd. 2. Filesystem now supports the notion of a current working directory. Supports the standard Python way of manipulating it: os.chdir and os.getcwd. 3. On boot up, current directory is /flash if no SD inserted, else /sd if SD inserted. Then runs boot.py and main.py from the current dir. This is the same as the old behaviour, but is much more consistent and flexible (eg you can os.chdir in boot.py to change where main.py is run from). 4. sys.path (for import) is now set to '' (current dir), plus /flash and /flash/lib, and then /sd and /sd/lib if SD inserted. This, along with CWD, means that import now works properly. You can import a file from the current directory. 5. os.listdir is fixed to return just the basename, not the full path. See issue #537 for background and discussion.
-
- 21 Jul, 2014 1 commit
-
-
Dave Hylands authored
-
- 20 Jun, 2014 1 commit
-
-
Windel Bouwman authored
-
- 18 Jun, 2014 2 commits
-
-
Sven Wegener authored
As we are building with -nostdlib gcc features like the stack protector will fail linking, because the failure handlers are in gcc's internal libs. Such features are implicitly disabled during compilation when -nostdlib is used in CFLAGS too. Signed-off-by:
Sven Wegener <sven.wegener@stealer.net>
-
Sven Wegener authored
-nostdlib is the correct option, gcc recognizes the double dash version when in link-only mode, but not when compiling. Signed-off-by:
Sven Wegener <sven.wegener@stealer.net>
-
- 03 Jun, 2014 1 commit
-
-
bvernoux authored
-
- 02 Jun, 2014 1 commit
-
-
bvernoux authored
-
- 03 May, 2014 3 commits
-
-
Craig Barnes authored
-
Damien George authored
Since firmware lives in a build directory which already specifies the board name, no real reason to also have the firmware have the board name.
-
Damien George authored
BUILD is build-$(BOARD) by default.
-
- 01 May, 2014 1 commit
-
-
Andrew Scheller authored
Which allows you to run "make -C stmhal flashboard" from the top-level directory. Also ties in nicely with my configurable BUILD directory from #506
-
- 30 Apr, 2014 1 commit
-
-
Damien George authored
It's not enabled by default because it doesn't fully work. It can connect to an AP, get an IP address and do a host-lookup, but not yet do send or recv on a socket.
-
- 21 Apr, 2014 1 commit
-
-
Damien George authored
It's really a UART because there is no external clock line (and hence no synchronous ability, at least in the implementation of this module). USART should be reserved for a module that has "S"ynchronous capabilities. Also, UART is shorter and easier to type :)
-
- 20 Apr, 2014 1 commit
-
-
Damien George authored
-
- 19 Apr, 2014 1 commit
-
-
Damien George authored
Also some updates to compile with latest changes to core py.
-
- 18 Apr, 2014 1 commit
-
-
Damien George authored
This is an attempt to clean up the Micro Python API on the pyboard. Gpio functionality is now in the Pin object, which seems more natural. Constants for MODE and PULL are now in pyb.Pin. Names of some classes have been adjusted to conform to CamelCase. Other miscellaneous changes and clean up here and there.
-
- 17 Apr, 2014 2 commits
-
-
Damien George authored
Any generated headers go in $(BUILD)/genhdr/, and are #included as 'genhdr/xxx.h'.
-
Damien George authored
-
- 16 Apr, 2014 3 commits
-
-
Damien George authored
Taken straight from musl and newlib. License seems compatible with MIT.
-
Andrew Scheller authored
The autogenerated header files have been moved about, and an extra include dir has been added, which means you can give a custom BUILD=newbuilddir option to make, and everything "just works" Also tidied up the way the different Makefiles build their include- directory flags
-
Andrew Scheller authored
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
-
- 10 Apr, 2014 1 commit
-
-
Damien George authored
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.
-
- 07 Apr, 2014 1 commit
-
-
Andrew Scheller authored
-
- 02 Apr, 2014 1 commit
-
-
Damien George authored
As per issue #257, servo is better on TIM5 because TIM2 is connected to more GPIO.
-
- 30 Mar, 2014 2 commits
-
-
Damien George authored
All board config macros now begin with MICROPY_HW_. Renamed PYBv10 to PYBV10, since macros should be all uppercase. Made SDCARD_DETECT configurable in mpconfigport.h, so that the SD detect pin can be easily configured.
-
Damien George authored
Can now choose at boot up whether the USB device is CDC+MSC or CDC+HID. Choice is made by an option in boot.py, with default being CDC+MSC. HID+MSC is not currently supported, but should be easy to implement. Boot up now has ability to change the reset mode: hold down USR switch while booting and LEDs will count from 1 to 7 to indicate the boot mode. Release USR when correct mode is selected. Current modes are 1 (normal boot), 2 (safe mode), 3 (reset FS mode).
-
- 29 Mar, 2014 1 commit
-
-
Damien George authored
Adds readline_init() to clear readline history on soft reset. Addresses issue #387.
-