Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cnadler86 committed Dec 22, 2024
1 parent c515e30 commit c979972
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/modcamera.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ const mp_rom_map_elem_t mp_camera_hal_gainceiling_table[] = {
{ MP_ROM_QSTR(MP_QSTR_128X), MP_ROM_INT(GAINCEILING_128X) },
};

//TODO: Makros with convertion function, since the API will use standarized values.
// Helper functions to get and set camera and sensor information
#define SENSOR_STATUS_GETSET(type, name, status_field_name, setter_function_name) \
SENSOR_GETSET(type, name, status.status_field_name, setter_function_name)
Expand Down
3 changes: 0 additions & 3 deletions src/modcamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ defined (MICROPY_CAMERA_PIN_PCLK) && defined (MICROPY_CAMERA_PIN_VSYNC) && defin

typedef pixformat_t hal_camera_pixformat_t;
typedef framesize_t hal_camera_framesize_t;
typedef camera_fb_location_t hal_camera_fb_location_t;
typedef camera_grab_mode_t hal_camera_grabmode_t;
typedef gainceiling_t hal_camera_gainceiling_t;

Expand All @@ -109,9 +108,7 @@ typedef hal_camera_pixformat_t mp_camera_pixformat_t;
typedef hal_camera_framesize_t mp_camera_framesize_t;
typedef hal_camera_grabmode_t mp_camera_grabmode_t;
typedef hal_camera_gainceiling_t mp_camera_gainceiling_t;
// typedef hal_camera_fb_location_t mp_camera_fb_location_t; //not used at the moment, but might be used in the future

// TODO: Define how to integrate external time source in constructor (e.g. in ESP is LED-Timer).
/**
* @brief Constructs the camera hardware abstraction layer.
* @details The Port-plattform shall define a default pwm-time source and also frame buffer location (no input)
Expand Down
1 change: 0 additions & 1 deletion src/modcamera_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ static mp_obj_t camera_convert(mp_obj_t self_in, mp_obj_t arg) {
static MP_DEFINE_CONST_FUN_OBJ_2(camera_convert_obj, camera_convert);

static mp_obj_t camera_reconfigure(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args){
//OPEN: Validate inputs
mp_camera_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]);
enum { ARG_frame_size, ARG_pixel_format, ARG_grab_mode, ARG_fb_count };
static const mp_arg_t allowed_args[] = {
Expand Down

0 comments on commit c979972

Please sign in to comment.