Skip to content

Commit

Permalink
REFACTOR: improve file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
T-K-233 committed Apr 24, 2024
1 parent 8615866 commit 4b4f339
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __LL_GPIO_H
#define __LL_GPIO_H
#ifndef __GPIO_H
#define __GPIO_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -34,4 +34,4 @@ typedef struct {
}
#endif

#endif /* __LL_GPIO_H */
#endif /* __GPIO_H */
2 changes: 1 addition & 1 deletion drivers/rocket-chip-blocks/gpio/hal_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern "C" {
#endif

#include "rv_common.h"
#include "ll_gpio.h"
#include "gpio.h"


typedef enum {
Expand Down
2 changes: 1 addition & 1 deletion drivers/rocket-chip-blocks/i2c/hal_i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __LL_I2C_H
#define __LL_I2C_H
#ifndef __I2C_H
#define __I2C_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -43,4 +43,4 @@ typedef struct {
}
#endif

#endif /* __LL_I2C_H */
#endif /* __I2C_H */
2 changes: 1 addition & 1 deletion drivers/rocket-chip-blocks/pwm/hal_pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extern "C" {
#endif

#include "rv_common.h"
#include "ll_pwm.h"
#include "pwm.h"


// struct pwm_config {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion drivers/rocket-chip-blocks/spi/hal_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extern "C" {
#endif

#include "rv_common.h"
#include "ll_spi.h"
#include "spi.h"

typedef enum {
SPI_MODE0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __LL_SPI_H
#define __LL_SPI_H
#ifndef __SPI_H
#define __SPI_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -82,4 +82,4 @@ typedef struct {
}
#endif

#endif /* __LL_SPI_H */
#endif /* __SPI_H */
2 changes: 1 addition & 1 deletion drivers/rocket-chip-blocks/uart/hal_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern "C" {
#endif

#include "rv_common.h"
#include "ll_uart.h"
#include "uart.h"

typedef enum {
UART_MODE_RX = 0x01,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __LL_UART_H
#define __LL_UART_H
#ifndef __UART_H
#define __UART_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -54,4 +54,4 @@ typedef struct {
}
#endif

#endif /* __LL_UART_H */
#endif /* __UART_H */

0 comments on commit 4b4f339

Please sign in to comment.