Skip to content

Commit

Permalink
chore: rename grove_vision_ai_we2 to grove_vision_ai_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnL4 committed Nov 6, 2024
1 parent 71db564 commit ebd15f4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*
*/

#ifndef _BOARD_GROVE_VISION_AI_WE2_H_
#define _BOARD_GROVE_VISION_AI_WE2_H_
#ifndef _BOARD_GROVE_VISION_AI_V2_H_
#define _BOARD_GROVE_VISION_AI_V2_H_

#define PRODUCT_NAME_PREFIX "grove_vision_ai"
#define PRODUCT_NAME_SUFFIX "v2"
Expand Down
4 changes: 2 additions & 2 deletions porting/himax/we2/el_camera_we2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ CameraWE2::CameraWE2() : Camera(0b00001111) {
}
}
}
#elif defined(CONFIG_EL_BOARD_GROVE_VISION_AI_WE2)
#elif defined(CONFIG_EL_BOARD_GROVE_VISION_AI_V2)
CameraWE2::CameraWE2() : Camera(0b00000111) {}
#else
#error "Camera moudle does not find supported board."
Expand Down Expand Up @@ -134,7 +134,7 @@ el_err_code_t CameraWE2::init(SensorOptIdType opt_id) {
default:
ret = EL_EINVAL;
}
#elif defined(CONFIG_EL_BOARD_GROVE_VISION_AI_WE2)
#elif defined(CONFIG_EL_BOARD_GROVE_VISION_AI_V2)
switch (opt_id & 0x0FFF) {
case 0:
ret = _drv_cam_init(240, 240);
Expand Down
4 changes: 2 additions & 2 deletions porting/himax/we2/el_config_porting.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#ifndef CONFIG_EL_TARGET_HIMAX
#error "Please specify porting target"
#else
#if defined(CONFIG_EL_BOARD_GROVE_VISION_AI_WE2)
#include "boards/grove_vision_ai_we2/board.h"
#if defined(CONFIG_EL_BOARD_GROVE_VISION_AI_V2)
#include "boards/grove_vision_ai_v2/board.h"
#elif defined(CONFIG_EL_BOARD_SENSECAP_WATCHER)
#include "boards/sensecap_watcher/board.h"
#else
Expand Down
4 changes: 2 additions & 2 deletions porting/himax/we2/el_device_we2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ void DeviceWE2::init() {

this->_network = nullptr;

#ifndef CONFIG_EL_BOARD_SENSECAP_WATCHER
#ifdef CONFIG_EL_BOARD_SENSECAP_WATCHER
static sspiWE2 spi{};
spi.type = EL_TRANSPORT_SPI;
this->_transports.emplace_front(&spi);
#endif

#ifdef CONFIG_EL_BOARD_GROVE_VISION_AI_WE2
#ifdef CONFIG_EL_BOARD_GROVE_VISION_AI_V2
static Serial2WE2 serial2{};
serial2.type = EL_TRANSPORT_UART;
this->_transports.emplace_front(&serial2);
Expand Down
2 changes: 1 addition & 1 deletion porting/himax/we2/el_extfs_we2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ FileStatus ExtfsWE2::open(const char* path, int mode) {
}

Extfs* Extfs::get_ptr() {
#ifdef CONFIG_EL_BOARD_GROVE_VISION_AI_WE2
#ifdef CONFIG_EL_BOARD_GROVE_VISION_AI_V2
static ExtfsWE2 extfs{};
return &extfs;
#else
Expand Down

0 comments on commit ebd15f4

Please sign in to comment.