Skip to content

Commit

Permalink
fix(spellling): PUSH_PUSH -> PUSH_PULL
Browse files Browse the repository at this point in the history
  • Loading branch information
finger563 committed Oct 19, 2023
1 parent f37dc95 commit 32e4a73
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions components/aw9523/include/aw9523.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Aw9523 {
*/
enum class OutputDriveModeP0 : int {
OPEN_DRAIN = 0, ///< In this mode it needs a pull-up reistor. This is the default mode.
PUSH_PUSH = 1, ///< In this mode it needs no pull-up resistor.
PUSH_PULL = 1, ///< In this mode it needs no pull-up resistor.
};

/**
Expand Down Expand Up @@ -80,20 +80,17 @@ class Aw9523 {
};

/**
* @brief Construct the Aw9523. Initialization called separately.
* @brief Construct the Aw9523. Initialization called separately.
* @param config Config structure for configuring the AW9523
*/
Aw9523(const Config &config)
: config_(config), address_(config.device_address), write_(config.write), read_(config.read),
logger_({.tag = "Aw9523", .level = config.log_level}) {
}
logger_({.tag = "Aw9523", .level = config.log_level}) {}

/**
* @brief Initialize the component class.
/**
* @brief Initialize the component class.
*/
void initialize(void) {
init(config_);
}
void initialize(void) { init(config_); }

/**
* @brief Read the pin values on the provided port.
Expand Down Expand Up @@ -219,7 +216,7 @@ class Aw9523 {
set_pins(Port::PORT1, mask >> 8);
}

/**
/**
* @brief Read the output pin values on the provided port.
* @param port The Port for which to read the pins
* @return The pin values as an 8 bit mask.
Expand Down Expand Up @@ -447,8 +444,6 @@ class Aw9523 {
///< b00=imax, default=b00)
};



void init(const Config &config) {
configure_global_control(config.output_drive_mode_p0, config.max_led_current);
set_direction(Port::PORT0, config.port_0_direction_mask);
Expand Down

0 comments on commit 32e4a73

Please sign in to comment.