Ensure the bootloader static gets documented.

This commit is contained in:
Jonathan Pallant (42 Technology) 2021-09-27 17:30:50 +01:00
parent b7acc7c373
commit 29dd755b30
8 changed files with 15 additions and 15 deletions

View file

@ -34,8 +34,8 @@ use pico::hal::pac;
// higher-level drivers. // higher-level drivers.
use pico::hal; use pico::hal;
/// The linker will place this boot block at the start of our program image. We //// The linker will place this boot block at the start of our program image. We
/// need this to help the ROM bootloader get our code up and running. //// need this to help the ROM bootloader get our code up and running.
#[link_section = ".boot2"] #[link_section = ".boot2"]
#[used] #[used]
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;

View file

@ -30,8 +30,8 @@ use pico::hal::pac;
// higher-level drivers. // higher-level drivers.
use pico::hal; use pico::hal;
/// The linker will place this boot block at the start of our program image. We //// The linker will place this boot block at the start of our program image. We
/// need this to help the ROM bootloader get our code up and running. //// need this to help the ROM bootloader get our code up and running.
#[link_section = ".boot2"] #[link_section = ".boot2"]
#[used] #[used]
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;

View file

@ -34,8 +34,8 @@ use pico::hal::pac;
// higher-level drivers. // higher-level drivers.
use pico::hal; use pico::hal;
/// The linker will place this boot block at the start of our program image. We //// The linker will place this boot block at the start of our program image. We
/// need this to help the ROM bootloader get our code up and running. //// need this to help the ROM bootloader get our code up and running.
#[link_section = ".boot2"] #[link_section = ".boot2"]
#[used] #[used]
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;

View file

@ -33,8 +33,8 @@ use usb_device::{class_prelude::*, prelude::*};
// USB Communications Class Device support // USB Communications Class Device support
use usbd_serial::SerialPort; use usbd_serial::SerialPort;
/// The linker will place this boot block at the start of our program image. We //// The linker will place this boot block at the start of our program image. We
/// need this to help the ROM bootloader get our code up and running. //// need this to help the ROM bootloader get our code up and running.
#[link_section = ".boot2"] #[link_section = ".boot2"]
#[used] #[used]
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;

View file

@ -45,8 +45,8 @@ use usb_device::{class_prelude::*, prelude::*};
// USB Communications Class Device support // USB Communications Class Device support
use usbd_serial::SerialPort; use usbd_serial::SerialPort;
/// The linker will place this boot block at the start of our program image. We //// The linker will place this boot block at the start of our program image. We
/// need this to help the ROM bootloader get our code up and running. //// need this to help the ROM bootloader get our code up and running.
#[link_section = ".boot2"] #[link_section = ".boot2"]
#[used] #[used]
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;

View file

@ -44,8 +44,8 @@ use usbd_hid::descriptor::generator_prelude::*;
use usbd_hid::descriptor::MouseReport; use usbd_hid::descriptor::MouseReport;
use usbd_hid::hid_class::HIDClass; use usbd_hid::hid_class::HIDClass;
/// The linker will place this boot block at the start of our program image. We //// The linker will place this boot block at the start of our program image. We
/// need this to help the ROM bootloader get our code up and running. //// need this to help the ROM bootloader get our code up and running.
#[link_section = ".boot2"] #[link_section = ".boot2"]
#[used] #[used]
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;

View file

@ -34,8 +34,8 @@ use pico_lipo_16_mb::hal::pac;
// higher-level drivers. // higher-level drivers.
use pico_lipo_16_mb::hal; use pico_lipo_16_mb::hal;
/// The linker will place this boot block at the start of our program image. We //// The linker will place this boot block at the start of our program image. We
/// need this to help the ROM bootloader get our code up and running. //// need this to help the ROM bootloader get our code up and running.
#[link_section = ".boot2"] #[link_section = ".boot2"]
#[used] #[used]
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;

View file

@ -28,7 +28,7 @@ use pro_micro_rp2040::{
use smart_leds::{brightness, SmartLedsWrite, RGB8}; use smart_leds::{brightness, SmartLedsWrite, RGB8};
use ws2812_pio::Ws2812; use ws2812_pio::Ws2812;
/// The linker will place this boot block at the start of our program image. //// The linker will place this boot block at the start of our program image.
/// We need this to help the ROM bootloader get our code up and running. /// We need this to help the ROM bootloader get our code up and running.
#[link_section = ".boot2"] #[link_section = ".boot2"]
#[used] #[used]