![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Versao com problema no socket rx
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
configs.h@0:4d17cd9c8f9d, 2014-09-09 (annotated)
- Committer:
- klauss
- Date:
- Tue Sep 09 20:01:24 2014 +0000
- Revision:
- 0:4d17cd9c8f9d
20140726 copy
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 0:4d17cd9c8f9d | 1 | #ifndef _CONFIGS_H |
klauss | 0:4d17cd9c8f9d | 2 | #define _CONFIGS_H |
klauss | 0:4d17cd9c8f9d | 3 | #include "mbed.h" |
klauss | 0:4d17cd9c8f9d | 4 | |
klauss | 0:4d17cd9c8f9d | 5 | #define DATA_SIZE 300 |
klauss | 0:4d17cd9c8f9d | 6 | |
klauss | 0:4d17cd9c8f9d | 7 | extern DigitalOut led1; |
klauss | 0:4d17cd9c8f9d | 8 | extern DigitalOut led2; |
klauss | 0:4d17cd9c8f9d | 9 | extern DigitalOut led3; |
klauss | 0:4d17cd9c8f9d | 10 | extern DigitalOut led4; |
klauss | 0:4d17cd9c8f9d | 11 | |
klauss | 0:4d17cd9c8f9d | 12 | extern DigitalOut DataReady; //IO 27 |
klauss | 0:4d17cd9c8f9d | 13 | |
klauss | 0:4d17cd9c8f9d | 14 | extern DigitalOut data0; //LSB |
klauss | 0:4d17cd9c8f9d | 15 | extern DigitalOut data1; |
klauss | 0:4d17cd9c8f9d | 16 | extern DigitalOut data2; |
klauss | 0:4d17cd9c8f9d | 17 | extern DigitalOut data3; |
klauss | 0:4d17cd9c8f9d | 18 | extern DigitalOut data4; |
klauss | 0:4d17cd9c8f9d | 19 | extern DigitalOut data5; |
klauss | 0:4d17cd9c8f9d | 20 | extern DigitalOut data6; |
klauss | 0:4d17cd9c8f9d | 21 | extern DigitalOut data7; //MSB |
klauss | 0:4d17cd9c8f9d | 22 | |
klauss | 0:4d17cd9c8f9d | 23 | extern InterruptIn NextData; //IO 96 |
klauss | 0:4d17cd9c8f9d | 24 | extern InterruptIn FrameSync; |
klauss | 0:4d17cd9c8f9d | 25 | //Ticker ticker; // Timer para Debug |
klauss | 0:4d17cd9c8f9d | 26 | |
klauss | 0:4d17cd9c8f9d | 27 | extern DigitalOut RST; // Pino de reset para o CPLD |
klauss | 0:4d17cd9c8f9d | 28 | extern DigitalIn PPD; // Pino de conexao com o cristal do CPLD |
klauss | 0:4d17cd9c8f9d | 29 | |
klauss | 0:4d17cd9c8f9d | 30 | extern DigitalOut ENABLE_F_REG; // Configuracao da Alimentacao do CPLD |
klauss | 0:4d17cd9c8f9d | 31 | extern DigitalOut ENABLE_F_RX; |
klauss | 0:4d17cd9c8f9d | 32 | extern DigitalOut ENABLE_F_TX; |
klauss | 0:4d17cd9c8f9d | 33 | |
klauss | 0:4d17cd9c8f9d | 34 | extern Serial Uart3; // default baudrate = 9600; Sem paridade, 8bits, 1 stop-bit |
klauss | 0:4d17cd9c8f9d | 35 | extern Serial pc ; |
klauss | 0:4d17cd9c8f9d | 36 | |
klauss | 0:4d17cd9c8f9d | 37 | void start_cpld( void ); |
klauss | 0:4d17cd9c8f9d | 38 | void config_lpc( void ); |
klauss | 0:4d17cd9c8f9d | 39 | void uart3_puts(uint8_t *src, uint16_t size); |
klauss | 0:4d17cd9c8f9d | 40 | void uart0_puts( uint8_t *src ); |
klauss | 0:4d17cd9c8f9d | 41 | void uart0_text( const char* src); |
klauss | 0:4d17cd9c8f9d | 42 | void uart0_putsx(volatile uint8_t *src ); |
klauss | 0:4d17cd9c8f9d | 43 | void xmemcpy(uint8_t * dest, uint8_t * src, uint16_t size); |
klauss | 0:4d17cd9c8f9d | 44 | |
klauss | 0:4d17cd9c8f9d | 45 | |
klauss | 0:4d17cd9c8f9d | 46 | #endif |