no-OS
flash_extra.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef PLATFORM_INCLUDE_FLASH_EXTRA_H_
41 #define PLATFORM_INCLUDE_FLASH_EXTRA_H_
42 
43 #define ADUCM3029_FLASH_SIZE_BYTES (0x40000u)
44 
45 #define FLASH_PAGE_SIZE_BYTES 2048
46 #define FLASH_PAGE_SIZE_WORDS 512
47 #define FLASH_PAGE_ADDR_SHIFT 11
48 
49 #define FLASH_PAGE_START_ADDRESS_MASK 0x7FF
50 #define FLASH_OFFSET_IN_PAGE(x) (((x) & FLASH_PAGE_START_ADDRESS_MASK) / 4)
51 #define FLASH_ADDRESS_PAGE_START(x) ((x) & ~FLASH_PAGE_START_ADDRESS_MASK)
52 
53 #endif /* PLATFORM_INCLUDE_FLASH_EXTRA_H_ */
no_os_flash_dev::flash_size
uint32_t flash_size
Definition: no_os_flash.h:61
FLASH_PAGE_SIZE_BYTES
#define FLASH_PAGE_SIZE_BYTES
Definition: flash_extra.h:45
no_os_timer_init
int32_t no_os_timer_init(struct no_os_timer_desc **desc, struct no_os_timer_init_param *param)
Initialize hardware timer and the handler structure associated with it.
Definition: no_os_timer.c:56
FLASH_ADDRESS_PAGE_START
#define FLASH_ADDRESS_PAGE_START(x)
Definition: flash_extra.h:51
no_os_timer_init_param::id
uint16_t id
Definition: no_os_timer.h:83
no_os_flash_dev::page_size
uint32_t page_size
Definition: no_os_flash.h:63
no_os_delay.h
Header file of Delay functions.
no_os_flash_write_page
int32_t no_os_flash_write_page(struct no_os_flash_dev *dev, int32_t page_no, uint32_t *data)
Definition: flash.c:185
FLASH_OFFSET_IN_PAGE
#define FLASH_OFFSET_IN_PAGE(x)
Definition: flash_extra.h:50
FLASH_PAGE_ADDR_SHIFT
#define FLASH_PAGE_ADDR_SHIFT
Definition: flash_extra.h:47
device
Definition: ad9361_util.h:75
flash_extra.h
Header file of the flash driver for ADuCM302x.
no_os_timer.h
Timer control module header.
no_os_udelay
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: delay.c:120
no_os_error.h
Error codes definition.
no_os_flash_dev::extra
void * extra
Definition: no_os_flash.h:65
ADUCM3029_FLASH_SIZE_BYTES
#define ADUCM3029_FLASH_SIZE_BYTES
Definition: flash_extra.h:43
adicup_flash_dev::instance
ADI_FEE_HANDLE instance
Definition: flash.c:63
no_os_timer_start
int32_t no_os_timer_start(struct no_os_timer_desc *desc)
Start a timer.
Definition: no_os_timer.c:88
no_os_flash_dev
Flash controller device structure.
Definition: no_os_flash.h:57
no_os_flash_remove
int32_t no_os_flash_remove(struct no_os_flash_dev *dev)
Definition: flash.c:130
no_os_timer_stop
int32_t no_os_timer_stop(struct no_os_timer_desc *desc)
Stop a timer from counting.
Definition: no_os_timer.c:101
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: delay.c:132
no_os_flash_init_param
Flash controller initialization structure.
Definition: no_os_flash.h:72
no_os_timer_counter_get
int32_t no_os_timer_counter_get(struct no_os_timer_desc *desc, uint32_t *counter)
Get the value of the counter register for the timer.
Definition: no_os_timer.c:115
no_os_timer_init_param
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:81
FLASH_PAGE_SIZE_WORDS
#define FLASH_PAGE_SIZE_WORDS
Definition: flash_extra.h:46
no_os_timer_counter_set
int32_t no_os_timer_counter_set(struct no_os_timer_desc *desc, uint32_t new_val)
Set the timer counter register value.
Definition: no_os_timer.c:130
aducm3029_timer_ops
const struct no_os_timer_platform_ops aducm3029_timer_ops
aducm3029 platform specific timer platform ops structure
Definition: aducm3029_timer.c:439
no_os_flash_clear_page
int32_t no_os_flash_clear_page(struct no_os_flash_dev *dev, int32_t page_no)
Definition: flash.c:158
no_os_flash_read
int32_t no_os_flash_read(struct no_os_flash_dev *dev, uint32_t flash_addr, uint32_t *array, uint32_t size)
Definition: flash.c:290
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
adicup_flash_dev
Aducm3029 flash controller handler.
Definition: flash.c:61
aducm3029_timer.h
Header file of TIMER driver for ADuCM302x.
adicup_flash_dev::temp_ptr
uint32_t temp_ptr[FLASH_PAGE_SIZE_WORDS]
Definition: flash.c:68
no_os_flash_write
int32_t no_os_flash_write(struct no_os_flash_dev *dev, uint32_t flash_addr, uint32_t *array, uint32_t array_size)
Definition: flash.c:260
no_os_timer_desc
Structure holding timer descriptor.
Definition: no_os_timer.h:57
no_os_flash_init
int32_t no_os_flash_init(struct no_os_flash_dev **device, struct no_os_flash_init_param *init_param)
Definition: flash.c:83
no_os_flash.h
Header file for flash controller driver.
adicup_flash_dev::dfp_memory
uint8_t dfp_memory[ADI_FEE_MEMORY_SIZE]
Definition: flash.c:65
no_os_flash_dev::id
uint8_t id
Definition: no_os_flash.h:59