From dc4e289f64ec7befe46ab252694cabf6988f1d0e Mon Sep 17 00:00:00 2001 From: Abdullah Bagyapan Date: Fri, 19 Apr 2024 20:50:10 +0300 Subject: [PATCH] delete(uart):unused module --- uart/CMakeLists.txt | 5 ---- uart/uart.c | 42 ---------------------------- uart/uart.h | 67 --------------------------------------------- 3 files changed, 114 deletions(-) delete mode 100644 uart/CMakeLists.txt delete mode 100644 uart/uart.c delete mode 100644 uart/uart.h diff --git a/uart/CMakeLists.txt b/uart/CMakeLists.txt deleted file mode 100644 index 0478337..0000000 --- a/uart/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -file(GLOB FILES *.c *.h) - -add_library(uart ${FILES}) - -target_link_libraries(uart pico_stdlib) diff --git a/uart/uart.c b/uart/uart.c deleted file mode 100644 index 9f225b2..0000000 --- a/uart/uart.c +++ /dev/null @@ -1,42 +0,0 @@ -/* - @module: UART - @author: Abdullah Bagyapan - @date: 19/04/2024 -*/ - -/*================================== Libraries ==================================*/ - - -#include "uart.h" - -#include "pico/stdlib.h" - - -/*================================== Functions ==================================*/ - - - -void UART_Init(void) { - - // Set UART instance and baudrate - uart_init(UART_DEFAULT_INSTANCE, UART_BAUDRATE); - - // set gpio 0 & 1 pins as UART - gpio_set_function(UART_TX_PIN, GPIO_FUNC_UART); - gpio_set_function(UART_RX_PIN, GPIO_FUNC_UART); - -} - - -void UART_PutChar(uint8_t ui8Data) { - - uart_putc(UART_DEFAULT_INSTANCE, ui8Data); - -} - - -void UART_PutString(char *ui8pData) { - - uart_puts(UART_DEFAULT_INSTANCE, ui8pData); - -} \ No newline at end of file diff --git a/uart/uart.h b/uart/uart.h deleted file mode 100644 index fa38bc4..0000000 --- a/uart/uart.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - @module: UART - @author: Abdullah Bagyapan - @date: 18/04/2024 -*/ - -/*================================== Libraries ==================================*/ - - -#include "stdint.h" -#include "pico/stdlib.h" - - -/*================================== Defined Variables ==================================*/ - - -#define UART_DEFAULT_INSTANCE uart0 -#define UART_BAUDRATE 115200 - -#define UART_TX_PIN 0 -#define UART_RX_PIN 1 - - -/*================================== Functions ==================================*/ - - -/* - @brief: Initialize UART - - @author Abdullah Bagyapan - - @date 18/04/2024 - - @param None - - @return None -*/ -void UART_Init(void); - - - -/* - @brief: Transmit a byte data by UART - - @author Abdullah Bagyapan - - @date 18/04/2024 - - @param The 1 byte data - - @return None -*/ -void UART_PutChar(uint8_t ui8Data); - - -/* - @brief: Transmit string data by UART - - @author Abdullah Bagyapan - - @date 19/04/2024 - - @param The string data - - @return None -*/ -void UART_PutString(char *ui8pData); \ No newline at end of file