CycloneBOOT 2.6.6
Secure Bootloader for ARM Cortex-M MCU
Loading...
Searching...
No Matches
mcu.h File Reference

CycloneBOOT MCU layer. More...

#include "boot_config.h"
#include "os_port.h"
#include <stdint.h>

Go to the source code of this file.

Macros

#define BOOT_CUSTOM_DEINIT_SUPPORT   DISABLED
 
#define MCU_DRIVER_VERSION_MAJOR   0x01
 
#define MCU_DRIVER_VERSION_MINOR   0x00
 
#define MCU_DRIVER_VERSION_PATCH   0x00
 
#define MCU_DRIVER_VERSION
 

Enumerations

enum  ResetCause {
  RESET_CAUSE_UNKNOWN = 0 , RESET_CAUSE_POWER_ON , RESET_CAUSE_PIN , RESET_CAUSE_SOFTWARE ,
  RESET_CAUSE_WATCHDOG , RESET_CAUSE_LOW_POWER
}
 MCU reset cause.
 

Functions

uint32_t mcuGetVtorOffset (void)
 Return mcu vector table offset.
 
void mcuSystemReset (void)
 Reset MCU system.
 
ResetCause mcuGetResetCause (void)
 Get the cause of the last reset.
 

Detailed Description

CycloneBOOT MCU layer.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2021-2026 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneBOOT Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.6.6

Macro Definition Documentation

◆ MCU_DRIVER_VERSION

#define MCU_DRIVER_VERSION
Value:
(uint32_t)(((MCU_DRIVER_VERSION_MAJOR & 0xFF) << 16) | \
((MCU_DRIVER_VERSION_MINOR & 0xFF) << 8) | (MCU_DRIVER_VERSION_PATCH & 0xFF))

Function Documentation

◆ mcuGetResetCause()

ResetCause mcuGetResetCause ( void  )
extern

Get the cause of the last reset.

Returns
Reset cause (not decoded on this family yet)

Get the cause of the last reset.

Returns
Reset cause

◆ mcuGetVtorOffset()

uint32_t mcuGetVtorOffset ( void  )
extern

Return mcu vector table offset.

Returns
VTOR offset value

Return mcu vector table offset.

Returns
VTOR offset value

◆ mcuSystemReset()

void mcuSystemReset ( void  )
extern

Reset MCU system.

Reset MCU system.