summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/stm32f4xx_it.c
Commit message (Collapse)AuthorAge
* stmhal: Renamed startup/system/_it.[ch] file to generic names.Dave Hylands2015-07-30
|
* stmhal: Replace #include "stm32f4xx_hal.h" with #include STM32_HAL_H.Dave Hylands2015-07-30
|
* stmhal: Add support for UART5Dave Hylands2015-06-01
| | | | I tested this on my CERB40 board and it seems to be working fine.
* stmhal: Remove some unnecessary declarations, purely for cleanup.Damien George2015-03-20
|
* stmhal: Add rtc.wakeup method, to set wakeup timer.Damien George2015-03-15
| | | | | | This allows to wake from low-power modes at a regular interval. This method is preliminary, pending testing and API overhaul.
* stmhal: Add support for CAN rx callbacks.Henrik Sölver2015-02-15
|
* py, unix, stmhal: Allow to compile with -Wshadow.Damien George2015-01-20
| | | | See issue #699.
* stmhal: Prefix includes with py/; remove need for -I../py.Damien George2015-01-01
|
* stmhal: Overhaul UART class to use read/write, and improve it.v1.3.4Damien George2014-10-21
| | | | | | | | | | | | 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.
* stmhal: Improve efficiency of SysTick IRQ and HAL_Delay.Damien George2014-08-25
| | | | | | | | SysTick IRQ now increases millisecond counter directly (ie without calling HAL_IncTick). Provide our own version of HAL_Delay that does a wfi while waiting. This more than halves power consumption when running a loop containing a pyb.delay call. It used to be like this, but new version of HAL library regressed this feature.
* Add support for pyb.micros() by using the systick timer.Dave Hylands2014-08-25
| | | | | | | | | | I also removed trailing spaces from modpyb.c which affected a couple of lines technically not part of this patch. Tested using: https://github.com/dhylands/upy-examples/blob/master/micros_test.py which eventually fails due to wraparound issues (I could fix the test to compensate but didn't bother)
* stmhal: Include mpconfig.h before all other includes.Paul Sokolovsky2014-06-28
| | | | | | It defines types used by all other headers. Fixes #691.
* Add license header to (almost) all files.Damien George2014-05-03
| | | | | | | Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
* stmhal: Add Timer class: simple TIM control, incl callback on IRQ.Damien George2014-04-21
| | | | | | | Simple but functional timer control. More sophistication will eventually be added, or for now just use direct register access :) Also added pyb.freq() function to get MCU clock frequencies.
* stmhal: Big cleanup; merge gpio into Pin; make names consistent.Damien George2014-04-18
| | | | | | | | 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.
* stmhal: Clean up fatality indications; remove long-obsolete malloc0.c.Damien George2014-04-17
|
* stmhal: Improve flash storage cache management.Damien George2014-04-16
| | | | | | | | | | | | | | | | Internal flash used for the filesystem is now written (from the cache) only after a 5s delay, or when a file is closed, or when the drive is unmounted from the host. This delay means that multiple writes can accumulate in the cache, and leads to less writes to the flash, making it last longer. It's implemented by a high-priority interrupt that takes care of flash erase and write, and flushing the cache. This is still only an interim solution for the flash filesystem. It eventually needs to be replaced with something that uses less RAM for the cache, something that can use more of the flash, and something that does proper wear levelling.
* stmhal: Add timer module; move servo PWM from TIM2 to TIM5.Damien George2014-04-02
| | | | | As per issue #257, servo is better on TIM5 because TIM2 is connected to more GPIO.
* stmhal: Implement selector for USB device mode; improve boot up.Damien George2014-03-30
| | | | | | | | | | | 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).
* stmhal: Rename servo_TIM2_Handle -> TIM2_Handle.Damien George2014-03-22
|
* stmhal: Add intensity method for blue LED.Damien George2014-03-22
| | | | | As part of this, rejig the way TIM3 is initialised, since it's now shared by USB CDC and the blue LED PWM.
* stmhal: Servo driver can move at a given speed.Damien George2014-03-22
|
* stmhal: Get USB CDC REPL working.Damien George2014-03-15
| | | | | | | | New USB HAL is quite a bit improved over previous one. Now has better callbacks and flow control. REPL over USB CDC now works as before, except for soft-reset (since USB driver uses malloc...).
* stmhal - add pin mapping, gpio, exti, usrswDave Hylands2014-03-14
|
* stmhal - add led support. Add netduino_plus_2 supportDave Hylands2014-03-14
| | | | | Tweaked a couple of the USB files to compile if neither dev nor host was defined. Tested on netduiono plus 2 and stm32f4discovery boards
* stmhal: Get USB enumerating a CDC device.Damien George2014-03-14
| | | | Enumerates CDC device over USB, but doesn't transmit/receive yet.
* Cleanup systick for stmhalDave Hylands2014-03-13
|
* REPl working on UART6 with STMHALDave Hylands2014-03-12
|
* stmhal: Get SysTick and HSE working.Damien George2014-03-12