Home
last modified time | relevance | path

Searched refs:usart (Results 1 – 6 of 6) sorted by relevance

/device/google/contexthub/firmware/src/platform/stm32f4xx/
Dusart.c85 void usartOpen(struct usart* __restrict usart, UsartPort port, in usartOpen() argument
95 struct StmUsart *block = (struct StmUsart*)mUsartPorts[usart->unit = --port]; in usartOpen()
100 usart->rx = gpioRequest(rxGpioNum); /* rx */ in usartOpen()
101 gpioConfigAlt(usart->rx, GPIO_SPEED_LOW, GPIO_PULL_UP, GPIO_OUT_PUSH_PULL, mUsartAlt[port]); in usartOpen()
102 usart->tx = gpioRequest(txGpioNum); /* tx */ in usartOpen()
103 gpioConfigAlt(usart->tx, GPIO_SPEED_LOW, GPIO_PULL_UP, GPIO_OUT_PUSH_PULL, mUsartAlt[port]); in usartOpen()
132 void usartClose(const struct usart* __restrict usart) in usartClose() argument
134 struct StmUsart *block = (struct StmUsart*)mUsartPorts[usart->unit]; in usartClose()
140 pwrUnitClock(mUsartBusses[usart->unit], mUsartPeriphs[usart->unit], false); in usartClose()
143 gpioRelease(usart->rx); in usartClose()
[all …]
Dplatform.c100 static struct usart mDbgUart;
/device/google/contexthub/firmware/inc/
Dusart.h27 struct usart;
60 void usartOpen(struct usart* __restrict usart, UsartPort port, /* port number is 1-based!!!!! */
65 void usartClose(const struct usart* __restrict usart);
66 void usartPutchat(const struct usart* __restrict usart, char c);
/device/google/contexthub/firmware/inc/platform/linux/
Dusart.h26 struct usart struct
/device/google/contexthub/firmware/inc/platform/stm32f4xx/
Dusart.h27 struct usart struct
/device/google/contexthub/firmware/misc/platform/stm32f4xx/
DMakefile41 src/platform/$(PLATFORM)/usart.c \