From 307b8e54538d95f773134333d295956a0221676e Mon Sep 17 00:00:00 2001 From: Anton Staaf Date: Tue, 26 Apr 2016 09:56:40 -0700 Subject: UART: Remove enable/disable interrupt functions These were not being used and complicate changes to the UART API. Signed-off-by: Anton Staaf BRANCH=None BUG=None TEST=make buildall -j Change-Id: I73e256f09f7ea72f0cc4831cc7ce391a7125e555 Reviewed-on: https://chromium-review.googlesource.com/340841 Commit-Ready: Anton Staaf Tested-by: Anton Staaf Reviewed-by: Aseda Aboagye --- chip/nrf51/uart.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'chip/nrf51/uart.c') diff --git a/chip/nrf51/uart.c b/chip/nrf51/uart.c index 90c1990541..ab52c6ad9a 100644 --- a/chip/nrf51/uart.c +++ b/chip/nrf51/uart.c @@ -80,17 +80,6 @@ int uart_read_char(void) return NRF51_UART_RXD; } -void uart_disable_interrupt(void) -{ - task_disable_irq(NRF51_PERID_USART); -} - -void uart_enable_interrupt(void) -{ - task_enable_irq(NRF51_PERID_USART); -} - - /* Interrupt handler for console USART */ void uart_interrupt(void) { @@ -122,7 +111,8 @@ void uart_init(void) NRF51_UART_BAUDRATE = 0x01d7e000; /* 115200 */ NRF51_UART_ENABLE = 0x4; /* Enable UART */ - uart_enable_interrupt(); + task_enable_irq(NRF51_PERID_USART); + NRF51_UART_INTENSET = (1 << NRF55_UART_RXDRDY_BIT); NRF51_UART_STARTRX = 1; -- cgit v1.2.1