mirror of https://github.com/ARMmbed/mbed-os.git
fix(hal-watchdog): Guard TMPM 'ResetReason' code behind feature flag
parent
a63e236d84
commit
ad295e64ba
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue