4.9 System Manager

4.9.1 Introduction

The System driver manages the initialization and set up of all active components, modules, and clocks of the microcontroller.

4.9.2 Supported Device Families

AVR® DxAVR® ExATtinyATmega

4.9.3 Required header files:

#include"mcc_generated_files/system/system.h"

4.9.4 Module Documentation

4.9.4.1 System Driver

4.9.4.1.1 Driver Version

System Driver Version 1.0.1
Functions
  • void SYSTEM_Initialize (void)

    This initializes the system module and must be called before any other API is called. This routine should only be called once during system initialization.

4.9.4.1.2 Function Documentation

SYSTEM_Initialize()

void SYSTEM_Initialize (void )

This initializes the system module and must be called before any other API is called. This routine should only be called once during system initialization.

Section: Included Files

Parameters:
None
Returns:

None

4.9.5 File Documentation

4.9.5.1 source/config_bits.c File Reference

This is the generated Device Configuration Bits file.

#include <avr/io.h>

4.9.5.1.1 Variables

4.9.5.1.2 Detailed Description

This is the generated Device Configuration Bits file.

CONFIGURATION BITS Generated Driver Source File

Version: Driver Version 1.0.1

4.9.5.1.3 Variable Documentation

FUSES

FUSES

Initial value:

= 
{
  .BODCFG = ACTIVE_DISABLE_gc | LVL_BODLEVEL0_gc | SAMPFREQ_128Hz_gc | SLEEP_DISABLE_gc,
  .BOOTSIZE = 0x0,
  .CODESIZE = 0x0,
  .OSCCFG = CLKSEL_OSCHF_gc,
  .SYSCFG0 = CRCSEL_CRC16_gc | CRCSRC_NOCRC_gc | RSTPINCFG_GPIO_gc,
  .SYSCFG1 = SUT_0MS_gc,
  .WDTCFG = PERIOD_OFF_gc | WINDOW_OFF_gc,
}

Section: Included FilesConfigures Fuse bits

4.9.5.2 source/system.c File Reference

This is the generated driver implementation file for the System Driver.

#include "../system.h"

4.9.5.2.1 Functions

  • int8_t BOD_Initialize ()

  • int8_t SLPCTRL_Initialize ()

  • int8_t WDT_Initialize ()

  • void SYSTEM_Initialize (void)

    This initializes the system module and must be called before any other API is called. This routine should only be called once during system initialization.

  • ISR (BOD_VLM_vect)

4.9.5.2.2 Detailed Description

This is the generated driver implementation file for the System Driver.

System Driver Source File

Version: Driver Version 1.0.1

4.9.5.2.3 Function Documentation

BOD_Initialize()

int8_t BOD_Initialize ( )

Section: Included FilesInitializes MCU, drivers and middleware in the project

4.9.5.3 source/system.h File Reference

#include "../system/utils/compiler.h"
#include "../system/clock.h"
#include "../system/pins.h"
#include "../i2c_client/twi1.h"
#include "../nvm/nvm.h"
#include "../system/interrupt.h"

4.9.5.3.1 Functions

  • void SYSTEM_Initialize (void)

    This initializes the system module and must be called before any other API is called. This routine should only be called once during system initialization.

4.9.5.3.2 Detailed Description

System Driver Header File