REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
loader Namespace Reference

Functions

static FASTRUN void make_ack (pb_UpdateResponse &res)
 
static FASTRUN void make_success (pb_UpdateResponse &res)
 
static FASTRUN void make_failure (pb_UpdateResponse &res, const char *reason)
 
FASTRUN __attribute__ ((always_inline, unused)) static inline void flush(void *addr
 
asm volatile ("":::"memory")
 
 asm ("dsb")
 
 while (location< end_addr)
 
 asm ("isb")
 
FASTRUN void erase_region (uint8_t *base, uint32_t size)
 
FASTRUN void flash_write_32 (uint32_t *dst, const uint32_t *src, uint32_t size)
 
FASTRUN void flash_copy (uint32_t *dst, const uint32_t *src, uint32_t size)
 
void reboot ()
 Just a little generic Teensy reboot routine.
 

Variables

FASTRUN uint32_t size
 
uint32_t end_addr = (uint32_t)addr + size
 
 do
 
 location = 32
 

Function Documentation

◆ __attribute__()

FASTRUN loader::__attribute__ ( (always_inline, unused) )

◆ asm() [1/2]

loader::asm ( "dsb" )

◆ asm() [2/2]

loader::asm ( "isb" )

◆ erase_region()

FASTRUN void loader::erase_region ( uint8_t * base,
uint32_t size )

Definition at line 91 of file flasher.cpp.

References flash_erase_32K_block(), flash_erase_64K_block(), flash_erase_sector(), and size.

Referenced by flash_copy().

◆ flash_copy()

FASTRUN void loader::flash_copy ( uint32_t * dst,
const uint32_t * src,
uint32_t size )

Definition at line 137 of file flasher.cpp.

References erase_region(), flash_write_32(), and size.

◆ flash_write_32()

FASTRUN void loader::flash_write_32 ( uint32_t * dst,
const uint32_t * src,
uint32_t size )

Definition at line 129 of file flasher.cpp.

References flash_write(), and size.

Referenced by flash_copy().

◆ make_ack()

static FASTRUN void loader::make_ack ( pb_UpdateResponse & res)
static

Definition at line 48 of file flasher.cpp.

◆ make_failure()

static FASTRUN void loader::make_failure ( pb_UpdateResponse & res,
const char * reason )
static

Definition at line 57 of file flasher.cpp.

◆ make_success()

static FASTRUN void loader::make_success ( pb_UpdateResponse & res)
static

Definition at line 54 of file flasher.cpp.

◆ reboot()

void loader::reboot ( )

Just a little generic Teensy reboot routine.

Definition at line 7 of file reboot.cpp.

◆ volatile()

asm loader::volatile ( "":::"memory" )

◆ while()

loader::while ( )

Variable Documentation

◆ do

loader::do
Initial value:
{
SCB_CACHE_DCCIMVAC = location

Definition at line 82 of file flasher.cpp.

◆ end_addr

uint32_t loader::end_addr = (uint32_t)addr + size

Definition at line 79 of file flasher.cpp.

◆ location

loader::location = 32

Definition at line 84 of file flasher.cpp.

◆ size

FASTRUN uint32_t loader::size
Initial value:
{
uint32_t location = (uint32_t)addr & 0xFFFFFFE0

Definition at line 76 of file flasher.cpp.

Referenced by erase_region(), flash_copy(), flash_write_32(), and shortened_hexdump().