| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
This follows the pattern of other peripherals (I2C, SPI) to specify the
pins using pin objects instead of a pair of GPIO port and pin number. It
makes it easier to customise the UART pins for a particular board.
|
|
|
|
|
|
|
| |
changes include:
* use single GPIO.BSRR instead of BSRRH and BSRRL
* change HSE_STARTUP_TIMEOUT to 100 ms
* define LSE_STARTUP_TIMEOUT to 5 s
|
|
|
|
|
| |
Following best-practice use of the const feature, to make it compatible
with Python.
|
|
|
|
|
| |
As part of this patch the MICROPY_HW_LED_OTYPE setting is removed because
it is now unused (all boards anyway had this as OUTPUT_PP).
|
| |
|
|
|
|
|
| |
To allow to reuse stmhal/diskio for ports which don't have flash but have
other storage devices.
|
|
|
|
|
|
| |
Previously, SPI was configured by a board defining MICROPY_HW_ENABLE_SPIx
to 0 or 1. Now, the board should define MICROPY_HW_SPIx_SCK, MISO, MOSI
and NSS. This makes it the same as how I2C is configured.
|
|
|
|
|
| |
This needs to land afte #1407 lands, since #1407 is where
the CMSIS_MCU was defined.
|
|
|
|
|
| |
This causes unnecessary constants to no longer be generated.
Some constants (like UART_BRR) are different between the F4 and F7
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Addresses issue #987.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Thanks to David Siorpaes.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
Written in Python, not currently working. See issue #725.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
The HAL handles for the I2C/SPI objects are rather large, so we don't
want to unnecessarily include them.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Tweaked a couple of the USB files to compile if neither dev nor host was defined.
Tested on netduiono plus 2 and stm32f4discovery boards
|
|
This compiles and links, but hasn't been tested on a board
yet and even if it was run, it doesn't currently do anything.
|