Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: configs.cpp
- Revision:
- 114:472502b31a12
- Parent:
- 113:db67ae00550e
- Child:
- 116:39a41ebb675c
--- a/configs.cpp Thu Apr 16 12:57:13 2015 +0000 +++ b/configs.cpp Mon Apr 20 14:40:09 2015 +0000 @@ -18,8 +18,7 @@ Serial Uart3(p9,p10); // default baudrate = 9600; Sem paridade, 8bits, 1 stop-bit -void start_cpld( void ) { - //CPLD Start +void start_cpld( void ) { //CPLD Start static uint16_t reset = 10000; ENABLE_F_REG = 1; ENABLE_F_TX = 1; @@ -32,28 +31,15 @@ ///< Configure LPC4088 void config_lpc( void ){ - // UART3_IRQ configuration - Uart3.attach(&SerialRecvInterrupt, Uart3.RxIrq); - - // UART3 mode configuration - Uart3.format(8,SerialBase::Forced1,1); - + Uart3.attach(&SerialRecvInterrupt, Uart3.RxIrq); // UART3_IRQ configuration + Uart3.format(8,SerialBase::Forced1,1); // UART3 mode configuration Uart3.baud(2000000); - - NVIC_SetPriority(UART3_IRQn,1); - - // USART to PC USB USART - pc.baud(115200); - - // Extern Pin Interrupt - NextData.rise(&get2); - - // FrameSync for RX - Interrupt - FrameSync.rise(&RXFrameSync); - + NVIC_SetPriority(UART3_IRQn,1); + pc.baud(115200); // USART to PC USB USART + NextData.rise(&get2); // Extern Pin Interrupt + FrameSync.rise(&RXFrameSync); // FrameSync for RX - Interrupt __enable_irq(); - - // iniciando o pin de controle do arduino + //ticker.attach(&timer,0.01); // Timer para Debug hw_extern_wdt = 0; }