diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-10-21 11:25:37 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-10-21 11:25:37 +0200 |
commit | 89fbecf2f6cdc61e0a4b4e53f9c0fdd763a328c8 (patch) | |
tree | a43f494acd3f03d6639fcf00399f1600e5db429e /sw | |
parent | 1b6b097ced956c399fab05979eaaca1e3aeaa687 (diff) | |
download | glutte-batteries-89fbecf2f6cdc61e0a4b4e53f9c0fdd763a328c8.tar.gz glutte-batteries-89fbecf2f6cdc61e0a4b4e53f9c0fdd763a328c8.tar.bz2 glutte-batteries-89fbecf2f6cdc61e0a4b4e53f9c0fdd763a328c8.zip |
Add minor remarks and comments in sw
Diffstat (limited to 'sw')
-rw-r--r-- | sw/README.rst | 4 | ||||
-rw-r--r-- | sw/main.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sw/README.rst b/sw/README.rst index abdcd91..5232b93 100644 --- a/sw/README.rst +++ b/sw/README.rst @@ -11,7 +11,8 @@ Au démarrage, avant de passer à la mesure régulière, le code doit: - Mettre en place un watchdog - Initialiser UART (uniquement TX, on verra si on a besoin du RX plus tard) -Protocole du port série: +Protocole du port série +----------------------- Chaque message commence par un identificateur, suivi d'une virgule, du temps en secondes, une virgule, un champ de données, et termine par CR LF. @@ -30,6 +31,7 @@ TODO - Definir le comportement par defaut au démarrage, pas de glitch! - Configurer SPI pour LTC2400 + - Le code exemple utilise arduino et Wire.h - Initialiser entrées analogiques - Initialiser DS18B20 diff --git a/sw/main.cpp b/sw/main.cpp index 562c4e6..712adc0 100644 --- a/sw/main.cpp +++ b/sw/main.cpp @@ -210,6 +210,8 @@ int main() DDRC = PINC_OUTPUTS; DDRD = PIND_OUTPUTS; + // Warning: Bi-stable relays are still in unknown state! + /* Setup UART */ uart_init(UART_BAUD_SELECT(9600, F_CPU)); if (mcusr_mirror & WDRF) { |