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

pull/10657/head
Steve Cartmell 2018-12-18 16:13:58 +00:00 committed by Filip Jagodzinski
parent a63e236d84
commit ad295e64ba
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
* limitations under the License.
*/
#include <stdbool.h>
#include "reset_reason_api.h"
#ifdef DEVICE_RESET_REASON
#include "TMPM066.h"
#include <stdbool.h>
#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
* limitations under the License.
*/
#include <stdbool.h>
#include "reset_reason_api.h"
#ifdef DEVICE_RESET_REASON
#include "TMPM3H6.h"
#include <stdbool.h>
static uint8_t set_bit_count(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
* limitations under the License.
*/
#include <stdbool.h>
#include "reset_reason_api.h"
#ifdef DEVICE_RESET_REASON
#include "TMPM3HQ.h"
#include <stdbool.h>
static uint8_t set_bit_count(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
* limitations under the License.
*/
#include <stdbool.h>
#include "reset_reason_api.h"
#ifdef DEVICE_RESET_REASON
#include "TMPM46B.h"
#include <stdbool.h>
static uint8_t set_bit_count(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
* limitations under the License.
*/
#include <stdbool.h>
#include "reset_reason_api.h"
#ifdef DEVICE_RESET_REASON
#include "TMPM4G9.h"
#include <stdbool.h>
static uint8_t set_bit_count(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