Skip to content

Commit

Permalink
bump tx packet queue size in link layer
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf committed Mar 11, 2024
1 parent f41f7f8 commit 965a596
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/nrf-sdc/src/bin/ble_l2cap_peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ fn build_sdc<'d, const N: usize>(
.support_adv()?
.support_peripheral()?
.peripheral_count(1)?
.buffer_cfg(27, 27, 20, 20)?
.build(p, rng, mpsl, mem)
}

Expand Down Expand Up @@ -98,7 +99,7 @@ async fn main(spawner: Spawner) {
let mut pool = [0; 256];
let rng = sdc::rng_pool::RngPool::new(p.RNG, Irqs, &mut pool, 64);

let mut sdc_mem = sdc::Mem::<1672>::new();
let mut sdc_mem = sdc::Mem::<3128>::new();
let sdc = unwrap!(build_sdc(sdc_p, &rng, mpsl, &mut sdc_mem));

info!("Advertising as {:02x}", bd_addr());
Expand All @@ -108,7 +109,7 @@ async fn main(spawner: Spawner) {
static HOST_RESOURCES: StaticCell<HostResources<NoopRawMutex, 4, 32, 27>> = StaticCell::new();
let host_resources = HOST_RESOURCES.init(HostResources::new(PacketQos::Guaranteed(4)));

static ADAPTER: StaticCell<Adapter<NoopRawMutex, 2, 4, 3, 3>> = StaticCell::new();
static ADAPTER: StaticCell<Adapter<NoopRawMutex, 2, 4, 1, 1>> = StaticCell::new();
let adapter = ADAPTER.init(Adapter::new(host_resources));

let config = BleConfig {
Expand Down

0 comments on commit 965a596

Please sign in to comment.