Skip to content

Commit c0ef7b2

Browse files
authored
Merge pull request #3 from misonyo/dev
[change|修改]fix some bug
2 parents 99f4a4d + e511c19 commit c0ef7b2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

i2c/i2c_aht10_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define AHT10_GET_DATA 0xAC /* 获取数据命令 */
2727

2828
static struct rt_i2c_bus_device *i2c_bus = RT_NULL;
29-
static bool initialized = RT_FALSE; /* 传感器初始化状态 */
29+
static rt_bool_t initialized = RT_FALSE; /* 传感器初始化状态 */
3030

3131
/* 写传感器寄存器 */
3232
static rt_err_t write_reg(struct rt_i2c_bus_device *bus, rt_uint8_t reg, rt_uint8_t *data)

pin/pin_beep_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void beep_off(void *args)
4242
rt_pin_write(BEEP_PIN_NUM, PIN_LOW);
4343
}
4444

45-
static void pin_sample(void)
45+
static void pin_beep_sample(void)
4646
{
4747
/* 按键0引脚为输入模式 */
4848
rt_pin_mode(KEY0_PIN_NUM, PIN_MODE_INPUT_PULLUP);

serial/uart_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static void serial_thread_entry(void* parameter)
3838
char str[] = "hello RT-Thread!\r\n";
3939

4040
/* 查找系统中的串口设备 */
41-
serial = rt_device_find(UART_NAME);
41+
serial = rt_device_find(SAMPLE_UART_NAME);
4242

4343
if (serial != RT_NULL)
4444
{

spi/spi_w25q_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define W25Q_SPI_DEVICE_NAME "qspi10"
2222
#endif
2323

24-
static void spi_sample(int argc,char *argv[])
24+
static void spi_w25q_sample(void)
2525
{
2626
struct rt_spi_device *spi_dev_w25q;
2727
rt_uint8_t w25x_read_id = 0x90;

0 commit comments

Comments
 (0)