Skip to content
Prev Previous commit
Next Next commit
Removed comments
  • Loading branch information
straccio committed Nov 29, 2017
commit 1441708a77776f33e9112c3a991f506bdd48ed66
8 changes: 1 addition & 7 deletions cores/arduino/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/*
* Core and peripherals registers definitions
*/
#include "interrupt.h"
#ifdef __cplusplus
extern "C"{
#endif // __cplusplus
Expand All @@ -13,13 +14,6 @@ extern "C"{
#include "digital_io.h"
#include "hal_uart_emul.h"
#include "hw_config.h"
#ifdef __cplusplus
}
#endif // __cplusplus
#include "interrupt.h"
#ifdef __cplusplus
extern "C"{
#endif // __cplusplus
#include "spi_com.h"
#include "stm32_eeprom.h"
#include "timer.h"
Expand Down
8 changes: 0 additions & 8 deletions cores/arduino/stm32/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,17 @@

#ifdef __cplusplus
#include <functional>
// extern "C" {

typedef std::function<void(void)> callback_function_t;
void stm32_interrupt_enable(GPIO_TypeDef *port, uint16_t pin, callback_function_t callback, uint32_t mode);
// }
#endif
// #ifdef __cplusplus
// extern "C" {
// #endif

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void stm32_interrupt_enable(GPIO_TypeDef *port, uint16_t pin, void (*callback)(void), uint32_t mode);
void stm32_interrupt_disable(GPIO_TypeDef *port, uint16_t pin);
// #ifdef __cplusplus
// }
// #endif

#endif /* __INTERRUPT_H */

Expand Down
6 changes: 0 additions & 6 deletions cores/arduino/wiring.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@
#include "wiring_time.h"
#include "WInterrupts.h"

// #ifdef __cplusplus
// extern "C"{
// #endif // __cplusplus
#include <board.h>
// #ifdef __cplusplus
// }
// #endif

#ifdef __cplusplus
#include "HardwareSerial.h"
Expand Down