Skip to content

Commit eb346c3

Browse files
committed
[bsp/stm32l496zg] add cubemx can driver and peripheral sample
1 parent b4f9986 commit eb346c3

File tree

10 files changed

+851
-364
lines changed

10 files changed

+851
-364
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,8 @@ vdso.lds
5858

5959
# cherryusb libraries
6060
!components/drivers/usb/cherryusb/port/pusb2/*.a
61-
!components/drivers/usb/cherryusb/port/xhci/phytium/*.a
61+
!components/drivers/usb/cherryusb/port/xhci/phytium/*.a
62+
63+
# stm32cubemx
64+
**/CubeMX_Config/Drivers/
65+
**/CubeMX_Config/MDK-ARM/

bsp/stm32/stm32l496-st-nucleo/.ci/attachconfig/ci.attachconfig.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,22 @@ pkg.kernel_en_sample:
6262
- CONFIG_KERNEL_SAMPLES_USING_TIME_SLICE=y
6363
- CONFIG_KERNEL_SAMPLES_USING_SCHEDULER_HOOK=y
6464
- CONFIG_KERNEL_SAMPLES_USING_PRODUCER_CONSUMER=y
65+
pkg.peripheral.sample:
66+
kconfig:
67+
- CONFIG_PKG_USING_PERIPHERAL_SAMPLES=y
68+
- CONFIG_PERIPHERAL_SAMPLES_USING_ADC=y
69+
- CONFIG_PERIPHERAL_SAMPLES_USING_HWTIMER=y
70+
- CONFIG_PERIPHERAL_SAMPLES_USING_I2C=y
71+
- CONFIG_PERIPHERAL_SAMPLES_USING_IWDG=y
72+
- CONFIG_PERIPHERAL_SAMPLES_USING_LED_BLINK=y
73+
- CONFIG_PERIPHERAL_SAMPLES_USING_PIN=y
74+
- CONFIG_PERIPHERAL_SAMPLES_USING_PWM=y
75+
- CONFIG_PERIPHERAL_SAMPLES_USING_RTC=y
76+
- CONFIG_PERIPHERAL_SAMPLES_USING_SD=y
77+
- CONFIG_PERIPHERAL_SAMPLES_USING_SERIAL=y
78+
- CONFIG_PERIPHERAL_SAMPLES_USING_SERIAL_DMA=y
79+
- CONFIG_PERIPHERAL_SAMPLES_USING_SPI=y
80+
- CONFIG_PERIPHERAL_SAMPLES_USING_CAN=y
6581
# ------ component CI ------
6682
component.rtlink:
6783
kconfig:

bsp/stm32/stm32l496-st-nucleo/board/CubeMX_Config/.mxproject

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

bsp/stm32/stm32l496-st-nucleo/board/CubeMX_Config/Inc/main.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ void Error_Handler(void);
9090
#define SWO_GPIO_Port GPIOB
9191
#define LD2_Pin GPIO_PIN_7
9292
#define LD2_GPIO_Port GPIOB
93+
9394
/* USER CODE BEGIN Private defines */
9495

9596
/* USER CODE END Private defines */
@@ -99,5 +100,3 @@ void Error_Handler(void);
99100
#endif
100101

101102
#endif /* __MAIN_H */
102-
103-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)