1. 12 2月, 2019 1 次提交
  2. 28 5月, 2018 1 次提交
  3. 14 5月, 2018 1 次提交
  4. 24 4月, 2018 2 次提交
  5. 28 3月, 2018 1 次提交
    • D
      stm32: Change pin_X and pyb_pin_X identifiers to be pointers to objects. · 2dca693c
      Damien George 提交于
      Rather than pin objects themselves.  The actual object is now pin_X_obj and
      defines are provided so that pin_X is &pin_X_obj.  This makes it so that
      code that uses pin objects doesn't need to know if they are literals or
      objects (that need pointers taken) or something else.  They are just
      entities that can be passed to the map_hal_pin_xxx functions.  This mirrors
      how the core handles constant objects (eg mp_const_none which is
      &mp_const_none_obj) and allows for the possibility of different
      implementations of the pin layer.
      
      For example, prior to this patch there was the following:
      
          extern const pin_obj_t pin_A0;
          #define pyb_pin_X1 pin_A0
          ...
          mp_hal_pin_high(&pin_A0);
      
      and now there is:
      
          extern const pin_obj_t pin_A0_obj;
          #define pin_A0 (&pin_A0_obj)
          #define pyb_pin_X1 pin_A0
          ...
          mp_hal_pin_high(pin_A0);
      
      This patch should have minimal effect on board configuration files.  The
      only change that may be needed is if a board has .c files that configure
      pins.
      2dca693c
  6. 27 3月, 2018 1 次提交
  7. 17 3月, 2018 1 次提交
  8. 07 3月, 2018 1 次提交
  9. 22 12月, 2017 1 次提交
    • D
      stm32: Allow to build a board without any hardware I2C ports defined. · c73360bf
      Damien George 提交于
      This patch adds in internal config value MICROPY_HW_ENABLE_HW_I2C that is
      automatically configured, and enabled only if one or more hardware I2C
      ports are defined in the mpconfigboard.h file.  If none are defined then
      the pyb.I2C class is excluded from the build, along with all supporting
      code.  The machine.I2C class will still be available for software I2C.
      
      Disabling all hardware I2C on an F4 board saves around 10,000 bytes of code
      and 200 bytes of RAM.
      c73360bf
  10. 06 9月, 2017 1 次提交
  11. 15 6月, 2017 1 次提交
  12. 25 11月, 2016 1 次提交
  13. 23 11月, 2016 1 次提交
    • D
      stmhal: Add beginnings of port-specific machine.I2C implementation. · 30537489
      Damien George 提交于
      This allows one to construct an I2C object using ids that are specific
      to the stmhal port, eg machine.I2C('X').  Right now the implementation
      of I2C uses software I2C but the idea is to just change the C-level I2C
      protocol functions to hardware implementations later on.
      30537489