mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Rename FSIN pin to FSYNC.
* Legacy name from OV datasheets.
This commit is contained in:
parent
403e8ae798
commit
ccea3aecb2
@ -163,8 +163,8 @@
|
||||
#define DCMI_PWDN_PIN (GPIO_PIN_7)
|
||||
#define DCMI_PWDN_PORT (GPIOD)
|
||||
|
||||
#define DCMI_FSIN_PIN (GPIO_PIN_5)
|
||||
#define DCMI_FSIN_PORT (GPIOB)
|
||||
#define DCMI_FSYNC_PIN (GPIO_PIN_5)
|
||||
#define DCMI_FSYNC_PORT (GPIOB)
|
||||
|
||||
#define DCMI_D0_PIN (GPIO_PIN_6)
|
||||
#define DCMI_D1_PIN (GPIO_PIN_7)
|
||||
@ -198,8 +198,8 @@
|
||||
#define DCMI_PWDN_LOW() HAL_GPIO_WritePin(DCMI_PWDN_PORT, DCMI_PWDN_PIN, GPIO_PIN_RESET)
|
||||
#define DCMI_PWDN_HIGH() HAL_GPIO_WritePin(DCMI_PWDN_PORT, DCMI_PWDN_PIN, GPIO_PIN_SET)
|
||||
|
||||
#define DCMI_FSIN_LOW() HAL_GPIO_WritePin(DCMI_FSIN_PORT, DCMI_FSIN_PIN, GPIO_PIN_RESET)
|
||||
#define DCMI_FSIN_HIGH() HAL_GPIO_WritePin(DCMI_FSIN_PORT, DCMI_FSIN_PIN, GPIO_PIN_SET)
|
||||
#define DCMI_FSYNC_LOW() HAL_GPIO_WritePin(DCMI_FSYNC_PORT, DCMI_FSYNC_PIN, GPIO_PIN_RESET)
|
||||
#define DCMI_FSYNC_HIGH() HAL_GPIO_WritePin(DCMI_FSYNC_PORT, DCMI_FSYNC_PIN, GPIO_PIN_SET)
|
||||
|
||||
#define DCMI_VSYNC_IRQN EXTI9_5_IRQn
|
||||
#define DCMI_VSYNC_IRQ_LINE (7)
|
||||
|
||||
@ -172,8 +172,8 @@
|
||||
#define DCMI_PWDN_PIN (GPIO_PIN_7)
|
||||
#define DCMI_PWDN_PORT (GPIOD)
|
||||
|
||||
#define DCMI_FSIN_PIN (GPIO_PIN_5)
|
||||
#define DCMI_FSIN_PORT (GPIOB)
|
||||
#define DCMI_FSYNC_PIN (GPIO_PIN_5)
|
||||
#define DCMI_FSYNC_PORT (GPIOB)
|
||||
|
||||
#define DCMI_D0_PIN (GPIO_PIN_6)
|
||||
#define DCMI_D1_PIN (GPIO_PIN_7)
|
||||
@ -207,8 +207,8 @@
|
||||
#define DCMI_PWDN_LOW() HAL_GPIO_WritePin(DCMI_PWDN_PORT, DCMI_PWDN_PIN, GPIO_PIN_RESET)
|
||||
#define DCMI_PWDN_HIGH() HAL_GPIO_WritePin(DCMI_PWDN_PORT, DCMI_PWDN_PIN, GPIO_PIN_SET)
|
||||
|
||||
#define DCMI_FSIN_LOW() HAL_GPIO_WritePin(DCMI_FSIN_PORT, DCMI_FSIN_PIN, GPIO_PIN_RESET)
|
||||
#define DCMI_FSIN_HIGH() HAL_GPIO_WritePin(DCMI_FSIN_PORT, DCMI_FSIN_PIN, GPIO_PIN_SET)
|
||||
#define DCMI_FSYNC_LOW() HAL_GPIO_WritePin(DCMI_FSYNC_PORT, DCMI_FSYNC_PIN, GPIO_PIN_RESET)
|
||||
#define DCMI_FSYNC_HIGH() HAL_GPIO_WritePin(DCMI_FSYNC_PORT, DCMI_FSYNC_PIN, GPIO_PIN_SET)
|
||||
|
||||
#define DCMI_VSYNC_IRQN EXTI9_5_IRQn
|
||||
#define DCMI_VSYNC_IRQ_LINE (7)
|
||||
|
||||
@ -1061,9 +1061,9 @@ int sensor_snapshot(sensor_t *sensor, image_t *image, streaming_cb_t streaming_c
|
||||
// Enable DMA IRQ
|
||||
HAL_NVIC_EnableIRQ(DMA2_Stream1_IRQn);
|
||||
|
||||
#if defined(DCMI_FSIN_PIN)
|
||||
if (SENSOR_HW_FLAGS_GET(&sensor, SENSOR_HW_FLAGS_FSYNC)) {
|
||||
DCMI_FSIN_HIGH();
|
||||
#if defined(DCMI_FSYNC_PIN)
|
||||
if (SENSOR_HW_FLAGS_GET(sensor, SENSOR_HW_FLAGS_FSYNC)) {
|
||||
DCMI_FSYNC_HIGH();
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -1096,9 +1096,9 @@ int sensor_snapshot(sensor_t *sensor, image_t *image, streaming_cb_t streaming_c
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(DCMI_FSIN_PIN)
|
||||
if (SENSOR_HW_FLAGS_GET(&sensor, SENSOR_HW_FLAGS_FSYNC)) {
|
||||
DCMI_FSIN_LOW();
|
||||
#if defined(DCMI_FSYNC_PIN)
|
||||
if (SENSOR_HW_FLAGS_GET(sensor, SENSOR_HW_FLAGS_FSYNC)) {
|
||||
DCMI_FSYNC_LOW();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@ -137,9 +137,9 @@ void HAL_MspInit(void)
|
||||
GPIO_InitStructure.Pin = DCMI_PWDN_PIN;
|
||||
HAL_GPIO_Init(DCMI_PWDN_PORT, &GPIO_InitStructure);
|
||||
|
||||
#if defined(DCMI_FSIN_PIN)
|
||||
GPIO_InitStructure.Pin = DCMI_FSIN_PIN;
|
||||
HAL_GPIO_Init(DCMI_FSIN_PORT, &GPIO_InitStructure);
|
||||
#if defined(DCMI_FSYNC_PIN)
|
||||
GPIO_InitStructure.Pin = DCMI_FSYNC_PIN;
|
||||
HAL_GPIO_Init(DCMI_FSYNC_PORT, &GPIO_InitStructure);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user