Ignore:
Timestamp:
Dec 6, 2024, 11:33:01 AM (6 weeks ago)
Author:
Zed
Message:

LED control description were added.

Location:
ctrl/firmware/Main/CubeMX
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ctrl/firmware/Main/CubeMX/Core/Inc/main.h

    r48 r50  
    5858
    5959/* Private defines -----------------------------------------------------------*/
     60#define TX1_LED_Pin GPIO_PIN_6
     61#define TX1_LED_GPIO_Port GPIOE
    6062#define SPI4_NSS_DISPLAY_Pin GPIO_PIN_11
    6163#define SPI4_NSS_DISPLAY_GPIO_Port GPIOE
     
    6870#define RST_DISPLAY_Pin GPIO_PIN_15
    6971#define RST_DISPLAY_GPIO_Port GPIOE
     72#define OUTPUT_ON_LED_Pin GPIO_PIN_7
     73#define OUTPUT_ON_LED_GPIO_Port GPIOD
     74#define ERROR_LED_Pin GPIO_PIN_9
     75#define ERROR_LED_GPIO_Port GPIOG
     76#define CHARGE_LED_Pin GPIO_PIN_10
     77#define CHARGE_LED_GPIO_Port GPIOG
     78#define RX2_LED_Pin GPIO_PIN_11
     79#define RX2_LED_GPIO_Port GPIOG
     80#define RX1_LED_Pin GPIO_PIN_12
     81#define RX1_LED_GPIO_Port GPIOG
     82#define TX2_LED_Pin GPIO_PIN_13
     83#define TX2_LED_GPIO_Port GPIOG
    7084
    7185/* USER CODE BEGIN Private defines */
  • ctrl/firmware/Main/CubeMX/Core/Src/gpio.c

    r48 r50  
    5858
    5959  /*Configure GPIO pin Output Level */
    60   HAL_GPIO_WritePin(GPIOE, PWM_DISPLAY_LIGHT_Pin|RST_DISPLAY_Pin, GPIO_PIN_RESET);
     60  HAL_GPIO_WritePin(GPIOE, TX1_LED_Pin|PWM_DISPLAY_LIGHT_Pin|RST_DISPLAY_Pin, GPIO_PIN_RESET);
     61
     62  /*Configure GPIO pin Output Level */
     63  HAL_GPIO_WritePin(OUTPUT_ON_LED_GPIO_Port, OUTPUT_ON_LED_Pin, GPIO_PIN_RESET);
     64
     65  /*Configure GPIO pin Output Level */
     66  HAL_GPIO_WritePin(GPIOG, ERROR_LED_Pin|CHARGE_LED_Pin|RX2_LED_Pin|RX1_LED_Pin
     67                          |TX2_LED_Pin, GPIO_PIN_RESET);
    6168
    6269  /*Configure GPIO pins : PE2 PE3 PE4 PE5
    63                            PE6 PE7 PE8 PE9
    64                            PE10 PE0 PE1 */
     70                           PE7 PE8 PE9 PE10
     71                           PE0 PE1 */
    6572  GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5
    66                           |GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9
    67                           |GPIO_PIN_10|GPIO_PIN_0|GPIO_PIN_1;
     73                          |GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10
     74                          |GPIO_PIN_0|GPIO_PIN_1;
    6875  GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
    6976  GPIO_InitStruct.Pull = GPIO_NOPULL;
     77  HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
     78
     79  /*Configure GPIO pins : TX1_LED_Pin PWM_DISPLAY_LIGHT_Pin RST_DISPLAY_Pin */
     80  GPIO_InitStruct.Pin = TX1_LED_Pin|PWM_DISPLAY_LIGHT_Pin|RST_DISPLAY_Pin;
     81  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
     82  GPIO_InitStruct.Pull = GPIO_NOPULL;
     83  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
    7084  HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
    7185
     
    120134  /*Configure GPIO pins : PG0 PG1 PG2 PG3
    121135                           PG4 PG5 PG6 PG7
    122                            PG8 PG9 PG10 PG11
    123                            PG12 PG13 PG14 PG15 */
     136                           PG8 PG14 PG15 */
    124137  GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
    125138                          |GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7
    126                           |GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11
    127                           |GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
     139                          |GPIO_PIN_8|GPIO_PIN_14|GPIO_PIN_15;
    128140  GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
    129141  GPIO_InitStruct.Pull = GPIO_NOPULL;
    130142  HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
    131143
    132   /*Configure GPIO pins : PWM_DISPLAY_LIGHT_Pin RST_DISPLAY_Pin */
    133   GPIO_InitStruct.Pin = PWM_DISPLAY_LIGHT_Pin|RST_DISPLAY_Pin;
     144  /*Configure GPIO pins : PD8 PD9 PD10 PD11
     145                           PD12 PD13 PD14 PD15
     146                           PD0 PD1 PD2 PD3
     147                           PD4 PD5 PD6 */
     148  GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11
     149                          |GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15
     150                          |GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
     151                          |GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6;
     152  GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
     153  GPIO_InitStruct.Pull = GPIO_NOPULL;
     154  HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
     155
     156  /*Configure GPIO pin : OUTPUT_ON_LED_Pin */
     157  GPIO_InitStruct.Pin = OUTPUT_ON_LED_Pin;
    134158  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
    135159  GPIO_InitStruct.Pull = GPIO_NOPULL;
    136160  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
    137   HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
     161  HAL_GPIO_Init(OUTPUT_ON_LED_GPIO_Port, &GPIO_InitStruct);
    138162
    139   /*Configure GPIO pins : PD8 PD9 PD10 PD11
    140                            PD12 PD13 PD14 PD15
    141                            PD0 PD1 PD2 PD3
    142                            PD4 PD5 PD6 PD7 */
    143   GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11
    144                           |GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15
    145                           |GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
    146                           |GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7;
    147   GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
     163  /*Configure GPIO pins : ERROR_LED_Pin CHARGE_LED_Pin RX2_LED_Pin RX1_LED_Pin
     164                           TX2_LED_Pin */
     165  GPIO_InitStruct.Pin = ERROR_LED_Pin|CHARGE_LED_Pin|RX2_LED_Pin|RX1_LED_Pin
     166                          |TX2_LED_Pin;
     167  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
    148168  GPIO_InitStruct.Pull = GPIO_NOPULL;
    149   HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
     169  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
     170  HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
    150171
    151172}
  • ctrl/firmware/Main/CubeMX/Core/Src/main.c

    r48 r50  
    116116  /* USER CODE BEGIN 2 */
    117117
    118   HAL_GPIO_WritePin(PWM_DISPLAY_LIGHT_GPIO_Port, PWM_DISPLAY_LIGHT_Pin, GPIO_PIN_SET);
    119   HAL_GPIO_WritePin(RST_DISPLAY_GPIO_Port, RST_DISPLAY_Pin, GPIO_PIN_SET);
    120 
    121   SPI_WriteComm(0x11);
    122   HAL_Delay(120);
    123 
    124   SPI_WriteComm(0xFF);
    125   SPI_WriteData(0x77);
    126   SPI_WriteData(0x01);
    127   SPI_WriteData(0x00);
    128   SPI_WriteData(0x00);
    129   SPI_WriteData(0x10);
    130 
    131 
    132   SPI_WriteComm(0xC0);
    133   SPI_WriteData(0x4F);
    134   SPI_WriteData(0x00);
    135 
    136 
    137   SPI_WriteComm(0xC1);
    138   SPI_WriteData(0x07);
    139   SPI_WriteData(0x02);
    140 
    141 
    142   SPI_WriteComm(0xC2);
    143   SPI_WriteData(0x31);
    144   SPI_WriteData(0x05);
    145 
    146   SPI_WriteComm(0xC3);
    147   SPI_WriteData(0x80);
    148   SPI_WriteData(0x02);
    149   SPI_WriteData(0x07);
    150 
    151   SPI_WriteComm(0xCC);
    152   SPI_WriteData(0x10);
    153 
    154   SPI_WriteComm(0xB0);
    155   SPI_WriteData(0x00);
    156   SPI_WriteData(0x0A);
    157   SPI_WriteData(0x11);
    158   SPI_WriteData(0x0C);
    159   SPI_WriteData(0x10);
    160   SPI_WriteData(0x05);
    161   SPI_WriteData(0x00);
    162   SPI_WriteData(0x08);
    163   SPI_WriteData(0x08);
    164   SPI_WriteData(0x1F);
    165   SPI_WriteData(0x07);
    166   SPI_WriteData(0x13);
    167   SPI_WriteData(0x10);
    168   SPI_WriteData(0xA9);
    169   SPI_WriteData(0x30);
    170   SPI_WriteData(0x18);
    171   SPI_WriteComm(0xB1);
    172   SPI_WriteData(0x00);
    173   SPI_WriteData(0x0B);
    174   SPI_WriteData(0x11);
    175   SPI_WriteData(0x0D);
    176   SPI_WriteData(0x0F);
    177   SPI_WriteData(0x05);
    178   SPI_WriteData(0x02);
    179   SPI_WriteData(0x07);
    180   SPI_WriteData(0x06);
    181   SPI_WriteData(0x20);
    182   SPI_WriteData(0x05);
    183   SPI_WriteData(0x15);
    184   SPI_WriteData(0x13);
    185   SPI_WriteData(0xA9);
    186   SPI_WriteData(0x30);
    187   SPI_WriteData(0x18);
    188   SPI_WriteComm(0xFF);
    189   SPI_WriteData(0x77);
    190   SPI_WriteData(0x01);
    191   SPI_WriteData(0x00);
    192   SPI_WriteData(0x00);
    193   SPI_WriteData(0x11);
    194 
    195 
    196   SPI_WriteComm(0xB0);
    197   SPI_WriteData(0x53);
    198   SPI_WriteComm(0xB1);
    199   SPI_WriteData(0x60);
    200 
    201   SPI_WriteComm(0xB2);
    202   SPI_WriteData(0x07);
    203 
    204   SPI_WriteComm(0xB3);
    205   SPI_WriteData(0x80);
    206 
    207   SPI_WriteComm(0xB5);
    208   SPI_WriteData(0x49);
    209 
    210   SPI_WriteComm(0xB7);
    211   SPI_WriteData(0x85);
    212 
    213   SPI_WriteComm(0xB8);
    214   SPI_WriteData(0x21);
    215 
    216   SPI_WriteComm(0xC1);
    217   SPI_WriteData(0x78);
    218 
    219   SPI_WriteComm(0xC2);
    220   SPI_WriteData(0x78);
    221   HAL_Delay(100);
    222 
    223   SPI_WriteComm(0xE0);
    224   SPI_WriteData(0x00);
    225   SPI_WriteData(0x00);
    226   SPI_WriteData(0x02);
    227 
    228   SPI_WriteComm(0xE1);
    229   SPI_WriteData(0x03);
    230   SPI_WriteData(0xA0);
    231   SPI_WriteData(0x00);
    232   SPI_WriteData(0x00);
    233   SPI_WriteData(0x02);
    234   SPI_WriteData(0xA0);
    235   SPI_WriteData(0x00);
    236   SPI_WriteData(0x00);
    237   SPI_WriteData(0x00);
    238   SPI_WriteData(0x33);
    239   SPI_WriteData(0x33);
    240   SPI_WriteComm(0xE2);
    241   SPI_WriteData(0x22);
    242   SPI_WriteData(0x22);
    243   SPI_WriteData(0x33);
    244   SPI_WriteData(0x33);
    245   SPI_WriteData(0x88);
    246   SPI_WriteData(0xA0);
    247   SPI_WriteData(0x00);
    248   SPI_WriteData(0x00);
    249   SPI_WriteData(0x87);
    250   SPI_WriteData(0xA0);
    251   SPI_WriteData(0x00);
    252   SPI_WriteData(0x00);
    253 
    254 
    255   SPI_WriteComm(0xE3);
    256   SPI_WriteData(0x00);
    257   SPI_WriteData(0x00);
    258   SPI_WriteData(0x22);
    259   SPI_WriteData(0x22);
    260 
    261   SPI_WriteComm(0xE4);
    262   SPI_WriteData(0x44);
    263   SPI_WriteData(0x44);
    264 
    265   SPI_WriteComm(0xE5);
    266   SPI_WriteData(0x04);
    267   SPI_WriteData(0x84);
    268   SPI_WriteData(0xA0);
    269   SPI_WriteData(0xA0);
    270   SPI_WriteData(0x06);
    271   SPI_WriteData(0x86);
    272   SPI_WriteData(0xA0);
    273   SPI_WriteData(0xA0);
    274   SPI_WriteData(0x08);
    275   SPI_WriteData(0x88);
    276   SPI_WriteData(0xA0);
    277   SPI_WriteData(0xA0);
    278   SPI_WriteData(0x0A);
    279   SPI_WriteData(0x8A);
    280   SPI_WriteData(0xA0);
    281   SPI_WriteData(0xA0);
    282 
    283   SPI_WriteComm(0xE6);
    284   SPI_WriteData(0x00);
    285   SPI_WriteData(0x00);
    286   SPI_WriteData(0x22);
    287   SPI_WriteData(0x22);
    288 
    289   SPI_WriteComm(0xE7);
    290   SPI_WriteData(0x44);
    291   SPI_WriteData(0x44);
    292 
    293   SPI_WriteComm(0xE8);
    294   SPI_WriteData(0x03);
    295   SPI_WriteData(0x83);
    296   SPI_WriteData(0xA0);
    297   SPI_WriteData(0xA0);
    298   SPI_WriteData(0x05);
    299   SPI_WriteData(0x85);
    300   SPI_WriteData(0xA0);
    301   SPI_WriteData(0xA0);
    302   SPI_WriteData(0x07);
    303   SPI_WriteData(0x87);
    304   SPI_WriteData(0xA0);
    305   SPI_WriteData(0xA0);
    306   SPI_WriteData(0x09);
    307   SPI_WriteData(0x89);
    308   SPI_WriteData(0xA0);
    309   SPI_WriteData(0xA0);
    310 
    311   SPI_WriteComm(0xEB);
    312   SPI_WriteData(0x00);
    313   SPI_WriteData(0x01);
    314   SPI_WriteData(0xE4);
    315   SPI_WriteData(0xE4);
    316   SPI_WriteData(0x88);
    317   SPI_WriteData(0x00);
    318   SPI_WriteData(0x40);
    319 
    320   SPI_WriteComm(0xEC);
    321   SPI_WriteData(0x3C);
    322   SPI_WriteData(0x01);
    323 
    324   SPI_WriteComm(0xED);
    325   SPI_WriteData(0xAB);
    326   SPI_WriteData(0x89);
    327   SPI_WriteData(0x76);
    328   SPI_WriteData(0x54);
    329   SPI_WriteData(0x02);
    330   SPI_WriteData(0xFF);
    331   SPI_WriteData(0xFF);
    332   SPI_WriteData(0xFF);
    333   SPI_WriteData(0xFF);
    334   SPI_WriteData(0xFF);
    335   SPI_WriteData(0xFF);
    336   SPI_WriteData(0x20);
    337   SPI_WriteData(0x45);
    338   SPI_WriteData(0x67);
    339   SPI_WriteData(0x98);
    340   SPI_WriteData(0xBA);
    341 
    342 
    343   SPI_WriteComm(0x3A);
    344   SPI_WriteData(0x66);
    345 
    346   SPI_WriteComm(0x36);
    347   SPI_WriteData(0x00);
    348 
    349   HAL_Delay(100);
    350   SPI_WriteComm(0x29);
     118  //HAL_GPIO_WritePin(PWM_DISPLAY_LIGHT_GPIO_Port, PWM_DISPLAY_LIGHT_Pin, GPIO_PIN_SET);
     119  //HAL_GPIO_WritePin(TX1_LED_GPIO_Port, TX1_LED_Pin, GPIO_PIN_SET);
     120  //HAL_GPIO_WritePin(RX1_LED_GPIO_Port, RX1_LED_Pin, GPIO_PIN_SET);
     121  //HAL_GPIO_WritePin(OUTPUT_ON_LED_GPIO_Port, OUTPUT_ON_LED_Pin, GPIO_PIN_RESET);
    351122
    352123
     
    434205        uint16_t data[1];
    435206
    436         data[0] = (uint16_t)cmd_data_toSend | ((uint16_t)isCmd << (sizeof(uint16_t) * 8));
     207        data[0] = (uint16_t)isCmd << 8U;
     208        data[0] |= (uint16_t)cmd_data_toSend;
     209
    437210
    438211        HAL_SPI_Transmit(&hspi4, (const uint8_t*)data, 1, 1000);
  • ctrl/firmware/Main/CubeMX/Core/Src/spi.c

    r48 r50  
    4141  hspi4.Instance = SPI4;
    4242  hspi4.Init.Mode = SPI_MODE_MASTER;
    43   hspi4.Init.Direction = SPI_DIRECTION_2LINES_TXONLY;
     43  hspi4.Init.Direction = SPI_DIRECTION_1LINE;
    4444  hspi4.Init.DataSize = SPI_DATASIZE_9BIT;
    4545  hspi4.Init.CLKPolarity = SPI_POLARITY_LOW;
    4646  hspi4.Init.CLKPhase = SPI_PHASE_1EDGE;
    4747  hspi4.Init.NSS = SPI_NSS_HARD_OUTPUT;
    48   hspi4.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2;
     48  hspi4.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_4;
    4949  hspi4.Init.FirstBit = SPI_FIRSTBIT_MSB;
    5050  hspi4.Init.TIMode = SPI_TIMODE_DISABLE;
  • ctrl/firmware/Main/CubeMX/charger.ioc

    r48 r50  
    4646Mcu.Name=STM32H723ZETx
    4747Mcu.Package=LQFP144
    48 Mcu.Pin0=PC14-OSC32_IN
    49 Mcu.Pin1=PC15-OSC32_OUT
    50 Mcu.Pin10=PA14(JTCK/SWCLK)
    51 Mcu.Pin11=VP_RTC_VS_RTC_Activate
    52 Mcu.Pin12=VP_SYS_VS_Systick
    53 Mcu.Pin13=VP_MEMORYMAP_VS_MEMORYMAP
    54 Mcu.Pin2=PH0-OSC_IN
    55 Mcu.Pin3=PH1-OSC_OUT
    56 Mcu.Pin4=PE11
    57 Mcu.Pin5=PE12
    58 Mcu.Pin6=PE13
    59 Mcu.Pin7=PE14
    60 Mcu.Pin8=PE15
    61 Mcu.Pin9=PA13(JTMS/SWDIO)
    62 Mcu.PinsNb=14
     48Mcu.Pin0=PE6
     49Mcu.Pin1=PC14-OSC32_IN
     50Mcu.Pin10=PA13(JTMS/SWDIO)
     51Mcu.Pin11=PA14(JTCK/SWCLK)
     52Mcu.Pin12=PD7
     53Mcu.Pin13=PG9
     54Mcu.Pin14=PG10
     55Mcu.Pin15=PG11
     56Mcu.Pin16=PG12
     57Mcu.Pin17=PG13
     58Mcu.Pin18=VP_RTC_VS_RTC_Activate
     59Mcu.Pin19=VP_SYS_VS_Systick
     60Mcu.Pin2=PC15-OSC32_OUT
     61Mcu.Pin20=VP_MEMORYMAP_VS_MEMORYMAP
     62Mcu.Pin3=PH0-OSC_IN
     63Mcu.Pin4=PH1-OSC_OUT
     64Mcu.Pin5=PE11
     65Mcu.Pin6=PE12
     66Mcu.Pin7=PE13
     67Mcu.Pin8=PE14
     68Mcu.Pin9=PE15
     69Mcu.PinsNb=21
    6370Mcu.ThirdPartyNb=0
    6471Mcu.UserConstants=
     
    8794PC15-OSC32_OUT.Mode=LSE-External-Oscillator
    8895PC15-OSC32_OUT.Signal=RCC_OSC32_OUT
     96PD7.GPIOParameters=GPIO_Label
     97PD7.GPIO_Label=OUTPUT_ON_LED
     98PD7.Locked=true
     99PD7.Signal=GPIO_Output
    89100PE11.GPIOParameters=GPIO_Label
    90101PE11.GPIO_Label=SPI4_NSS_DISPLAY
     
    95106PE12.GPIO_Label=SPI4_SCK_DISPLAY
    96107PE12.Locked=true
    97 PE12.Mode=TX_Only_Simplex_Unidirect_Master
     108PE12.Mode=Simplex_Bidirectional_Master
    98109PE12.Signal=SPI4_SCK
    99110PE13.GPIOParameters=GPIO_Label
     
    104115PE14.GPIO_Label=SPI4_MOSI_DISPLAY
    105116PE14.Locked=true
    106 PE14.Mode=TX_Only_Simplex_Unidirect_Master
     117PE14.Mode=Simplex_Bidirectional_Master
    107118PE14.Signal=SPI4_MOSI
    108119PE15.GPIOParameters=PinState,GPIO_Label
     
    111122PE15.PinState=GPIO_PIN_RESET
    112123PE15.Signal=GPIO_Output
     124PE6.GPIOParameters=GPIO_Label
     125PE6.GPIO_Label=TX1_LED
     126PE6.Locked=true
     127PE6.Signal=GPIO_Output
     128PG10.GPIOParameters=GPIO_Label
     129PG10.GPIO_Label=CHARGE_LED
     130PG10.Locked=true
     131PG10.Signal=GPIO_Output
     132PG11.GPIOParameters=GPIO_Label
     133PG11.GPIO_Label=RX2_LED
     134PG11.Locked=true
     135PG11.Signal=GPIO_Output
     136PG12.GPIOParameters=GPIO_Label
     137PG12.GPIO_Label=RX1_LED
     138PG12.Locked=true
     139PG12.Signal=GPIO_Output
     140PG13.GPIOParameters=GPIO_Label
     141PG13.GPIO_Label=TX2_LED
     142PG13.Locked=true
     143PG13.Signal=GPIO_Output
     144PG9.GPIOParameters=GPIO_Label
     145PG9.GPIO_Label=ERROR_LED
     146PG9.Locked=true
     147PG9.Signal=GPIO_Output
    113148PH0-OSC_IN.Mode=HSE-External-Oscillator
    114149PH0-OSC_IN.Signal=RCC_OSC_IN
     
    224259RCC.VCOInput2Freq_Value=8333333.333333333
    225260RCC.VCOInput3Freq_Value=1000000
    226 SPI4.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_2
    227 SPI4.CalculateBaudRate=15.151515 MBits/s
     261SPI4.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_4
     262SPI4.CalculateBaudRate=7.575757 MBits/s
    228263SPI4.DataSize=SPI_DATASIZE_9BIT
    229 SPI4.Direction=SPI_DIRECTION_2LINES_TXONLY
     264SPI4.Direction=SPI_DIRECTION_1LINE
    230265SPI4.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate,VirtualNSS,DataSize,BaudRatePrescaler
    231266SPI4.Mode=SPI_MODE_MASTER
Note: See TracChangeset for help on using the changeset viewer.