Changeset 16
- Timestamp:
- 03/06/2007 06:19:44 PM (5 years ago)
- File:
-
- 1 edited
-
nano-RK/src/platform/firefly2/source/ulib.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nano-RK/src/platform/firefly2/source/ulib.c
r1 r16 209 209 } 210 210 211 void 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)); 214 INIT_UART1( baudrate, (UART_OPT_NO_PARITY|UART_OPT_8_BITS_PER_CHAR|UART_OPT_ONE_STOP_BIT)); 215 ENABLE_UART1(); 216 } 211 217 212 218 /** … … 235 241 } 236 242 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 }243 243 244 244
Note: See TracChangeset
for help on using the changeset viewer.
