ra8-firmware
0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
usb_msc_mram_hs_steps.h
Go to the documentation of this file.
1
25
26
#pragma once
27
28
#include <stdint.h>
29
35
typedef
enum : uint32_t {
36
k_demo_thread_stack
= 4096U,
37
k_demo_usbx_pool_bytes
= 32768U,
38
k_demo_block_size
= 512U,
39
k_demo_idle_ticks
= 50U,
40
}
demo_config_t
;
41
53
typedef
enum : uint32_t {
54
k_fat_reserved_sectors
= 1U,
55
k_fat_num_fats
= 1U,
56
k_fat_fat_sectors
= 17U,
57
k_fat_root_entries
= 512U,
58
k_fat_root_sectors
= 32U,
59
k_fat_data_sectors
= 4096U,
60
k_fat_fat_lba
= 1U,
61
k_fat_root_lba
= 18U,
62
k_fat_data_lba
= 50U,
63
k_fat_total_sectors
= 4146U,
64
k_fat_first_cluster
= 2U,
65
k_fat_mram_clusters
= 2048U,
66
k_fat_last_mram_clus
= 2049U,
67
k_fat_entries_per_sec
= 256U,
68
k_fat_eoc
= 0xFFFFU,
69
k_fat_entry0
= 0xFFF8U,
70
}
demo_fat_geom_t
;
71
72
#ifndef RA8_OFF_TARGET
73
74
#include "tx_api.h"
75
#include "ux_api.h"
76
96
void
demo_fat_fill_sector
(uint32_t lba, UCHAR* out);
97
98
#endif
/* !RA8_OFF_TARGET */
demo_config_t
demo_config_t
Compile-time settings for the HTTPS client demo.
Definition
main.c:87
k_demo_thread_stack
@ k_demo_thread_stack
Demo thread stack.
Definition
main.c:89
k_demo_idle_ticks
@ k_demo_idle_ticks
Idle back-off when no class active.
Definition
main.c:122
k_demo_usbx_pool_bytes
@ k_demo_usbx_pool_bytes
USBX pool: 32 KiB; CDC-ACM enum exhausts 16 KiB.
Definition
main.c:120
k_demo_block_size
@ k_demo_block_size
SCSI logical block size (bytes).
Definition
main.c:123
k_fat_root_entries
@ k_fat_root_entries
Root directory entries.
Definition
usb_host_msc_browse_steps.h:85
k_fat_eoc
@ k_fat_eoc
End-of-chain marker.
Definition
usb_host_msc_browse_steps.h:96
k_fat_data_sectors
@ k_fat_data_sectors
Padded data region (>= 4085).
Definition
usb_host_msc_browse_steps.h:87
k_fat_data_lba
@ k_fat_data_lba
First data sector (cluster 2).
Definition
usb_host_msc_browse_steps.h:90
k_fat_root_sectors
@ k_fat_root_sectors
512 entries x 32 B / 512 B.
Definition
usb_host_msc_browse_steps.h:86
k_fat_root_lba
@ k_fat_root_lba
First root-directory sector.
Definition
usb_host_msc_browse_steps.h:89
k_fat_fat_sectors
@ k_fat_fat_sectors
FAT16 size for 4098 entries.
Definition
usb_host_msc_browse_steps.h:84
k_fat_fat_lba
@ k_fat_fat_lba
First FAT sector.
Definition
usb_host_msc_browse_steps.h:88
k_fat_first_cluster
@ k_fat_first_cluster
FAT data area starts at cluster 2.
Definition
usb_host_msc_browse_steps.h:92
k_fat_entry0
@ k_fat_entry0
FAT[0]: media F8 + filler.
Definition
usb_host_msc_browse_steps.h:97
k_fat_reserved_sectors
@ k_fat_reserved_sectors
Boot sector only.
Definition
usb_host_msc_browse_steps.h:82
k_fat_entries_per_sec
@ k_fat_entries_per_sec
FAT16 entries per 512-byte sector.
Definition
usb_host_msc_browse_steps.h:95
k_fat_total_sectors
@ k_fat_total_sectors
1 + 17 + 32 + 4096.
Definition
usb_host_msc_browse_steps.h:91
k_fat_last_mram_clus
@ k_fat_last_mram_clus
Last cluster of MRAM.BIN.
Definition
usb_host_msc_browse_steps.h:94
k_fat_num_fats
@ k_fat_num_fats
Single FAT copy.
Definition
usb_host_msc_browse_steps.h:83
k_fat_mram_clusters
@ k_fat_mram_clusters
Clusters backed by MRAM (1 MiB).
Definition
usb_host_msc_browse_steps.h:93
demo_fat_fill_sector
void demo_fat_fill_sector(uint32_t lba, UCHAR *out)
Synthesize one 512-byte sector of the read-only volume.
Definition
usb_msc_mram_steps.c:199
demo_fat_geom_t
demo_fat_geom_t
Synthesized FAT16 volume geometry (MS FAT spec 1.03).
Definition
usb_msc_mram_steps.h:61
examples
ek_ra8d2
hw_validated
manual
usb_msc_mram_hs
inc
usb_msc_mram_hs_steps.h
Generated by
1.16.1