
updated version with parameters loaded from sdcard
Dependencies: F7_Ethernet mbed MbedJSONValue LCD_DISCO_F746NG mbed-rtos BSP_DISCO_F746NG CANMsg NetworkAPI SDFileSystem_Warning_Fixed GroveStreamsmodified LcdDiscoF746NgTracer JSON
ManageBufferJPA.h.py@3:2de8e4771674, 2020-09-02 (annotated)
- Committer:
- jeanpierreaulas
- Date:
- Wed Sep 02 12:54:45 2020 +0000
- Branch:
- jpa
- Revision:
- 3:2de8e4771674
Ethernet ok, Display OK, CAN Ok, SerialUSB OK
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jeanpierreaulas | 3:2de8e4771674 | 1 | #ifndef MANAGEBUFFERJPA_H |
jeanpierreaulas | 3:2de8e4771674 | 2 | #define MANAGEBUFFERJPA_H |
jeanpierreaulas | 3:2de8e4771674 | 3 | |
jeanpierreaulas | 3:2de8e4771674 | 4 | void initSerial(); |
jeanpierreaulas | 3:2de8e4771674 | 5 | void pc_recv(); |
jeanpierreaulas | 3:2de8e4771674 | 6 | |
jeanpierreaulas | 3:2de8e4771674 | 7 | // serial port sur connecteur arduino (D0,D1)-------------------- |
jeanpierreaulas | 3:2de8e4771674 | 8 | extern Serial pc(USBTX, USBRX); // serial PC |
jeanpierreaulas | 3:2de8e4771674 | 9 | extern Serial serial2(PC_6, PC_7); // TX, RX for udp bridge |
jeanpierreaulas | 3:2de8e4771674 | 10 | extern Serial serial7(PF_7, PF_6); // TX, RX for extension |
jeanpierreaulas | 3:2de8e4771674 | 11 | |
jeanpierreaulas | 3:2de8e4771674 | 12 | const int kMaxBufferSize = 100; |
jeanpierreaulas | 3:2de8e4771674 | 13 | char buffer[kMaxBufferSize]; |
jeanpierreaulas | 3:2de8e4771674 | 14 | int len = 0; |
jeanpierreaulas | 3:2de8e4771674 | 15 | int i = 0; |
jeanpierreaulas | 3:2de8e4771674 | 16 | int idx_ser =0; |
jeanpierreaulas | 3:2de8e4771674 | 17 | int recv_ser = 0; |
jeanpierreaulas | 3:2de8e4771674 | 18 | |
jeanpierreaulas | 3:2de8e4771674 | 19 | #endif //MANAGEBUFFERJPA_H |