Skip to content
This repository has been archived by the owner on Feb 2, 2020. It is now read-only.

Commit

Permalink
Add Power to support Reset in TinyCLR
Browse files Browse the repository at this point in the history
  • Loading branch information
Palomino34 committed Aug 9, 2018
1 parent 58d5c64 commit a16eb15
Show file tree
Hide file tree
Showing 20 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Devices/Cerb/Device.h
Expand Up @@ -72,6 +72,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 14
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/EMX/Device.h
Expand Up @@ -69,6 +69,8 @@
#define LPC24_I2C_SCL_PINS { { PIN(0, 28), PF(1) } }
#define LPC24_I2C_SDA_PINS { { PIN(0, 27), PF(1) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 2
#define MAX_PWM_PER_CONTROLLER 6
Expand Down
2 changes: 2 additions & 0 deletions Devices/Electron11/Device.h
Expand Up @@ -59,6 +59,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 4
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/EmbeddedMaster/Device.h
Expand Up @@ -69,6 +69,8 @@
#define LPC24_I2C_SCL_PINS { { PIN(0, 28), PF(1) } }
#define LPC24_I2C_SDA_PINS { { PIN(0, 27), PF(1) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 2
#define MAX_PWM_PER_CONTROLLER 6
Expand Down
2 changes: 2 additions & 0 deletions Devices/FEZCLR/Device.h
Expand Up @@ -64,6 +64,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 4
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/FEZHydra/Device.h
Expand Up @@ -62,6 +62,8 @@
#define AT91_I2C_SCL_PINS { { PIN(A,24), PS(A) } }
#define AT91_I2C_SDA_PINS { { PIN(A,23), PS(A) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define MAX_PWM_PER_CONTROLLER 1
#define TOTAL_PWM_CONTROLLERS 3
Expand Down
2 changes: 2 additions & 0 deletions Devices/G120/Device.h
Expand Up @@ -77,6 +77,8 @@
#define LPC17_I2C_SCL_PINS { { PIN(0, 28), PF(1) } }
#define LPC17_I2C_SDA_PINS { { PIN(0, 27), PF(1) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 2
#define MAX_PWM_PER_CONTROLLER 6
Expand Down
2 changes: 2 additions & 0 deletions Devices/G30/Device.h
Expand Up @@ -64,6 +64,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 4
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/G400/Device.h
Expand Up @@ -68,6 +68,8 @@
#define AT91_I2C_SCL_PINS { { PIN(A,31), PS(A) } }
#define AT91_I2C_SDA_PINS { { PIN(A,30), PS(A) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define MAX_PWM_PER_CONTROLLER 1
#define TOTAL_PWM_CONTROLLERS 4
Expand Down
2 changes: 2 additions & 0 deletions Devices/G80/Device.h
Expand Up @@ -73,6 +73,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 14
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/NUCLEO-F401RE/Device.h
Expand Up @@ -60,6 +60,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 4
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/NUCLEO-F411RE/Device.h
Expand Up @@ -60,6 +60,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 8), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 9), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 4
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/Quail/Device.h
Expand Up @@ -70,6 +70,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 14
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/USBizi/Device.h
Expand Up @@ -66,6 +66,8 @@
#define LPC24_I2C_SCL_PINS { { PIN(0, 28), PF(1) } }
#define LPC24_I2C_SDA_PINS { { PIN(0, 27), PF(1) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 1
#define MAX_PWM_PER_CONTROLLER 6
Expand Down
2 changes: 2 additions & 0 deletions Devices/WiFiMCU/Device.h
Expand Up @@ -59,6 +59,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 8), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 9), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 4
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/WioLTE/Device.h
Expand Up @@ -60,6 +60,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 4
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/clicker/Device.h
Expand Up @@ -61,6 +61,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 4
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/clicker2/Device.h
Expand Up @@ -62,6 +62,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 4
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
2 changes: 2 additions & 0 deletions Devices/netduino3/Device.h
Expand Up @@ -70,6 +70,8 @@
#define STM32F4_I2C_SCL_PINS { { PIN(B, 6), AF(4) } }
#define STM32F4_I2C_SDA_PINS { { PIN(B, 7), AF(4) } }

#define INCLUDE_POWER

#define INCLUDE_PWM
#define TOTAL_PWM_CONTROLLERS 14
#define STM32F4_PWM_PINS {/* 0 1 2 3 */\
Expand Down
4 changes: 4 additions & 0 deletions Main/main.cpp
Expand Up @@ -46,6 +46,10 @@ void OnSoftReset(const TinyCLR_Api_Manager* apiManager) {
TARGET(_I2c_AddApi)(apiManager);
#endif

#ifdef INCLUDE_POWER
TARGET(_Power_AddApi)(apiManager);
#endif

#ifdef INCLUDE_PWM
TARGET(_Pwm_AddApi)(apiManager);
#endif
Expand Down

0 comments on commit a16eb15

Please sign in to comment.