- 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.
-
- 25 Mar, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].
-
- 24 Mar, 2014 3 commits
-
-
Dave Hylands authored
Added support for the ADC channels and mappings to make_pins.py I'm not sure if the hal properly deals with the channel 16/18 differences between the 40x and 42x. It seems to deal with it partially. This particular aspect will need testing on a 42x or 43x.
-
Damien George authored
-
Damien George authored
-
- 22 Mar, 2014 6 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
- 21 Mar, 2014 1 commit
-
-
Damien George authored
This gives a functioning, independent MSC device.
-
- 20 Mar, 2014 1 commit
-
-
Damien George authored
-
- 19 Mar, 2014 1 commit
-
-
Damien George authored
-
- 17 Mar, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Just low-level read/write support. No filesystem yet.
-
- 15 Mar, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
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...).
-
Dave Hylands authored
-
- 14 Mar, 2014 1 commit
-
-
Damien George authored
Enumerates CDC device over USB, but doesn't transmit/receive yet.
-
- 13 Mar, 2014 2 commits
-
-
Dave Hylands authored
-
Dave Hylands authored
-
- 12 Mar, 2014 2 commits
-
-
Damien George authored
-
Dave Hylands authored
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.
-
- 08 Mar, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
mp_module_obj_t can now be put in ROM. Configuration of float type is now similar to longint: can now choose none, float or double as the implementation. math module has basic math functions. For STM port, these are not yet implemented (they are just stub functions).
-
- 26 Feb, 2014 1 commit
-
-
Dave Hylands authored
-
- 23 Feb, 2014 2 commits
-
-
Dave Hylands authored
Revamp usrsw to use new exti code. Add user switch callback function.
-
Damien George authored
Stack layout is different when -g used, so need to handle the pendsv jump differently. Addresses Issue #315.
-
- 22 Feb, 2014 1 commit
-
-
mux authored
-
- 18 Feb, 2014 1 commit
-
-
Dave Hylands authored
This commit also introduces board directories and moves board specific config into the appropriate board directory. boards/stm32f4xx-af.csv was extracted from the STM32F4xx datasheet and hand-tweaked. make-pins.py takes boards/stm32f4xx-af.csv, boards/stm32f4xx-prefix.c, and boards/BOARD-NAME/pins.csv as input and generates the file build/pins_BOARD_NAME.c The generated pin file for PYBOARD4 looks like this: https://gist.github.com/dhylands/9063231 The generated pins file includes all of the supported alternate functions, and includes upsupported alternate functions as comments. See the commnet block at the top of stm/pin_map.c for details on how to use the pin mapper. I also went ahead and modified stm/gpio.c to use the pin mapper.
-
- 17 Feb, 2014 1 commit
-
-
Damien George authored
To follow up pull request #309.
-
- 16 Feb, 2014 1 commit
-
-
Damien George authored
GPIO functions are crude, and need to be replaced with better ones!
-