Home | History | Annotate | Download | only in tools

Lines Matching defs:csr

515  * CSR specific initialization
520 static int csr(int fd, struct uart_t *u, struct termios *ti)
529 /* It seems that if we set the CSR UART speed straight away, it
530 * won't work, the CSR UART gets into a state where we can't talk
532 * On the other hand, doing a read before setting the CSR speed
535 * debugging) and only then set the CSR UART speed. Doing like
537 * The CSR UART control may be slow to wake up or something because
541 /* Try to read the build ID of the CSR chip */
545 cmd[1] = 0x00; /* CSR command */
548 /* CSR MSG header */
550 /* CSR BCC header */
562 /* CSR BCC payload */
588 fprintf(stderr, "Reading CSR build ID %d [%s]\n", rlen, temp + 1);
594 fprintf(stderr, "CSR build ID 0x%02X-0x%02X\n",
597 /* Try to read the current speed of the CSR chip */
601 /* -- CSR BCC header -- */
631 fprintf(stderr, "Reading CSR UART speed %d [%s]\n", rlen, temp+1);
649 /* CSR BCC header */
669 fprintf(stderr, "Writing CSR UART speed %d [%s]\n", clen, temp + 1);
676 /* Send the command to set the CSR UART speed */
1054 /* CSR Casira serial adapter or BrainBoxes serial dongle (BL642) */
1055 { "csr", 0x0000, 0x0000, HCI_UART_H4, 115200, 115200,
1056 FLOW_CTL, DISABLE_PM, NULL, csr },
1060 FLOW_CTL, DISABLE_PM, NULL, csr },
1111 FLOW_CTL, DISABLE_PM, NULL, csr },
1115 FLOW_CTL, DISABLE_PM, NULL, csr },