fix(hal-watchdog): Guard TMPM 'ResetReason' code behind feature flag

pull/11023/head
Steve Cartmell 2018-12-18 16:13:58 +00:00 committed by Martin Kojtal
parent da7bf6e8e7
commit 5b0259dbd1
5 changed files with 30 additions and 5 deletions

View File

@ -13,9 +13,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <stdbool.h>
#include "reset_reason_api.h" #include "reset_reason_api.h"
#ifdef DEVICE_RESET_REASON
#include "TMPM066.h" #include "TMPM066.h"
#include <stdbool.h>
#define MAXRSTREASON 6 #define MAXRSTREASON 6
@ -121,3 +124,5 @@ static uint8_t bit_pos(uint32_t reg)
} }
} }
} }
#endif // DEVICE_RESET_REASON

View File

@ -13,9 +13,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <stdbool.h>
#include "reset_reason_api.h" #include "reset_reason_api.h"
#ifdef DEVICE_RESET_REASON
#include "TMPM3H6.h" #include "TMPM3H6.h"
#include <stdbool.h>
static uint8_t set_bit_count(uint32_t reg); static uint8_t set_bit_count(uint32_t reg);
static uint8_t bit_pos(uint32_t reg); static uint8_t bit_pos(uint32_t reg);
@ -118,3 +121,5 @@ static uint8_t bit_pos(uint32_t reg)
} }
} }
} }
#endif // DEVICE_RESET_REASON

View File

@ -13,9 +13,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <stdbool.h>
#include "reset_reason_api.h" #include "reset_reason_api.h"
#ifdef DEVICE_RESET_REASON
#include "TMPM3HQ.h" #include "TMPM3HQ.h"
#include <stdbool.h>
static uint8_t set_bit_count(uint32_t reg); static uint8_t set_bit_count(uint32_t reg);
static uint8_t bit_pos(uint32_t reg); static uint8_t bit_pos(uint32_t reg);
@ -118,3 +121,5 @@ static uint8_t bit_pos(uint32_t reg)
} }
} }
} }
#endif // DEVICE_RESET_REASON

View File

@ -13,9 +13,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <stdbool.h>
#include "reset_reason_api.h" #include "reset_reason_api.h"
#ifdef DEVICE_RESET_REASON
#include "TMPM46B.h" #include "TMPM46B.h"
#include <stdbool.h>
static uint8_t set_bit_count(uint32_t reg); static uint8_t set_bit_count(uint32_t reg);
static uint8_t bit_pos(uint32_t reg); static uint8_t bit_pos(uint32_t reg);
@ -87,3 +90,5 @@ static uint8_t bit_pos(uint32_t reg)
} }
} }
} }
#endif // DEVICE_RESET_REASON

View File

@ -13,9 +13,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <stdbool.h>
#include "reset_reason_api.h" #include "reset_reason_api.h"
#ifdef DEVICE_RESET_REASON
#include "TMPM4G9.h" #include "TMPM4G9.h"
#include <stdbool.h>
static uint8_t set_bit_count(uint32_t reg); static uint8_t set_bit_count(uint32_t reg);
static uint8_t bit_pos(uint32_t reg); static uint8_t bit_pos(uint32_t reg);
@ -121,3 +124,5 @@ static uint8_t bit_pos(uint32_t reg)
} }
} }
} }
#endif // DEVICE_RESET_REASON