Skip to content
Snippets Groups Projects
Select Git revision
  • bfbc42153a25c16b6bd11c6fcaed128796c8738f
  • master default
  • test
  • rahix/hw-lock-new-mutex
  • dx/somewhat-more-dynamic-config
  • schneider/sdk-0.2.1-7
  • schneider/bsec
  • dx/meh-bdf-to-stm
  • dx/flatten-config-module
  • genofire/ble-follow-py
  • schneider/ble-stability
  • schneider/ble-stability-new-phy
  • add_menu_vibration
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • schneider/fundamental-test
  • schneider/ble-buffers
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
37 results

interrupt.h

  • Forked from card10 / firmware
    Source project has a limited visibility.
    mpconfigboard.h 1.06 KiB
    #define STM32F4DISC
    
    #define MICROPY_HW_BOARD_NAME       "F4DISC"
    
    #define MICROPY_HW_HAS_SWITCH       (1)
    #define MICROPY_HW_HAS_SDCARD       (0)
    #define MICROPY_HW_HAS_MMA7660      (0)
    #define MICROPY_HW_HAS_LIS3DSH      (1)
    #define MICROPY_HW_HAS_LCD          (0)
    #define MICROPY_HW_HAS_WLAN         (0)
    #define MICROPY_HW_ENABLE_RNG       (1)
    #define MICROPY_HW_ENABLE_RTC       (1)
    #define MICROPY_HW_ENABLE_TIMER     (1)
    #define MICROPY_HW_ENABLE_SERVO     (0)
    #define MICROPY_HW_ENABLE_AUDIO     (0)
    
    // USRSW is pulled low. Pressing the button makes the input go high.
    #define USRSW_PIN           (pin_A0)
    #define USRSW_PUPD          (GPIO_PuPd_NOPULL)
    #define USRSW_EXTI_EDGE     (EXTI_Trigger_Rising)
    #define USRSW_PRESSED       (1)
    
    /* LED */
    #define PYB_LED1        (pin_D14) // red
    #define PYB_LED2        (pin_D12) // green
    #define PYB_LED3        (pin_D13) // orange
    #define PYB_LED4        (pin_D15) // blue
    
    #define PYB_OTYPE       (GPIO_OType_PP)
    
    #define PYB_LED_ON(pin)  (pin->gpio->BSRRL = pin->pin_mask)
    #define PYB_LED_OFF(pin) (pin->gpio->BSRRH = pin->pin_mask)