aboutsummaryrefslogtreecommitdiff
path: root/stmhal/boards
AgeCommit message (Collapse)Author
2015-06-01stmhal: Add support for UART5Dave Hylands
I tested this on my CERB40 board and it seems to be working fine.
2015-05-27stmhal: Allow to name SPI busses, and give them names for pyboard.Damien George
2015-05-27stmhal: Allow to name I2C busses, and give them names for pyboard.Damien George
2015-05-27stmhal: Remove PYBVxx defines and use config vars for UART/CAN names.Damien George
Now all stmhal-based boards can name their peripherals (if they want) to any string.
2015-05-03stmhal: Allow to configure UART pins completely via mpconfigboard.h.Eero af Heurlin
2015-04-18stmhal: Provide ADC capabilities for F401 and F411 MCUs.Damien George
Simply needed to define which pins have which ADC channel on them.
2015-04-18stmhal: Add support for STM32F411 MCU.Damien George
2015-04-18stmhal: Add support for Espruino Pico board.Damien George
To build: make BOARD=ESPRUINO_PICO To deploy: short the BOOT0/BTN contact on the back of the board (eg by drawing over it with a graphite pencil), then hold down BTN while inserting the board into the USB port. The board should then enter DFU mode, and the firmware can be downloaded using: make BOARD=ESPRUINO_PICO deploy
2015-04-18stmhal: Add stm32f401.ld for linking F401 targets.Damien George
2015-04-18stmhal: Make ld and af files configurable within Makefile.Damien George
Each board now needs an mpconfigboard.mk file which defines AF_FILE and LD_FILE. Also moved stm32f405.ld to boards/ directory to keep things organised.
2015-04-18stmhal: Add stm32f401_af.csv, for AF definitions of F401 MCUs.Damien George
2015-04-18stmhal: Rename stm32f4xx_af.csv to stm32f405_af.csv.Damien George
Since this file is only valid for F405 MCUs, not generic F4xx.
2015-04-18stmhal: Make I2C busses and their pins configurable in mpconfigboard.h.Damien George
2015-04-18stmhal: For pins, define macros mapping board names to cpu names.Damien George
2015-04-18stmhal: Make a HW config option for LED4 being controlled by PWM.Damien George
2015-04-18stmhal: Make HSE PLL parameters configurable per board.Damien George
2015-03-22stmhal: Expose all PYBv1.0 pins, include SD and USB pins.Damien George
To have proper low power mode, need to configure all unused pins in input mode, so need to have them available.
2015-03-16stmhal: Add config option to use LSE/LSI for RTC.Damien George
Most boards (except the pyboard) don't have a 32kHz crystal so they should use the LSI for the RTC.
2015-01-21stmhal: Add support for FEZ Cerb40 II board from ghielectronics.com.Dave Hylands
2015-01-12stmhal: Add MICROPY_HW_USB_OTG_ID_PIN config, set for relevant boards.Damien George
This config option is for the USB OTG pin, pin A10. This is used on some boards but not others. Eg PYBv3 uses PA10 for LED(2), so it shouldn't be used for OTG ID (actually PA10 is multiplexed on this board, but defaults to LED(2)). Partially addresses issue #1059.
2015-01-07stmhal: Add MICROPY_HW_USB_VBUS_DETECT_PIN option, for boards without itDamien George
Since all currently supported boards use pin A9 for this function, the value of the macro MICROPY_HW_USB_VBUS_DETECT_PIN is not actually used, just the fact that it is defined. Addresses issue #1048.
2015-01-01stmhal: Prefix includes with py/; remove need for -I../py.Damien George
2014-11-25stmhal: Enable DAC on STM32F4DISC.Damien George
Addresses issue #987.
2014-10-23stmhal: Fix pin af definition: TIM2_CH1_ETR -> TIM2_CH1/TIM2_ETR.Damien George
2014-10-22stmhal: Add MMA_INT/PB2 to available pins on PYBV10.Damien George
This allows you to register ExtInt on the MMA interrupt pin.
2014-10-22Fixed TIM2_CH1 definition.Dave Hylands
TIM2_CH1_ETR is really bundling 2 functions to the same pin: TIM2_CH1 (where its used as a channel) TIM2_ETR (where iss used as an external trigger). I fixed most of these a while back, but it looks like I missed this one.
2014-10-05stmhal: Add config option to disable/enable CAN driver.Damien George
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-11Add LIS3DSH accelometer support to staccel.pyHirotaka Kawata
2014-08-26stmhal, STM32F4DISC: Small changes to ST accel driver.Damien George
2014-08-26stmhal, staccel.py: Style cleanup.Damien George
2014-08-26Added LIS302DL ID checkDavid Siorpaes
2014-08-24Added python script to map AF to a pin nameDave Hylands
Added some functions to Pin class to query mode, pull, and af
2014-08-10stmhal: Working STM32F4DISC accelerometer, via Python script.Damien George
Thanks to David Siorpaes.
2014-08-10stmhal: Add sys.platform string to PYBv1.0 (it's "pyboard").Damien George
2014-08-08stmhal/teensy: Use _ instead of - in source file names.Damien George
Trying to move towards consistency, let's use _ exclusively in names of source files (eg .c, .h, .csv).
2014-08-07Add support for selecting pin alternate functions from python.Dave Hylands
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()))) ```
2014-08-06stmhal: Update STM32Cube F4 HAL driver to V1.3.0.Damien George
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).
2014-08-02stmhal: Add preliminary driver for ST32F4DISC accelerometer.Damien George
Written in Python, not currently working. See issue #725.
2014-06-28stmhal: Include mpconfig.h before all other includes.Paul Sokolovsky
It defines types used by all other headers. Fixes #691.
2014-06-27Change MCU name config micromux
2014-06-19Add MICROPY_HW_MICRO_NAME to boards configmux
2014-06-03Merge branch 'master' of https://github.com/micropython/micropythonbvernoux
2014-06-02Add missing commas to stm32f4xx-af.csvDave Hylands
2014-06-02micropython port for HydraBusbvernoux
2014-05-30Add a comma to make the .csv look proper in githubDave Hylands
2014-05-03stmhal: Wrap CC3000 driver in MICROPY_HW_ENABLE_CC3K.Damien George
This renames MICROPY_HW_HAS_WLAN to MICROPY_HW_ENABLE_CC3K (since it's a driver, not a board feature) and wraps all CC3000 code in this #if. It's disabled for all boards.
2014-05-02Fix PB0 ADC typo.Dave Hylands
This also adds a bunch of slashes separating pin that have multiple functions.
2014-05-02Add shell script to automatically build stmhal/ for all pyboards.Damien George
2014-04-30stmhal: Reinstate CC3000 driver from old stm/ port.Damien George
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.