36#ifndef MCCI_BOOTLOADER_LED_GPIO
37# define MCCI_BOOTLOADER_LED_GPIO MCCI_STM32H7_REG_GPIOI
40#ifndef MCCI_BOOTLOADER_LED_GPIO_PIN
41# define MCCI_BOOTLOADER_LED_GPIO_PIN 3
201 for (++ms; ms > 0; --ms)
228 unsigned timeToReboot;
230 McciArm_disableInterrupts();
231 timeToReboot = 60 * 1000;
235 for (; timeToReboot > 0; --timeToReboot)
241 McciArm_DataSynchBarrier();
251 McciArm_DataSynchBarrier();
static uint32_t McciArm_putRegOr(uint32_t reg, uint32_t orVal)
or 32-bit values to a cm0plus register
static uint32_t McciArm_getReg(uint32_t reg)
read a 32-bit value from a cm0plus register
static uint32_t McciArm_putReg(uint32_t reg, uint32_t val)
write a 32-bit value to a cm0plus register
static uint32_t McciArm_putRegMasked(uint32_t reg, uint32_t maskVal, uint32_t modVal)
store to cm0plus register under mask
#define MCCI_CM7_SYSTICK_RVR
#define MCCI_CM7_SCB_AIRCR_SYSRESETREQ
System reset request.
#define MCCI_CM7_SCB_AIRCR_VECTKEY
Vector key.
#define MCCI_CM7_SCB_AIRCR
#define MCCI_CM7_SYSTICK_CSR_ENABLE
enable counter
#define MCCI_CM7_SYSTICK_CSR
#define MCCI_CM7_SYSTICK_CSR_TICKINT
enable tick exception
#define MCCI_CM7_SCB_AIRCR_VECTKEY_VALUE
Value to write to unlock register.
#define MCCI_CM7_SYSTICK_CSR_COUNTFLAG
timer has counted to zero
#define MCCI_CM7_SYSTICK_CVR
#define MCCI_CM7_SYSTICK_CSR_CLKSOURCE
use processor (not external) clock
@ McciBootloaderError_BootloaderNotValid
bootloader image isn't valid
#define MCCI_BOOTLOADER_FIELD_SET_VALUE(fmask, val)
McciBootloaderPlatform_DelayMsFn_t McciBootloaderBoard_Stm32h7b3iDk_delayMs
McciBootloaderPlatform_SystemInitFn_t McciBootloaderBoard_Stm32h7b3iDk_systemInit
void McciBootloaderBoard_Stm32h7b3iDk_handleSysTick(void)
McciBootloaderPlatform_AnnunciatorIndicateStateFn_t McciBootloaderBoard_Stm32h7b3iDk_annunciatorIndicateState
void McciBootloader_Stm32h7_systemInit(void)
#define MCCI_BOOTLOADER_NORETURN_SFX
uint32_t McciBootloaderError_t
error codes for the bootloader
#define MCCI_BOOTLOADER_NORETURN_PFX
#define MCCI_STM32H7_GPIO_OTYPE_PP
#define MCCI_STM32H7_GPIO_MODE_OUT
#define MCCI_STM32H7_GPIO_OSPEED_LOW
#define MCCI_STM32H7_REG_RCC_APB4ENR_SYSCFGEN
#define MCCI_STM32H7_GPIO_BSRR_BR_P(p)
compute port-bit reset mask for bit p.
#define MCCI_STM32H7_GPIO_BSRR
#define MCCI_STM32H7_GPIO_OSPEEDR
#define MCCI_STM32H7_GPIO_PUPD_NONE
#define MCCI_STM32H7_GPIO_OSPEED_P(p)
compute the mask for the mode bits for port bits 0..31
#define MCCI_STM32H7_REG_RCC_AHB4ENR_GPIOIEN
#define MCCI_STM32H7_GPIO_BSRR_BS_P(p)
compute port-bit set mask for bit p.
#define MCCI_STM32H7_GPIO_MODE_P(p)
compute the mask for the mode bits for port bits 0..31
#define MCCI_STM32H7_GPIO_PUPD_P(p)
compute the mask for the mode bits for port bits 0..31
#define MCCI_STM32H7_GPIO_PUPDR
#define MCCI_STM32H7_GPIO_MODER
#define MCCI_STM32H7_GPIO_ODR
#define MCCI_STM32H7_REG_RCC_AHB4ENR
AHB4 clock.
#define MCCI_STM32H7_REG_RCC_APB4ENR
APB4 clock.
#define MCCI_STM32H7_GPIO_OTYPE_P(p)
compute the mask for the mode bits for port bits 0..15
#define MCCI_STM32H7_GPIO_OTYPER
#define MCCI_BOOTLOADER_LED_GPIO_PIN
#define MCCI_BOOTLOADER_LED_GPIO
static MCCI_BOOTLOADER_NORETURN_PFX void fastBlinkForever(void)
void McciBootloaderBoard_Stm32h7b3iDk_setLed(void)
void McciBootloaderBoard_Stm32h7b3iDk_fail(McciBootloaderError_t errorCode)
static void delayTick(void)
void McciBootloaderBoard_Stm32h7b3iDk_clearLed(void)