Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/drivers/include/drivers/adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* 2022-05-11 Stanley Lwin add finsh voltage conversion command
*/

#ifndef __ADC_H__
#define __ADC_H__
#ifndef __DEV_ADC_H__
#define __DEV_ADC_H__

#include <rtthread.h>

Expand Down Expand Up @@ -49,4 +49,4 @@ rt_err_t rt_adc_enable(rt_adc_device_t dev, rt_int8_t channel);
rt_err_t rt_adc_disable(rt_adc_device_t dev, rt_int8_t channel);
rt_int16_t rt_adc_voltage(rt_adc_device_t dev, rt_int8_t channel);

#endif /* __ADC_H__ */
#endif /* __DEV_ADC_H__ */
6 changes: 3 additions & 3 deletions components/drivers/include/drivers/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* 2022-09-01 liYony fix api rt_spi_sendrecv16 about MSB and LSB bug
*/

#ifndef __SPI_H__
#define __SPI_H__
#ifndef __DEV_SPI_H__
#define __DEV_SPI_H__

#include <stdlib.h>
#include <rtthread.h>
Expand Down Expand Up @@ -370,4 +370,4 @@ rt_err_t rt_qspi_send(struct rt_qspi_device *device, const void *send_buf, rt_si
}
#endif

#endif
#endif /* __DEV_SPI_H__ */