openmv/boards/OPENMV1/omv_bootconfig.h
iabdalkader daf2bb30da misc: Restructure repo.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-04-13 08:28:34 +02:00

30 lines
838 B
C

/*
* This file is part of the OpenMV project.
*
* Copyright (c) 2013-2022 Ibrahim Abdelkader <iabdalkader@openmv.io>
* Copyright (c) 2013-2022 Kwabena W. Agyeman <kwagyeman@openmv.io>
*
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Board configuration and pin definitions.
*/
#ifndef __OMV_BOOTCONFIG_H__
#define __OMV_BOOTCONFIG_H__
// Bootloader version.
#define OMV_BOOT_VERSION (0xABCD0003)
// Bootloader LED GPIO config.
#define OMV_BOOT_LED_PIN (GPIO_PIN_2)
#define OMV_BOOT_LED_PORT (GPIOC)
// Flash layout for the bootloader.
// Flash FS sector, main FW sector, max sector.
//#define OMV_BOOT_FLASH_LAYOUT {1, 4, 11}
// Flash configuration.
#define OMV_BOOT_FLASH_ORIGIN 0x08000000
#define OMV_BOOT_FLASH_LENGTH 16K
#endif //__OMV_BOOTCONFIG_H__