Implement default board power control to allow software switch-off

This commit is contained in:
Lorenz Meier 2017-02-04 12:14:16 +01:00
parent a92931fe84
commit f7fa374656
3 changed files with 6 additions and 0 deletions

View File

@ -110,6 +110,7 @@
#define DIRECT_PWM_OUTPUT_CHANNELS 1
#define BOARD_HAS_PWM 0
#define BOARD_HAS_POWER_CONTROL 1
/* USB OTG FS
*

View File

@ -376,6 +376,10 @@ __EXPORT int board_get_uuid_formated32(char *format_buffer, int size,
raw_uuid_uint32_reorder_t *optional_reorder);
#endif // !defined(BOARD_OVERRIDE_UUID)
#if !defined(BOARD_HAS_POWER_CONTROL)
#define board_pwr(switch_on) { do {} while(0); }
#endif
/************************************************************************************
* Name: board_mcu_version
*

View File

@ -221,6 +221,7 @@
#define BOARD_HAS_PWM DIRECT_PWM_OUTPUT_CHANNELS
#define BOARD_HAS_POWER_CONTROL 1
/* This board provides a DMA pool and APIs */