aboutsummaryrefslogtreecommitdiff
path: root/stmhal/Makefile
AgeCommit message (Collapse)Author
2014-04-10stmhal: Add stm module, which contains some constants for the MCU.Damien George
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.
2014-04-07Replace some Makefile commands with variables in py/mkenv.mkAndrew Scheller
2014-04-02stmhal: Add timer module; move servo PWM from TIM2 to TIM5.Damien George
As per issue #257, servo is better on TIM5 because TIM2 is connected to more GPIO.
2014-03-30stmhal: Unify naming of HW config; make SD detect configurable.Damien George
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.
2014-03-30stmhal: Implement selector for USB device mode; improve boot up.Damien George
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).
2014-03-29stmhal: Factor out stdio and readline to separate files.Damien George
Adds readline_init() to clear readline history on soft reset. Addresses issue #387.
2014-03-25stmhal: Add I2C support; change accel driver to use new I2C.Damien George
2014-03-25Proper support for registering builtin modules in ROM.Damien George
Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].
2014-03-24stmhal - fixed up adc stuffDave Hylands
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.
2014-03-24stmhal: Add DAC driver.Damien George
2014-03-24stmhal: Update help function.Damien George
2014-03-22stmhal: Add input() and pyb.input() functions.Damien George
2014-03-22stmhal: Add servo driver.Damien George
2014-03-22stmhal: Add time module with sleep function.Damien George
2014-03-22stmhal: Add os module with a few basic functions.Damien George
2014-03-22stmhal: Add PYBv10 config; add RNG support.Damien George
2014-03-22stmhal: USB CDC and MSC device work together.Damien George
2014-03-21stmhal: Add support for USB MSC device.Damien George
This gives a functioning, independent MSC device.
2014-03-20stmhal: Add accelerometer driver; fix bug with LFN.Damien George
2014-03-19stmhal: Add lcd.c to Makefile, and init LCD in main.Damien George
2014-03-17stmhal: Add fatfs support, working with flash and SD card.Damien George
2014-03-17stmhal: Add flash write support and flash storage driver.Damien George
2014-03-17stmhal: Add SD card support.Damien George
Just low-level read/write support. No filesystem yet.
2014-03-15stmhal: Get RTC working.Damien George
2014-03-15stmhal: Get USB CDC REPL working.Damien George
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...).
2014-03-14stmhal - add pin mapping, gpio, exti, usrswDave Hylands
2014-03-14stmhal: Get USB enumerating a CDC device.Damien George
Enumerates CDC device over USB, but doesn't transmit/receive yet.
2014-03-13Cleanup systick for stmhalDave Hylands
2014-03-12REPl working on UART6 with STMHALDave Hylands
2014-03-12stmhal: Get SysTick and HSE working.Damien George
2014-03-11Initial checkin with STM HALDave Hylands
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.