-
- Downloads
stmhal: Add stm module, which contains some constants for the MCU.
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.
Showing
- stmhal/Makefile 2 additions, 1 deletionstmhal/Makefile
- stmhal/modstm.c 120 additions, 0 deletionsstmhal/modstm.c
- stmhal/modstm.h 1 addition, 0 deletionsstmhal/modstm.h
- stmhal/mpconfigport.h 7 additions, 0 deletionsstmhal/mpconfigport.h
- stmhal/qstrdefsport.h 16 additions, 0 deletionsstmhal/qstrdefsport.h
stmhal/modstm.c
0 → 100644
stmhal/modstm.h
0 → 100644
Please register or sign in to comment