Skip to content
Snippets Groups Projects
Select Git revision
  • fd6971900cfba4edadf2802c324398335c45a67a
  • master default protected
  • card10_nickname_fix
  • genofire/ble-card10-timeread
  • schneider/fundamental-test
  • schneider/ble-buffers
  • ios-workarounds
  • schneider/maxim-sdk-update
  • rahix/simple_menu
  • ch3/splashscreen
  • koalo/bhi160-works-but-dirty
  • koalo/wip/i2c-for-python
  • renze/safe_mode
  • renze/hatchery_apps
  • koalo/factory-reset
  • msgctl/gfx_rle
  • msgctl/faultscreen
  • msgctl/textbuffer_api
  • schneider/bonding
  • schneider/bootloader-update-9a0d158
  • schneider/bsec
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
30 results

qstrdefs.h

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    mpconfigboard.h NaN GiB
    #define STM32F4DISC
    
    #define MICROPY_HW_BOARD_NAME       "F4DISC"
    #define MICROPY_HW_MCU_NAME         "STM32F407"
    
    #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_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_DAC       (1)
    #define MICROPY_HW_ENABLE_I2C1      (1)
    #define MICROPY_HW_ENABLE_SPI1      (1)
    #define MICROPY_HW_ENABLE_SPI3      (0)
    #define MICROPY_HW_ENABLE_CAN       (1)
    
    // USRSW is pulled low. Pressing the button makes the input go high.
    #define MICROPY_HW_USRSW_PIN        (pin_A0)
    #define MICROPY_HW_USRSW_PULL       (GPIO_NOPULL)
    #define MICROPY_HW_USRSW_EXTI_MODE  (GPIO_MODE_IT_RISING)
    #define MICROPY_HW_USRSW_PRESSED    (1)
    
    // LEDs
    #define MICROPY_HW_LED1             (pin_D14) // red
    #define MICROPY_HW_LED2             (pin_D12) // green
    #define MICROPY_HW_LED3             (pin_D13) // orange
    #define MICROPY_HW_LED4             (pin_D15) // blue
    #define MICROPY_HW_LED_OTYPE        (GPIO_MODE_OUTPUT_PP)
    #define MICROPY_HW_LED_ON(pin)      (pin->gpio->BSRRL = pin->pin_mask)
    #define MICROPY_HW_LED_OFF(pin)     (pin->gpio->BSRRH = pin->pin_mask)
    
    // USB VBUS detect pin
    #define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9)