Changeset 16


Ignore:
Timestamp:
03/06/2007 06:19:44 PM (5 years ago)
Author:
agr
Message:

uart fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nano-RK/src/platform/firefly2/source/ulib.c

    r1 r16  
    209209} 
    210210 
     211void setup_uart1(uint16_t baudrate) 
     212{ 
     213//INIT_UART1( UART_BAUDRATE_115K2, (UART_OPT_NO_PARITY|UART_OPT_8_BITS_PER_CHAR|UART_OPT_ONE_STOP_BIT)); 
     214INIT_UART1( baudrate, (UART_OPT_NO_PARITY|UART_OPT_8_BITS_PER_CHAR|UART_OPT_ONE_STOP_BIT)); 
     215ENABLE_UART1(); 
     216} 
    211217 
    212218/** 
     
    235241} 
    236242 
    237 void setup_uart1(uint16_t baudrate) 
    238 { 
    239 //INIT_UART1( UART_BAUDRATE_115K2, (UART_OPT_NO_PARITY|UART_OPT_8_BITS_PER_CHAR|UART_OPT_ONE_STOP_BIT)); 
    240 INIT_UART1( baudrate, (UART_OPT_NO_PARITY|UART_OPT_8_BITS_PER_CHAR|UART_OPT_ONE_STOP_BIT)); 
    241 ENABLE_UART1(); 
    242 } 
    243243 
    244244 
Note: See TracChangeset for help on using the changeset viewer.