You are reading a single comment by @tve and its replies. Click here to read the full conversation.
  • Yeah, this doesn't look right:

    >(new Pin(B10)).getInfo()
    ={
      "port": "B",
      "num": 10,
      "functions": {
        "I2C2": {
          "type": "SCL",
          "af": 4 },
        "TIM2": {
          "type": "CH3",
          "af": 1 },
        "SPI2": {
          "type": "SCK",
          "af": 5 }
       }
     }
    >(new Pin(B11)).getInfo()
    ={
      "port": "B",
      "num": 12,
      "functions": {  }
     }
    >(new Pin(B12)).getInfo()
    ={
      "port": "B",
      "num": 13,
      "functions": {
        "SPI2": {
          "type": "SCK",
          "af": 5 },
        "TIM1": {
          "type": "CH1N",
          "af": 1 }
       }
     }
    

    The jspininfo.c file look correct, though:

    /* PB10 */ { JSH_PORTB, JSH_PIN0+10, JSH_ANALOG_NONE, { JSH_AF4|JSH_I2C2|JSH_I2C_SCL/* 1 Uses */, JSH_AF1|JSH_TIMER2|JSH_TIMER_CH3/* 2 Uses */, JSH_AF5|JSH_SPI2|JSH_SPI_SCK/* 2 Uses */, 0 } },
    /* PB12 */ { JSH_PORTB, JSH_PIN0+12, JSH_ANALOG_NONE, { 0, 0, 0, 0 } },
    /* PB13 */ { JSH_PORTB, JSH_PIN0+13, JSH_ANALOG_NONE, { JSH_AF5|JSH_SPI2|JSH_SPI_SCK/* 2 Uses */, JSH_AF1|JSH_TIMER1|JSH_TIMER_CH1|JSH_TIMER_NEGATED/* 3 Uses */, 0, 0 } },
    /* PB14 */ { JSH_PORTB, JSH_PIN0+14, JSH_ANALOG_NONE, { JSH_AF5|JSH_SPI2|JSH_SPI_MISO/* 1 Uses */, JSH_AF1|JSH_TIMER1|JSH_TIMER_CH2|JSH_TIMER_NEGATED/* 3 Uses */, 0, 0 } },
    
About

Avatar for tve @tve started