pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


Quantron Motorbr├╝cken-GPIOs, aus jncg/ptxdist/local_src/ecu01-motor-ctl/main.c
Posted by Anonymous on Fri 15th Mar 2019 09:54
raw | new post

  1. static struct motor_ctl_dev motor_ctl_devices[] = {
  2.    {
  3.       .motorIndex     = 0,
  4.       .gpio_clockwise = IMX_GPIO_NR(2,21),//CLKO
  5.       .gpio_counter_clockwise = IMX_GPIO_NR(1,8), //CSI_MCLK
  6.       .gpio_enable_A  = IMX_GPIO_NR(1,10), //CSI_HSYNC
  7.       .gpio_enable_B  = IMX_GPIO_NR(2,22), //CSPI1_RDY
  8.       .PHY_PWM_ADR    = MX25_PWM1_BASE_ADDR,
  9.       .PHY_PWM_LEN    = 0x4000,
  10.       .pwm_prescaler  = PWM_DEFAULT_PRESCALER,
  11.       .pwm_period     = PWM_DEFAULT_PERIOD,
  12.       .pwm_sample     = PWM_DEFAULT_SAMPLE,
  13.       .CLK_PROVIDER = "mxc_pwm.0",
  14.       .CLK_PARENT   = "ipg",
  15.       .clk          = NULL
  16.    },
  17.    {
  18.       .motorIndex     = 1,
  19.       .gpio_clockwise = IMX_GPIO_NR(1,9),
  20.       .gpio_counter_clockwise = IMX_GPIO_NR(1,7),
  21.       .gpio_enable_A  = IMX_GPIO_NR(4,29), //UART2_CTS
  22.       .gpio_enable_B  = IMX_GPIO_NR(3,15), //EXT_ARMCLK
  23.       .PHY_PWM_ADR    = MX25_PWM2_BASE_ADDR,
  24.       .PHY_PWM_LEN    = 0x4000,
  25.       .pwm_prescaler  = PWM_DEFAULT_PRESCALER,
  26.       .pwm_period     = PWM_DEFAULT_PERIOD,
  27.       .pwm_sample     = PWM_DEFAULT_SAMPLE,
  28.       .CLK_PROVIDER = "mxc_pwm.1",
  29.       .CLK_PARENT   = "ipg",
  30.       .clk          = NULL
  31.    }
  32. };

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at