3.26.6 Reset Driver

Overview

The Reset module combines all Reset sources and controls the device Reset Signal.

Features

The following are the list of device Reset sources available based on the device used.

  • POR: Power-on Reset
  • BOR: Brown-out Reset
  • MCLR: Master Clear Pin Reset
  • SWR: RESET Instruction
  • WDTO: Watchdog Timer Time-out Reset
  • CM: Configuration Mismatch Reset
  • TRAPR: Trap Conflict Reset
  • IOPUWR: Illegal Condition Device Reset
  • Illegal Opcode Reset
  • Uninitialized W Register Reset

3.26.6.1 Module Documentation

3.26.6.1.1 Reset Driver

This is the generated driver header file for the RESET driver.

Module description

This is the generated driver header file for the RESET driver.

Functions
  • uint32_t RESET_CauseGet (void)

    Returns the cause of previous reset.

  • void RESET_CauseHandler (void)

    It handles the reset cause by clearing the cause register values. This is a weak attribute function. The user can override and implement the same function without weak attribute.

  • void RESET_CauseClearAll (void)

    Clears the Reset Cause register.

Function Documentation

RESET_CauseClearAll()

void RESET_CauseClearAll (void )

Clears the Reset Cause register.

Returns:
RESET_CauseGet()

uint32_t RESET_CauseGet (void )

Returns the cause of previous reset.

Precondition:

This function should be called before any use of CLRWDT since it has a side-effect of clearing the appropriate bits in the register showing reset cause (see DS70602B page 8-10)

Returns:

none  

RESET_CauseHandler()

void RESET_CauseHandler (void )

It handles the reset cause by clearing the cause register values. This is a weak attribute function. The user can override and implement the same function without weak attribute.

Returns:

Enumeration Type Documentation

RESET_MASKS

enum RESET_MASKS

Defines the RESET cause mask location  

RESET_MASK_WDTO

Defines the watchdog timeout reset flag mask location

RESET_MASK_SWR

Defines the software reset mask location

RESET_MASK_EXTR

Defines the external reset mask location

RESET_MASK_CM

Defines the configuration mismatch reset mask location

3.26.6.2 File Documentation

3.26.6.2.1 source/reset.h File Reference

#include <stdint.h>
#include "reset_types.h"

Functions

  • uint32_t RESET_CauseGet (void)

    Returns the cause of previous reset.

  • void RESET_CauseHandler (void)

    It handles the reset cause by clearing the cause register values. This is a weak attribute function. The user can override and implement the same function without weak attribute.

  • void RESET_CauseClearAll (void)

    Clears the Reset Cause register.

Detailed Description

RESET Generated Driver Header File

3.26.6.2.2 source/reset_types.h File Reference

This is the generated driver types header file for the RESET driver.

Detailed Description

This is the generated driver types header file for the RESET driver.

RESET Generated Driver Types Header File