Alchemy
Loading...
Searching...
No Matches

atmel.c File Reference

Go to the source code of this file.

Functions

u16 EraseAtmelFlashChip (void)
 Erases the Atmel chip and waits for completion with its configured timing.
u16 EraseAtmelFlashSector (u16 sector)
 Erases one small Atmel sector by programming every byte to 0xff.
u16 EraseAtmelFlashBlock (u16 sector)
 Erases thirty-two small sectors, trying each sector at most twice.
u16 ProgramAtmelFlashSector (u32 sector, const u8 *source)
 Programs a small Atmel sector with interrupts disabled, then polls its last byte.
u16 ProgramAtmelFlashBlock (u16 sector, u8 *source)
 Programs an Atmel block in small sectors, trying each sector at most twice.

Variables

FlashWaitProc gFlash_Handler3
u16 gFlashNumRemainingBytes

Function Documentation

◆ EraseAtmelFlashChip()

u16 EraseAtmelFlashChip ( void )

Erases the Atmel chip and waits for completion with its configured timing.

Definition at line 8 of file atmel.c.

Referenced by EraseAtmelFlashChip().

◆ EraseAtmelFlashSector()

u16 EraseAtmelFlashSector ( u16 sector)

Erases one small Atmel sector by programming every byte to 0xff.

Definition at line 35 of file atmel.c.

Referenced by EraseAtmelFlashBlock(), and EraseAtmelFlashSector().

◆ EraseAtmelFlashBlock()

u16 EraseAtmelFlashBlock ( u16 sector)

Erases thirty-two small sectors, trying each sector at most twice.

Definition at line 64 of file atmel.c.

Referenced by EraseAtmelFlashBlock().

◆ ProgramAtmelFlashSector()

u16 ProgramAtmelFlashSector ( u32 sector,
const u8 * source )

Programs a small Atmel sector with interrupts disabled, then polls its last byte.

Definition at line 105 of file atmel.c.

Referenced by ProgramAtmelFlashBlock(), and ProgramAtmelFlashSector().

◆ ProgramAtmelFlashBlock()

u16 ProgramAtmelFlashBlock ( u16 sector,
u8 * source )

Programs an Atmel block in small sectors, trying each sector at most twice.

Definition at line 139 of file atmel.c.

Referenced by ProgramAtmelFlashBlock().

Variable Documentation

◆ gFlash_Handler3

FlashWaitProc gFlash_Handler3
extern

◆ gFlashNumRemainingBytes