Consolidate unfinished tasks and update documentation
This commit is contained in:
@@ -14,12 +14,6 @@
|
||||
#define TW_MR_SLA_NACK 0x48 // SLA+R transmitted, NACK received
|
||||
#define TW_MR_DATA_ACK 0x50 // Data received, ACK returned
|
||||
|
||||
// TODO: Error handling and recovery besides watchdog timer.
|
||||
// TODO: Add more documentation from the atmel data sheet.
|
||||
// TODO: ADS1115 continuous mode instead of single-shot?
|
||||
// TODO: Implement TWI_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);
|
||||
static void I2C_AHT20_Calibrate(void);
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#include "common.h"
|
||||
#include "bus/pwm.h"
|
||||
|
||||
// TODO: Add documentation for timer3: TCCR3A, TCCR3B, etc.
|
||||
|
||||
int PWM_Init(void)
|
||||
{
|
||||
// PD4: PWM NF-12 Fan Peltier Hot Side
|
||||
@@ -102,7 +100,6 @@ void PWM_SetValue(int port, int value)
|
||||
if (port != FAN01 && port != FAN02 && port != FAN03)
|
||||
return; // Invalid port
|
||||
|
||||
// Workaround: Missing third 16-bit timer output
|
||||
n = CLAMP(value, 100, 0) * PWM_CYCLE_TOP / 100.0f;
|
||||
|
||||
Info("Setting duty cycle for %s to %d/%d...",
|
||||
|
||||
@@ -6,11 +6,6 @@
|
||||
|
||||
#define CMD_MAX_LEN 128
|
||||
|
||||
// TODO: Write documentation.
|
||||
// TODO: Reset command buffer on timeout.
|
||||
// TODO: Test with different RXBUF sizes.
|
||||
// TODO: Add commands update, start and stop.
|
||||
|
||||
static char cmdbuf[CMD_MAX_LEN + 1];
|
||||
static char *tail = cmdbuf + CMD_MAX_LEN;
|
||||
static char *head = cmdbuf;
|
||||
|
||||
11
src/main.c
11
src/main.c
@@ -6,17 +6,6 @@
|
||||
|
||||
#include <avr/interrupt.h>
|
||||
|
||||
// TODO: Facilitate software updates over serial port.
|
||||
// TODO: Check parser and circular buffer for edge cases.
|
||||
// TODO: Implement command parser timeout for large input.
|
||||
// TODO: Config header for chip specifics like EEPROM size.
|
||||
// TODO: Check thermistor conversion results /w thermometer.
|
||||
// TODO: Implement primary state machine for update loop.
|
||||
// TODO: Use 18.432MHz quarz crystal, burn required fuses.
|
||||
// TODO: Implement optional CRC8 sensor measurement check.
|
||||
// TODO: Proper error handling and recovery (after testing).
|
||||
// TODO: Check why the MCUCSR EXTRF reset flag is set.
|
||||
|
||||
enum state_e
|
||||
{
|
||||
S_IDLE,
|
||||
|
||||
Reference in New Issue
Block a user