Activation of outputs using serial and user button on ticker interrupt

Dependencies:   mbed

Committer:
ggmero67
Date:
Thu Jun 05 18:41:34 2014 +0000
Revision:
6:63c1ee4fb6be
Rename SerialPort into PC_Com + find bug in write function

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ggmero67 6:63c1ee4fb6be 1 #pragma once
ggmero67 6:63c1ee4fb6be 2 #include "mbed.h"
ggmero67 6:63c1ee4fb6be 3 #include <string>
ggmero67 6:63c1ee4fb6be 4 #include <vector>
ggmero67 6:63c1ee4fb6be 5
ggmero67 6:63c1ee4fb6be 6 namespace PC_Com
ggmero67 6:63c1ee4fb6be 7 {
ggmero67 6:63c1ee4fb6be 8
ggmero67 6:63c1ee4fb6be 9 bool Init(void);
ggmero67 6:63c1ee4fb6be 10 bool Kill(void);
ggmero67 6:63c1ee4fb6be 11 /**Blocking function that reads the serial port*/
ggmero67 6:63c1ee4fb6be 12 int Read(void);
ggmero67 6:63c1ee4fb6be 13 /**Writes something to the serial
ggmero67 6:63c1ee4fb6be 14 * Shall not be called during ISR
ggmero67 6:63c1ee4fb6be 15 */
ggmero67 6:63c1ee4fb6be 16 bool Write(std::string);
ggmero67 6:63c1ee4fb6be 17
ggmero67 6:63c1ee4fb6be 18 /** Converts a*/
ggmero67 6:63c1ee4fb6be 19 std::string ToString(int i);
ggmero67 6:63c1ee4fb6be 20
ggmero67 6:63c1ee4fb6be 21 int Split(std::vector<string>& vecteur, std::string chaine, char separateur);
ggmero67 6:63c1ee4fb6be 22
ggmero67 6:63c1ee4fb6be 23
ggmero67 6:63c1ee4fb6be 24 };