Skip to content

Commit af10a0e

Browse files
committed
Remove variant.h header dependencies
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent fd6c14a commit af10a0e

File tree

110 files changed

+67
-354
lines changed

Some content is hidden

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

110 files changed

+67
-354
lines changed

cores/arduino/pins_arduino.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
*/
1818
#ifndef _PINS_ARDUINO_H_
1919
#define _PINS_ARDUINO_H_
20+
#include <stdlib.h> /* Required for static_assert */
2021
// Include board variant
2122
#include "variant.h"
23+
#include "PinNames.h"
24+
2225

2326
// Avoid PortName issue
2427
_Static_assert(LastPort <= 0x0F, "PortName must be less than 16");
@@ -201,6 +204,7 @@ static const uint8_t SCL = PIN_WIRE_SCL;
201204
#ifdef __cplusplus
202205
extern "C" {
203206
#endif
207+
extern const PinName digitalPin[];
204208

205209
#define NOT_AN_INTERRUPT NC // -1
206210

cores/arduino/stm32/interrupt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#define __INTERRUPT_H
4141

4242
/* Includes ------------------------------------------------------------------*/
43+
#include "stm32_def.h"
4344
#include "variant.h"
4445

4546
#if defined(STM32F3xx)

cores/arduino/stm32/rtc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
#define __RTC_H
4141

4242
/* Includes ------------------------------------------------------------------*/
43+
#include <stdbool.h>
44+
#include "stm32_def.h"
4345
#include "variant.h"
4446
#include "backup.h"
4547
#include "clock.h"

cores/arduino/stm32/stm32_eeprom.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#define __STM32_EEPROM_H
3838

3939
/* Includes ------------------------------------------------------------------*/
40+
#include "stm32_def.h"
4041
#include "variant.h"
4142

4243
#ifdef __cplusplus

cores/arduino/stm32/timer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
#define __TIMER_H
4141

4242
/* Includes ------------------------------------------------------------------*/
43+
#include "stm32_def.h"
4344
#include "variant.h"
45+
#include "PinNames.h"
4446

4547
#ifdef __cplusplus
4648
extern "C" {

cores/arduino/stm32/twi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
#define __TWI_H__
4242

4343
/* Includes ------------------------------------------------------------------*/
44+
#include "stm32_def.h"
4445
#include "variant.h"
46+
#include "PeripheralPins.h"
4547

4648
#ifdef __cplusplus
4749
extern "C" {

cores/arduino/stm32/uart.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
#define __UART_H
3939

4040
/* Includes ------------------------------------------------------------------*/
41+
#include "stm32_def.h"
4142
#include "variant.h"
43+
#include "PinNames.h"
4244

4345
#ifdef __cplusplus
4446
extern "C" {

cores/arduino/stm32/usb/cdc/cdc_queue.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#define __CDC_QUEUE_H
4242

4343
/* Includes ------------------------------------------------------------------*/
44+
#include <stdbool.h>
4445
#include "usbd_def.h"
4546

4647
#ifdef __cplusplus

cores/arduino/stm32/usb/hid/usbd_hid_composite_if.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535
#ifdef USBCON
3636
#ifdef USBD_USE_HID_COMPOSITE
37-
37+
#include <stdbool.h>
3838
#include "usbd_desc.h"
3939
#include "usbd_hid_composite_if.h"
4040
#include "usbd_hid_composite.h"

cores/arduino/stm32/usb/usbd_conf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extern "C" {
2727

2828
#ifdef USBCON
2929
/* Includes ------------------------------------------------------------------*/
30+
#include "stm32_def.h"
3031
#include "variant.h"
3132

3233
#if !defined(USB_BASE) && !defined(USB_OTG_DEVICE_BASE)

0 commit comments

Comments
 (0)