Skip to content

Commit

Permalink
Use term internal instead of private (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
abobija authored Sep 24, 2024
1 parent 161323b commit e0084d6
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ idf_component_register(
INCLUDE_DIRS
include
PRIV_INCLUDE_DIRS
private_include
internal
SRCS
src/rc522.c
src/rc522_helpers.c
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <driver/gpio.h>
#include "rc522_types_private.h"
#include "rc522_types_internal.h"
#include "rc522_driver.h"

#define RC522_DRIVER_HARD_RST_PIN_PWR_DOWN_LEVEL (0)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "rc522_types_private.h"
#include "rc522_types_internal.h"
#include "rc522_pcd.h"

#ifdef __cplusplus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "rc522_pcd_private.h"
#include "rc522_pcd_internal.h"
#include "rc522_picc.h"

#ifdef __cplusplus
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/driver/rc522_i2c.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <string.h>
#include "rc522_helpers_private.h"
#include "rc522_types_private.h"
#include "rc522_driver_private.h"
#include "rc522_helpers_internal.h"
#include "rc522_types_internal.h"
#include "rc522_driver_internal.h"
#include "driver/rc522_i2c.h"

RC522_LOG_DEFINE_BASE();
Expand Down
6 changes: 3 additions & 3 deletions src/driver/rc522_spi.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <string.h>
#include "rc522_helpers_private.h"
#include "rc522_types_private.h"
#include "rc522_driver_private.h"
#include "rc522_helpers_internal.h"
#include "rc522_types_internal.h"
#include "rc522_driver_internal.h"
#include "driver/rc522_spi.h"

RC522_LOG_DEFINE_BASE();
Expand Down
8 changes: 4 additions & 4 deletions src/picc/rc522_mifare.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <string.h>
#include "rc522_types_private.h"
#include "rc522_private.h"
#include "rc522_pcd_private.h"
#include "rc522_picc_private.h"
#include "rc522_types_internal.h"
#include "rc522_internal.h"
#include "rc522_pcd_internal.h"
#include "rc522_picc_internal.h"
#include "picc/rc522_mifare.h"

RC522_LOG_DEFINE_BASE();
Expand Down
10 changes: 5 additions & 5 deletions src/rc522.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#include <freertos/task.h>
#include <freertos/event_groups.h>

#include "rc522_pcd_private.h"
#include "rc522_picc_private.h"
#include "rc522_helpers_private.h"
#include "rc522_types_private.h"
#include "rc522_private.h"
#include "rc522_pcd_internal.h"
#include "rc522_picc_internal.h"
#include "rc522_helpers_internal.h"
#include "rc522_types_internal.h"
#include "rc522_internal.h"

RC522_LOG_DEFINE_BASE();

Expand Down
4 changes: 2 additions & 2 deletions src/rc522_driver.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <string.h>
#include <driver/gpio.h>
#include "rc522_types_private.h"
#include "rc522_driver_private.h"
#include "rc522_types_internal.h"
#include "rc522_driver_internal.h"

RC522_LOG_DEFINE_BASE();

Expand Down
4 changes: 2 additions & 2 deletions src/rc522_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>

#include "rc522_types_private.h"
#include "rc522_helpers_private.h"
#include "rc522_types_internal.h"
#include "rc522_helpers_internal.h"

RC522_LOG_DEFINE_BASE();

Expand Down
8 changes: 4 additions & 4 deletions src/rc522_pcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#include <esp_check.h>
#include <string.h>

#include "rc522_types_private.h"
#include "rc522_helpers_private.h"
#include "rc522_driver_private.h"
#include "rc522_pcd_private.h"
#include "rc522_types_internal.h"
#include "rc522_helpers_internal.h"
#include "rc522_driver_internal.h"
#include "rc522_pcd_internal.h"

RC522_LOG_DEFINE_BASE();

Expand Down
10 changes: 5 additions & 5 deletions src/rc522_picc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
#include <esp_check.h>
#include <string.h>

#include "rc522_private.h"
#include "rc522_types_private.h"
#include "rc522_helpers_private.h"
#include "rc522_pcd_private.h"
#include "rc522_picc_private.h"
#include "rc522_internal.h"
#include "rc522_types_internal.h"
#include "rc522_helpers_internal.h"
#include "rc522_pcd_internal.h"
#include "rc522_picc_internal.h"

RC522_LOG_DEFINE_BASE();

Expand Down
2 changes: 1 addition & 1 deletion test/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ idf_component_register(
INCLUDE_DIRS
"."
"${CMAKE_CURRENT_SOURCE_DIR}/../../include"
"${CMAKE_CURRENT_SOURCE_DIR}/../../private_include"
"${CMAKE_CURRENT_SOURCE_DIR}/../../internal"
"${CMAKE_CURRENT_SOURCE_DIR}/../../src"
SRC_DIRS
"."
Expand Down

0 comments on commit e0084d6

Please sign in to comment.