From 4b4f339c3e3602ae2ceb585c86526897cdbc0209 Mon Sep 17 00:00:00 2001 From: "-T.K.-" Date: Wed, 24 Apr 2024 02:36:57 -0700 Subject: [PATCH] REFACTOR: improve file naming --- drivers/rocket-chip-blocks/gpio/{ll_gpio.h => gpio.h} | 6 +++--- drivers/rocket-chip-blocks/gpio/hal_gpio.h | 2 +- drivers/rocket-chip-blocks/i2c/hal_i2c.h | 2 +- drivers/rocket-chip-blocks/i2c/{ll_i2c.h => i2c.h} | 6 +++--- drivers/rocket-chip-blocks/pwm/hal_pwm.h | 2 +- drivers/rocket-chip-blocks/pwm/{ll_pwm.h => pwm.h} | 0 drivers/rocket-chip-blocks/spi/hal_spi.h | 2 +- drivers/rocket-chip-blocks/spi/{ll_spi.h => spi.h} | 6 +++--- drivers/rocket-chip-blocks/uart/hal_uart.h | 2 +- drivers/rocket-chip-blocks/uart/{ll_uart.h => uart.h} | 6 +++--- 10 files changed, 17 insertions(+), 17 deletions(-) rename drivers/rocket-chip-blocks/gpio/{ll_gpio.h => gpio.h} (95%) rename drivers/rocket-chip-blocks/i2c/{ll_i2c.h => i2c.h} (96%) rename drivers/rocket-chip-blocks/pwm/{ll_pwm.h => pwm.h} (100%) rename drivers/rocket-chip-blocks/spi/{ll_spi.h => spi.h} (97%) rename drivers/rocket-chip-blocks/uart/{ll_uart.h => uart.h} (97%) diff --git a/drivers/rocket-chip-blocks/gpio/ll_gpio.h b/drivers/rocket-chip-blocks/gpio/gpio.h similarity index 95% rename from drivers/rocket-chip-blocks/gpio/ll_gpio.h rename to drivers/rocket-chip-blocks/gpio/gpio.h index 9b03c42..96cc7a7 100644 --- a/drivers/rocket-chip-blocks/gpio/ll_gpio.h +++ b/drivers/rocket-chip-blocks/gpio/gpio.h @@ -1,5 +1,5 @@ -#ifndef __LL_GPIO_H -#define __LL_GPIO_H +#ifndef __GPIO_H +#define __GPIO_H #ifdef __cplusplus extern "C" { @@ -34,4 +34,4 @@ typedef struct { } #endif -#endif /* __LL_GPIO_H */ +#endif /* __GPIO_H */ diff --git a/drivers/rocket-chip-blocks/gpio/hal_gpio.h b/drivers/rocket-chip-blocks/gpio/hal_gpio.h index dd2a53a..3f55fe0 100644 --- a/drivers/rocket-chip-blocks/gpio/hal_gpio.h +++ b/drivers/rocket-chip-blocks/gpio/hal_gpio.h @@ -16,7 +16,7 @@ extern "C" { #endif #include "rv_common.h" -#include "ll_gpio.h" +#include "gpio.h" typedef enum { diff --git a/drivers/rocket-chip-blocks/i2c/hal_i2c.h b/drivers/rocket-chip-blocks/i2c/hal_i2c.h index 22faa2d..b391054 100644 --- a/drivers/rocket-chip-blocks/i2c/hal_i2c.h +++ b/drivers/rocket-chip-blocks/i2c/hal_i2c.h @@ -16,7 +16,7 @@ extern "C" { #endif #include "rv_common.h" -#include "ll_i2c.h" +#include "i2c.h" typedef enum { I2C_FLAG_IF = I2C_STAT_CMD_IF_MSK, diff --git a/drivers/rocket-chip-blocks/i2c/ll_i2c.h b/drivers/rocket-chip-blocks/i2c/i2c.h similarity index 96% rename from drivers/rocket-chip-blocks/i2c/ll_i2c.h rename to drivers/rocket-chip-blocks/i2c/i2c.h index c2e6a32..c22eb36 100644 --- a/drivers/rocket-chip-blocks/i2c/ll_i2c.h +++ b/drivers/rocket-chip-blocks/i2c/i2c.h @@ -1,5 +1,5 @@ -#ifndef __LL_I2C_H -#define __LL_I2C_H +#ifndef __I2C_H +#define __I2C_H #ifdef __cplusplus extern "C" { @@ -43,4 +43,4 @@ typedef struct { } #endif -#endif /* __LL_I2C_H */ \ No newline at end of file +#endif /* __I2C_H */ \ No newline at end of file diff --git a/drivers/rocket-chip-blocks/pwm/hal_pwm.h b/drivers/rocket-chip-blocks/pwm/hal_pwm.h index dbd65f9..95dfc77 100644 --- a/drivers/rocket-chip-blocks/pwm/hal_pwm.h +++ b/drivers/rocket-chip-blocks/pwm/hal_pwm.h @@ -7,7 +7,7 @@ extern "C" { #endif #include "rv_common.h" -#include "ll_pwm.h" +#include "pwm.h" // struct pwm_config { diff --git a/drivers/rocket-chip-blocks/pwm/ll_pwm.h b/drivers/rocket-chip-blocks/pwm/pwm.h similarity index 100% rename from drivers/rocket-chip-blocks/pwm/ll_pwm.h rename to drivers/rocket-chip-blocks/pwm/pwm.h diff --git a/drivers/rocket-chip-blocks/spi/hal_spi.h b/drivers/rocket-chip-blocks/spi/hal_spi.h index 1e75e56..113e33b 100644 --- a/drivers/rocket-chip-blocks/spi/hal_spi.h +++ b/drivers/rocket-chip-blocks/spi/hal_spi.h @@ -7,7 +7,7 @@ extern "C" { #endif #include "rv_common.h" -#include "ll_spi.h" +#include "spi.h" typedef enum { SPI_MODE0, diff --git a/drivers/rocket-chip-blocks/spi/ll_spi.h b/drivers/rocket-chip-blocks/spi/spi.h similarity index 97% rename from drivers/rocket-chip-blocks/spi/ll_spi.h rename to drivers/rocket-chip-blocks/spi/spi.h index 025f555..578748f 100644 --- a/drivers/rocket-chip-blocks/spi/ll_spi.h +++ b/drivers/rocket-chip-blocks/spi/spi.h @@ -1,5 +1,5 @@ -#ifndef __LL_SPI_H -#define __LL_SPI_H +#ifndef __SPI_H +#define __SPI_H #ifdef __cplusplus extern "C" { @@ -82,4 +82,4 @@ typedef struct { } #endif -#endif /* __LL_SPI_H */ \ No newline at end of file +#endif /* __SPI_H */ \ No newline at end of file diff --git a/drivers/rocket-chip-blocks/uart/hal_uart.h b/drivers/rocket-chip-blocks/uart/hal_uart.h index 3e95f1c..c092269 100644 --- a/drivers/rocket-chip-blocks/uart/hal_uart.h +++ b/drivers/rocket-chip-blocks/uart/hal_uart.h @@ -16,7 +16,7 @@ extern "C" { #endif #include "rv_common.h" -#include "ll_uart.h" +#include "uart.h" typedef enum { UART_MODE_RX = 0x01, diff --git a/drivers/rocket-chip-blocks/uart/ll_uart.h b/drivers/rocket-chip-blocks/uart/uart.h similarity index 97% rename from drivers/rocket-chip-blocks/uart/ll_uart.h rename to drivers/rocket-chip-blocks/uart/uart.h index e4691cb..4e54f00 100644 --- a/drivers/rocket-chip-blocks/uart/ll_uart.h +++ b/drivers/rocket-chip-blocks/uart/uart.h @@ -1,5 +1,5 @@ -#ifndef __LL_UART_H -#define __LL_UART_H +#ifndef __UART_H +#define __UART_H #ifdef __cplusplus extern "C" { @@ -54,4 +54,4 @@ typedef struct { } #endif -#endif /* __LL_UART_H */ \ No newline at end of file +#endif /* __UART_H */ \ No newline at end of file