summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/pybcdc.inf
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-10 22:46:40 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-10 22:46:40 +0100
commit3f4898456bb1a451e5e6d45cb62c9c718f2b8a76 (patch)
tree2b1208d70e5bf052988e8e550ac0fff594e4654d /stmhal/pybcdc.inf
parent57e99ebc868aeaae3b0f826beef7f82c01e56405 (diff)
downloadmicropython-3f4898456bb1a451e5e6d45cb62c9c718f2b8a76.tar.gz
micropython-3f4898456bb1a451e5e6d45cb62c9c718f2b8a76.zip
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.
Diffstat (limited to 'stmhal/pybcdc.inf')
0 files changed, 0 insertions, 0 deletions