Microchip® Advanced Software Framework

hardwareInit.c File Reference

Hardware initialization routine.

Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include <core_cm0plus.h>
#include <types.h>
#include <hardwareInit.h>
#include <srecParser.h>
#include <flashLoader.h>
#include "uartSerializer.h"

Functions

void lowLevelInit (void)
 Startup initialization (frequency, io, usb) More...
 
void lowLevelUnInit (void)
 Clear startup initialization parameters to start user application. More...
 
static void setFrequencyDefault (void)
 Set up default value. More...
 

void lowLevelInit ( void  )

Startup initialization (frequency, io, usb)

Startup initialization (frequency, wdt)

References board_init(), cpu_irq_enable(), Enable_global_interrupt, nvm_init(), and system_init().

Referenced by Boot_main().

void lowLevelUnInit ( void  )

Clear startup initialization parameters to start user application.

References cpu_irq_disable(), setFrequencyDefault(), and usart_disable0().

Referenced by Boot_main(), bootUnInitSerializer(), srecHandshake(), srecProtocol(), and update_action().

static void setFrequencyDefault ( void  )
static

Set up default value.

Referenced by lowLevelUnInit().