You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
452 B
24 lines
452 B
10 months ago
|
/*
|
||
|
* 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
|