|
@@ -19,7 +19,7 @@
|
|
|
// production e.g. 320000 (10ms) (Validate that this is really the case!)
|
|
// production e.g. 320000 (10ms) (Validate that this is really the case!)
|
|
|
// should be large for debugging, (e.g. )
|
|
// should be large for debugging, (e.g. )
|
|
|
// small for production
|
|
// small for production
|
|
|
-#define MAINLOOP_DELAY (32000000*2)
|
|
|
|
|
|
|
+#define MAINLOOP_DELAY (3200000)
|
|
|
|
|
|
|
|
// i2c address for acting as target
|
|
// i2c address for acting as target
|
|
|
// (based on the GPIO 1 integer is added)
|
|
// (based on the GPIO 1 integer is added)
|
|
@@ -47,13 +47,13 @@
|
|
|
#define DEBUG_CTRL 1
|
|
#define DEBUG_CTRL 1
|
|
|
|
|
|
|
|
// printf trace: put also the transition messages
|
|
// printf trace: put also the transition messages
|
|
|
-#define DEBUG_TRACE_CTRL 1
|
|
|
|
|
|
|
+//#define DEBUG_TRACE_CTRL 1
|
|
|
|
|
|
|
|
// printf i2c errors
|
|
// printf i2c errors
|
|
|
#define DEBUG_I2C_ERR 1
|
|
#define DEBUG_I2C_ERR 1
|
|
|
|
|
|
|
|
// printf i2c traffic (tx)
|
|
// printf i2c traffic (tx)
|
|
|
-#define DEBUG_I2C_TX 1
|
|
|
|
|
|
|
+//#define DEBUG_I2C_TX 1
|
|
|
|
|
|
|
|
// printf target i2c interrupts (where the mcu is the i2c target)
|
|
// printf target i2c interrupts (where the mcu is the i2c target)
|
|
|
#define DEBUG_TARGET 1
|
|
#define DEBUG_TARGET 1
|
|
@@ -88,7 +88,7 @@
|
|
|
// ensure that the measurement is ready. (set the define to 0 if it should be one-shot)
|
|
// ensure that the measurement is ready. (set the define to 0 if it should be one-shot)
|
|
|
// (it could be the case that the channel is switched and wrong data is fetched)
|
|
// (it could be the case that the channel is switched and wrong data is fetched)
|
|
|
#define ADC_MEASUREMENT_IS_CONTINUOUS 1
|
|
#define ADC_MEASUREMENT_IS_CONTINUOUS 1
|
|
|
-#define ADC_CONTINUOUS_DELAY_CYCLES (32000) // 32000 is 1ms (32MHz clock)
|
|
|
|
|
|
|
+#define ADC_CONTINUOUS_DELAY_CYCLES (320000) // 32000 is 1ms (32MHz clock)
|
|
|
|
|
|
|
|
// Packet buffer sizes for RX and TX for the
|
|
// Packet buffer sizes for RX and TX for the
|
|
|
// controller mode only
|
|
// controller mode only
|