![](/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@109:a5b8264ffbbc, 2015-04-07 (annotated)
- Committer:
- klauss
- Date:
- Tue Apr 07 14:27:44 2015 +0000
- Revision:
- 109:a5b8264ffbbc
- Parent:
- 105:a930035b6556
- Child:
- 113:db67ae00550e
bl wip
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 | 72:895ca792c647 | 4 | #include <stdint.h> |
klauss | 72:895ca792c647 | 5 | #include "mbed.h" |
klauss | 72:895ca792c647 | 6 | #include "bits.h" |
klauss | 74:81c47fff88a5 | 7 | #include "ring_buffer.h" |
klauss | 72:895ca792c647 | 8 | #include "debug.h" |
klauss | 74:81c47fff88a5 | 9 | #include "utils.h" |
klauss | 74:81c47fff88a5 | 10 | #include "vz_protocol.h" |
klauss | 99:e80850c51106 | 11 | #include "fw.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 | 109:a5b8264ffbbc | 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 | 109:a5b8264ffbbc | 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 | 74:81c47fff88a5 | 27 | void tx_buffer_ring_buffer_handler( void ); |
klauss | 74:81c47fff88a5 | 28 | |
klauss | 74:81c47fff88a5 | 29 | extern DigitalOut data0; //LSB |
klauss | 74:81c47fff88a5 | 30 | extern DigitalOut data1; |
klauss | 74:81c47fff88a5 | 31 | extern DigitalOut data2; |
klauss | 74:81c47fff88a5 | 32 | extern DigitalOut data3; |
klauss | 74:81c47fff88a5 | 33 | extern DigitalOut data4; |
klauss | 74:81c47fff88a5 | 34 | extern DigitalOut data5; |
klauss | 74:81c47fff88a5 | 35 | extern DigitalOut data6; |
klauss | 74:81c47fff88a5 | 36 | extern DigitalOut data7; //MSB |
klauss | 74:81c47fff88a5 | 37 | |
klauss | 74:81c47fff88a5 | 38 | extern DigitalOut DataReady; |
klauss | 74:81c47fff88a5 | 39 | ///<IO 27 |
klauss | 0:4d17cd9c8f9d | 40 | |
klauss | 109:a5b8264ffbbc | 41 | extern DigitalOut hw_extern_wdt; |
klauss | 109:a5b8264ffbbc | 42 | |
klauss | 99:e80850c51106 | 43 | extern Timer delay_to_send_to_cbx; |
klauss | 99:e80850c51106 | 44 | |
klauss | 0:4d17cd9c8f9d | 45 | #endif |