Datasheet

Table Of Contents
Offset V2 Cycles
(Avg)
Description
0x78 52 _double2ufix64
Convert a double to an unsigned fixed point 64-bit integer representation where n specifies
the position of the binary point in the resulting fixed point representation, e.g.
_double2ufix(0.5f, 16) == 0x8000. This method rounds towards -Infinity, and clamps the
resulting integer to lie within the range 0x0000000000000000 to 0xFFFFFFFFFFFFFFFF
0x7c 23 float _double2float(double v)
Converts a double to a float
2.7.3.3. Bootrom Data
The Bootrom data table (rom_data_table) contains the following pointers.
Table 165. Bootrom
data pointers
CODE Value (16 bit pointer) Description
'C','R' const char *copyright_string
The Raspberry Pi Trading Ltd copyright string.
'G','R' const uint32_t *git_revision
The 8 most significant hex digits of the Bootrom git revision.
'F','S' fplib_start
The start address of the floating point library code and data. This and fplib_end along with the individual
function pointers in soft_float_table can be used to copy the floating point implementation into RAM if
desired.
'S','F' soft_float_table
See Table 163 for the contents of this table.
'F','E' fplib_end
The end address of the floating point library code and data.
'S','D' soft_double_table
This entry is only present in the V2 bootrom. See Table 164 for the contents of this table.
'P','8'
deprecated. This entry is not present in the V2 bootrom; do not use it.
'R','8'
deprecated. This entry is not present in the V2 bootrom; do not use it.
'L','8'
deprecated. This entry is not present in the V2 bootrom; do not use it.
'T','8'
deprecated. This entry is not present in the V2 bootrom; do not use it.
2.7.4. USB Mass Storage Interface
The Bootrom provides a standard USB bootloader that makes a writeable drive available for copying code to the RP2040
using UF2 files (see Section 2.7.4.2).
A UF2 file copied to the drive is downloaded and written to Flash or RAM, and the device is automatically rebooted,
making it trivial to download and run code on the RP2040 using only a USB connection.
RP2040 Datasheet
2.7. Bootrom 127