Version OK : Mise en place sur voilier
This commit is contained in:
parent
cc4d4415e9
commit
07cdd89071
3 changed files with 6 additions and 6 deletions
|
@ -75,7 +75,7 @@
|
|||
<OPTFL>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<IsCurrentTarget>0</IsCurrentTarget>
|
||||
<IsCurrentTarget>1</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
<CpuCode>18</CpuCode>
|
||||
<DebugOpt>
|
||||
|
@ -305,7 +305,7 @@
|
|||
<OPTFL>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<IsCurrentTarget>1</IsCurrentTarget>
|
||||
<IsCurrentTarget>0</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
<CpuCode>18</CpuCode>
|
||||
<DebugOpt>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "string.h"
|
||||
|
||||
#define TAILLE_MESSAGE_MAX 100
|
||||
#define USARTX USART2
|
||||
#define USARTX USART1
|
||||
|
||||
// Structure pour gérer la transmission du message
|
||||
struct t_transmission {
|
||||
|
@ -42,9 +42,9 @@ static struct t_transmission transmission;
|
|||
|
||||
void ConfTransmission(){
|
||||
|
||||
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_USART2); //On enable la clock pour l'USARt
|
||||
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_USART1); //On enable la clock pour l'USARt
|
||||
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_GPIOA); //enable la clock du gpio où est l'USART
|
||||
LL_GPIO_SetPinMode(GPIOA,LL_GPIO_PIN_2,LL_GPIO_MODE_ALTERNATE); // Mode fonction alternative PIN USART Tx
|
||||
LL_GPIO_SetPinMode(GPIOA,LL_GPIO_PIN_9,LL_GPIO_MODE_ALTERNATE); // Mode fonction alternative PIN USART Tx
|
||||
|
||||
LL_USART_InitTypeDef USART_InitStruct;
|
||||
LL_USART_StructInit(&USART_InitStruct);
|
||||
|
|
|
@ -134,7 +134,7 @@ void SystemClock_Config(void)
|
|||
/* Enable HSE oscillator */
|
||||
// ********* Commenter la ligne ci-dessous pour MCBSTM32 *****************
|
||||
// ********* Conserver la ligne si Nucl<63>o*********************************
|
||||
LL_RCC_HSE_EnableBypass();
|
||||
//LL_RCC_HSE_EnableBypass();
|
||||
LL_RCC_HSE_Enable();
|
||||
while(LL_RCC_HSE_IsReady() != 1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue