summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32f103-dofly-M3S/applications/nrf24l01_init.c
blob: ba91069e3380cd80bf4b2f1d0da08208e9869b48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author        Notes
 * 2019-06-29     WillianChan   first version
 */

#include <rtthread.h>

#ifdef PKG_USING_NRF24L01

#include "drv_spi.h"
static int rt_hw_nrf24l01_init(void)
{
    rt_hw_spi_device_attach("spi2", "spi20", GET_PIN(G, 7));
    return RT_EOK;
}
INIT_COMPONENT_EXPORT(rt_hw_nrf24l01_init);

#endif