![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
parallelcpld.h@121:ee02790d00b7, 2015-05-08 (annotated)
- Committer:
- klauss
- Date:
- Fri May 08 04:15:23 2015 +0000
- Revision:
- 121:ee02790d00b7
- Parent:
- 120:770f00554b1e
- Child:
- 126:1f90756250fb
compiling
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 74:81c47fff88a5 | 1 | #ifndef __PARALLELCPLD_H__ |
klauss | 74:81c47fff88a5 | 2 | #define __PARALLELCPLD_H__ |
klauss | 72:895ca792c647 | 3 | |
klauss | 121:ee02790d00b7 | 4 | #include "ring_buffer.h" |
klauss | 72:895ca792c647 | 5 | #include "bits.h" |
klauss | 72:895ca792c647 | 6 | #include "debug.h" |
klauss | 121:ee02790d00b7 | 7 | #include "vz_protocol.h" |
klauss | 74:81c47fff88a5 | 8 | #include "utils.h" |
klauss | 99:e80850c51106 | 9 | #include "fw.h" |
klauss | 121:ee02790d00b7 | 10 | #include "flood.h" |
klauss | 121:ee02790d00b7 | 11 | #include "file_system_manager.h" |
klauss | 74:81c47fff88a5 | 12 | |
klauss | 74:81c47fff88a5 | 13 | //alguém explica por que eu nao consido deixar esse cara como extern ??? |
klauss | 74:81c47fff88a5 | 14 | extern ring_buffer * rb; |
klauss | 0:4d17cd9c8f9d | 15 | |
klauss | 119:ee6a53069455 | 16 | extern uint8_t TXBuffer[ CB_BUFFER_SIZE ]; |
klauss | 74:81c47fff88a5 | 17 | ///<UART3 TX Buffer -- Buffer de transmissao para o CPLD |
klauss | 0:4d17cd9c8f9d | 18 | extern uint8_t tx_clear; |
klauss | 0:4d17cd9c8f9d | 19 | |
klauss | 119:ee6a53069455 | 20 | extern uint8_t cb_tx_buffer[ CB_BUFFER_SIZE ]; |
klauss | 74:81c47fff88a5 | 21 | ///< Armazena o ultimo pacote enviado para os CBx |
klauss | 74:81c47fff88a5 | 22 | |
klauss | 0:4d17cd9c8f9d | 23 | void parallel_write( uint8_t data); |
klauss | 74:81c47fff88a5 | 24 | //void send2callboxes(); |
klauss | 74:81c47fff88a5 | 25 | void send2callboxes( uint8_t * buffer ); |
klauss | 0:4d17cd9c8f9d | 26 | void get2(); |
klauss | 120:770f00554b1e | 27 | /* rotina que esvazia possiveis pacotes que não foram transmitidos para evitar conflito */ |
klauss | 74:81c47fff88a5 | 28 | void tx_buffer_ring_buffer_handler( void ); |
klauss | 74:81c47fff88a5 | 29 | |
klauss | 74:81c47fff88a5 | 30 | extern DigitalOut data0; //LSB |
klauss | 74:81c47fff88a5 | 31 | extern DigitalOut data1; |
klauss | 74:81c47fff88a5 | 32 | extern DigitalOut data2; |
klauss | 74:81c47fff88a5 | 33 | extern DigitalOut data3; |
klauss | 74:81c47fff88a5 | 34 | extern DigitalOut data4; |
klauss | 74:81c47fff88a5 | 35 | extern DigitalOut data5; |
klauss | 74:81c47fff88a5 | 36 | extern DigitalOut data6; |
klauss | 74:81c47fff88a5 | 37 | extern DigitalOut data7; //MSB |
klauss | 74:81c47fff88a5 | 38 | |
klauss | 74:81c47fff88a5 | 39 | extern DigitalOut DataReady; |
klauss | 74:81c47fff88a5 | 40 | ///<IO 27 |
klauss | 0:4d17cd9c8f9d | 41 | |
klauss | 109:a5b8264ffbbc | 42 | extern DigitalOut hw_extern_wdt; |
klauss | 109:a5b8264ffbbc | 43 | |
klauss | 99:e80850c51106 | 44 | extern Timer delay_to_send_to_cbx; |
klauss | 99:e80850c51106 | 45 | |
klauss | 0:4d17cd9c8f9d | 46 | #endif |