Skip to content

Commit 8c72782

Browse files
committed
2 parents 27ae49e + cbd68ef commit 8c72782

Some content is hidden

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

42 files changed

+119
-70
lines changed

cores/arduino/HardwareSerial.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "Arduino.h"
2727
#include "HardwareSerial.h"
2828

29-
#if defined(HAL_UART_MODULE_ENABLED)
29+
#if defined(HAL_UART_MODULE_ENABLED) && !defined(HAL_UART_MODULE_ONLY)
3030
#if defined(HAVE_HWSERIAL1) || defined(HAVE_HWSERIAL2) || defined(HAVE_HWSERIAL3) ||\
3131
defined(HAVE_HWSERIAL4) || defined(HAVE_HWSERIAL5) || defined(HAVE_HWSERIAL6) ||\
3232
defined(HAVE_HWSERIAL7) || defined(HAVE_HWSERIAL8) || defined(HAVE_HWSERIAL9) ||\
@@ -528,4 +528,4 @@ void HardwareSerial::enableHalfDuplexRx(void)
528528
}
529529
}
530530

531-
#endif // HAL_UART_MODULE_ENABLED
531+
#endif // HAL_UART_MODULE_ENABLED && !HAL_UART_MODULE_ONLY

cores/arduino/HardwareTimer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "Arduino.h"
2727
#include "HardwareTimer.h"
2828

29-
#ifdef HAL_TIM_MODULE_ENABLED
29+
#if defined(HAL_TIM_MODULE_ENABLED) && !defined(HAL_TIM_MODULE_ONLY)
3030

3131
/* Private Defines */
3232
#define PIN_NOT_USED 0xFF
@@ -1472,4 +1472,4 @@ extern "C" {
14721472
#endif //TIM22_BASE
14731473
}
14741474

1475-
#endif // HAL_TIM_MODULE_ENABLED
1475+
#endif // HAL_TIM_MODULE_ENABLED && !HAL_TIM_MODULE_ONLY

cores/arduino/HardwareTimer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/* Includes ------------------------------------------------------------------*/
3131
#include "timer.h"
3232

33-
#ifdef HAL_TIM_MODULE_ENABLED
33+
#if defined(HAL_TIM_MODULE_ENABLED) && !defined(HAL_TIM_MODULE_ONLY)
3434

3535
#define TIMER_CHANNELS 4 // channel5 and channel 6 are not considered here has they don't have gpio output and they don't have interrupt
3636

@@ -149,5 +149,5 @@ extern timer_index_t get_timer_index(TIM_TypeDef *htim);
149149

150150
#endif /* __cplusplus */
151151

152-
#endif // HAL_TIM_MODULE_ENABLED
152+
#endif // HAL_TIM_MODULE_ENABLED && !HAL_TIM_MODULE_ONLY
153153
#endif // HARDWARETIMER_H_

cores/arduino/Print.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ extern "C" {
200200
__attribute__((weak))
201201
int _write(int file, char *ptr, int len)
202202
{
203-
#ifdef HAL_UART_MODULE_ENABLED
203+
#if defined(HAL_UART_MODULE_ENABLED) && !defined(HAL_UART_MODULE_ONLY)
204204
switch (file) {
205205
case STDOUT_FILENO:
206206
case STDERR_FILENO:

cores/arduino/Tone.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "Arduino.h"
2323
#include "HardwareTimer.h"
2424

25-
#if defined(HAL_TIM_MODULE_ENABLED) && defined(TIMER_TONE)
25+
#if defined(HAL_TIM_MODULE_ENABLED) && defined(TIMER_TONE) && !defined(HAL_TIM_MODULE_ONLY)
2626

2727
#define MAX_FREQ 65535
2828

@@ -143,4 +143,4 @@ void noTone(uint8_t _pin)
143143
{
144144
UNUSED(_pin);
145145
}
146-
#endif /* HAL_TIM_MODULE_ENABLED && TIMER_TONE */
146+
#endif /* HAL_TIM_MODULE_ENABLED && TIMER_TONE && !HAL_TIM_MODULE_ONLY*/

cores/arduino/WSerial.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
extern void serialEventUSB(void) __attribute__((weak));
2222
#endif /* USBCON && USBD_USE_CDC */
2323

24-
#if defined(HAL_UART_MODULE_ENABLED)
24+
#if defined(HAL_UART_MODULE_ENABLED) && !defined(HAL_UART_MODULE_ONLY)
2525
#if !defined(HWSERIAL_NONE) && defined(SERIAL_UART_INSTANCE)
2626
#if SERIAL_UART_INSTANCE == 0
2727
#define ENABLE_HWSERIALLP1
@@ -163,7 +163,7 @@ extern void serialEvent8(void) __attribute__((weak));
163163
extern void serialEvent9(void) __attribute__((weak));
164164
extern void serialEvent10(void) __attribute__((weak));
165165
extern void serialEventLP1(void) __attribute__((weak));
166-
#endif /* HAL_UART_MODULE_ENABLED */
166+
#endif /* HAL_UART_MODULE_ENABLED && !HAL_UART_MODULE_ONLY */
167167

168168
extern void serialEventRun(void) __attribute__((weak));
169169

cores/arduino/board.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
#include "hw_config.h"
1515
#include "low_power.h"
1616
#include "rtc.h"
17-
#include "spi_com.h"
1817
#include "stm32_eeprom.h"
1918
#include "timer.h"
20-
#include "twi.h"
2119
#include "uart.h"
2220

2321
#ifdef __cplusplus

cores/arduino/stm32/LL/stm32yyxx_ll_dma.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_dma.h"
4343
#endif
44+
#ifdef STM32MP1xx
45+
#include "stm32mp1xx_ll_dma.h"
46+
#endif
4447
#ifdef STM32WBxx
4548
#include "stm32wbxx_ll_dma.h"
4649
#endif

cores/arduino/stm32/LL/stm32yyxx_ll_dmamux.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#ifdef STM32L4xx
1818
#include "stm32l4xx_ll_dmamux.h"
1919
#endif
20+
#ifdef STM32MP1xx
21+
#include "stm32mp1xx_ll_dmamux.h"
22+
#endif
2023
#ifdef STM32WBxx
2124
#include "stm32wbxx_ll_dmamux.h"
2225
#endif

cores/arduino/stm32/LL/stm32yyxx_ll_exti.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_exti.h"
4343
#endif
44+
#ifdef STM32MP1xx
45+
#include "stm32mp1xx_ll_exti.h"
46+
#endif
4447
#ifdef STM32WBxx
4548
#include "stm32wbxx_ll_exti.h"
4649
#endif

0 commit comments

Comments
 (0)