Jump to reset vector when program exceeds specified watchdog timeout

This commit is contained in:
2024-09-05 17:55:05 +02:00
parent 7eaacf4abf
commit 0bd4866816
5 changed files with 31 additions and 18 deletions

View File

@@ -12,8 +12,9 @@
#define TW_MR_SLA_NACK 0x48
#define TW_MR_DATA_ACK 0x50
// XXX: Handle interrupts in I2C_vect ISR? This may not
// actually be much better than the blocking approach
// XXX: Error handling and recovery without watchdog timer.
// XXX: Implement I2C_vect ISR? This may not actually be
// much better than the blocking approach.
static void I2C_AHT20_Reset(void);
static bool I2C_AHT20_IsCalibrated(void);

View File

@@ -1,6 +1,9 @@
#include "common.h"
#include "bus/mosfet.h"
// XXX: This might be too much specificity for something where
// a generic digital output implementation would be adequate.
int MOS_Init(void)
{
// PB0: MOSFET #1 Peltier