MCPcopy Create free account
hub / github.com/Santroller/Santroller / disable_interrupts

Method disable_interrupts

lib/peripherals/uart.cpp:144–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void UARTInterface::disable_interrupts()
145{
146 printf("disable interrupts uart\r\n");
147 if (uart == uart0)
148 {
149 irq_set_enabled(UART0_IRQ, false);
150 uart_set_irqs_enabled(uart, false, false);
151 running_0 = false;
152 }
153 if (uart == uart1)
154 {
155 irq_set_enabled(UART1_IRQ, false);
156 uart_set_irqs_enabled(uart, false, false);
157 running_1 = false;
158 }
159}
160
161bool UARTInterface::send(uint8_t *data, uint8_t size)
162{

Callers 4

endMethod · 0.80
endMethod · 0.80
readflashMethod · 0.80
update_firmwareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected