Contiki 2.5
Functions
bus.c File Reference

    Initialization functions for the 8051 bus
More...

#include "banked.h"
#include "cc2430_sfr.h"
#include "dev/bus.h"
#include "sys/clock.h"

Go to the source code of this file.

Functions

void flash_read (uint8_t *buf, uint32_t address, uint8_t size) __banked
 Read a block of code memory. More...
 

Detailed Description

    Initialization functions for the 8051 bus
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Definition in file bus.c.

Function Documentation

void flash_read ( uint8_t *  buf,
uint32_t  address,
uint8_t  size 
)

Read a block of code memory.

The code must be placed in the lowest bank of flash.

Parameters
addressaddress to read from flash
bufferbuffer to store data
sizenumber of bytes to read

Definition at line 69 of file bus.c.

References DISABLE_INTERRUPTS.