Skip to content

Commit 970e315

Browse files
SuperMK15avancruy
andauthored
M1 Successful Flight (#38)
* added drivers to initDrivers * add rc driver * fix to IOC * driver and AM implementation * successfully built * fixes to IOC, common file * working RC servo comms, no IWDG, SWO logging * rc fix * added AM logging for failsafe * add const to log functions * add IWDG, remove rc parse location * add SPI SD Card logging * added flaps and steering servos * successful flight --------- Co-authored-by: eGuitar999 <ari.vancruyningen@gmail.com>
1 parent 45ab0f3 commit 970e315

File tree

72 files changed

+13237
-42041
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+13237
-42041
lines changed

stm32l552xx/.cproject

Lines changed: 103 additions & 56 deletions
Large diffs are not rendered by default.

stm32l552xx/.mxproject

Lines changed: 31 additions & 20 deletions
Large diffs are not rendered by default.

stm32l552xx/.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@
3030
<nature>com.st.stm32cube.ide.mcu.MCURootProjectNature</nature>
3131
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
3232
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
33+
<nature>org.eclipse.cdt.core.ccnature</nature>
3334
</natures>
3435
</projectDescription>

stm32l552xx/Core/Inc/main.h

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ extern "C" {
2929
/* Includes ------------------------------------------------------------------*/
3030
#include "stm32l5xx_hal.h"
3131

32-
#include "stm32l5xx_ll_ucpd.h"
33-
#include "stm32l5xx_ll_bus.h"
34-
#include "stm32l5xx_ll_cortex.h"
35-
#include "stm32l5xx_ll_rcc.h"
36-
#include "stm32l5xx_ll_system.h"
37-
#include "stm32l5xx_ll_utils.h"
38-
#include "stm32l5xx_ll_pwr.h"
39-
#include "stm32l5xx_ll_gpio.h"
40-
#include "stm32l5xx_ll_dma.h"
41-
42-
#include "stm32l5xx_ll_exti.h"
43-
4432
/* Private includes ----------------------------------------------------------*/
4533
/* USER CODE BEGIN Includes */
4634

@@ -61,6 +49,8 @@ extern "C" {
6149

6250
/* USER CODE END EM */
6351

52+
void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
53+
6454
/* Exported functions prototypes ---------------------------------------------*/
6555
void Error_Handler(void);
6656

@@ -71,20 +61,12 @@ void Error_Handler(void);
7161
/* Private defines -----------------------------------------------------------*/
7262
#define USER_BUTTON_Pin GPIO_PIN_13
7363
#define USER_BUTTON_GPIO_Port GPIOC
74-
#define VBUS_SENSE_Pin GPIO_PIN_2
75-
#define VBUS_SENSE_GPIO_Port GPIOC
76-
#define UCPD_FLT_Pin GPIO_PIN_14
77-
#define UCPD_FLT_GPIO_Port GPIOB
78-
#define ST_LINK_VCP_TX_Pin GPIO_PIN_7
79-
#define ST_LINK_VCP_TX_GPIO_Port GPIOG
80-
#define ST_LINK_VCP_RX_Pin GPIO_PIN_8
81-
#define ST_LINK_VCP_RX_GPIO_Port GPIOG
64+
#define SPI1_CS_Pin GPIO_PIN_4
65+
#define SPI1_CS_GPIO_Port GPIOA
8266
#define LED_GREEN_Pin GPIO_PIN_7
8367
#define LED_GREEN_GPIO_Port GPIOC
8468
#define LED_RED_Pin GPIO_PIN_9
8569
#define LED_RED_GPIO_Port GPIOA
86-
#define UCPD_DBN_Pin GPIO_PIN_5
87-
#define UCPD_DBN_GPIO_Port GPIOB
8870
#define LED_BLUE_Pin GPIO_PIN_7
8971
#define LED_BLUE_GPIO_Port GPIOB
9072

stm32l552xx/Core/Inc/stm32l5xx_hal_conf.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @brief This is the list of modules to be used in the HAL driver
3535
*/
3636
#define HAL_MODULE_ENABLED
37-
#define HAL_ADC_MODULE_ENABLED
37+
/*#define HAL_ADC_MODULE_ENABLED */
3838
/*#define HAL_COMP_MODULE_ENABLED */
3939
/*#define HAL_CRC_MODULE_ENABLED */
4040
/*#define HAL_CRYP_MODULE_ENABLED */
@@ -52,16 +52,16 @@
5252
/*#define HAL_OPAMP_MODULE_ENABLED */
5353
/*#define HAL_OSPI_MODULE_ENABLED */
5454
/*#define HAL_OTFDEC_MODULE_ENABLED */
55-
#define HAL_PCD_MODULE_ENABLED
55+
/*#define HAL_PCD_MODULE_ENABLED */
5656
/*#define HAL_PKA_MODULE_ENABLED */
5757
/*#define HAL_RCC_MODULE_ENABLED */
5858
/*#define HAL_RNG_MODULE_ENABLED */
5959
#define HAL_RTC_MODULE_ENABLED
6060
/*#define HAL_SAI_MODULE_ENABLED */
61-
#define HAL_SD_MODULE_ENABLED
61+
/*#define HAL_SD_MODULE_ENABLED */
6262
/*#define HAL_SMARTCARD_MODULE_ENABLED */
6363
/*#define HAL_SMBUS_MODULE_ENABLED */
64-
/*#define HAL_SPI_MODULE_ENABLED */
64+
#define HAL_SPI_MODULE_ENABLED
6565
/*#define HAL_SRAM_MODULE_ENABLED */
6666
#define HAL_TIM_MODULE_ENABLED
6767
/*#define HAL_TSC_MODULE_ENABLED */

stm32l552xx/Core/Inc/stm32l5xx_it.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ void BusFault_Handler(void);
5353
void UsageFault_Handler(void);
5454
void DebugMon_Handler(void);
5555
void DMA1_Channel1_IRQHandler(void);
56-
void TIM1_UP_IRQHandler(void);
57-
void SDMMC1_IRQHandler(void);
56+
void DMA1_Channel2_IRQHandler(void);
57+
void DMA1_Channel3_IRQHandler(void);
58+
void TIM6_IRQHandler(void);
59+
void UART4_IRQHandler(void);
5860
/* USER CODE BEGIN EFP */
5961

6062
/* USER CODE END EFP */

0 commit comments

Comments
 (0)