includes: move headers to inc/ and update source files
This commit is contained in:
parent
958b2e8e00
commit
5c92ee4bb8
12 changed files with 9 additions and 8 deletions
|
|
@ -29,6 +29,7 @@ add_executable(ensaht main.c mqtt.c bmp.c aht.c ens.c)
|
|||
# Add the standard include files to the build
|
||||
target_include_directories(ensaht PRIVATE
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
${CMAKE_CURRENT_LIST_DIR}/inc
|
||||
${CMAKE_CURRENT_LIST_DIR}/.. # for our common lwipopts or any other standard includes, if required
|
||||
)
|
||||
pico_set_program_name(ensaht "ensaht")
|
||||
|
|
|
|||
2
aht.c
2
aht.c
|
|
@ -1,4 +1,4 @@
|
|||
#include "aht.h"
|
||||
#include "inc/aht.h"
|
||||
|
||||
#include "hardware/i2c.h"
|
||||
#include "pico/stdlib.h" // IWYU pragma: keep
|
||||
|
|
|
|||
2
bmp.c
2
bmp.c
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright 2026 A.M. Rowsell <amr@frzn.dev>
|
||||
// SPDX-License-Identifier: MIT
|
||||
#include "./bmp.h"
|
||||
#include "inc/bmp.h"
|
||||
|
||||
float bmp_cal_data_fp[15];
|
||||
|
||||
|
|
|
|||
2
ens.c
2
ens.c
|
|
@ -1,4 +1,4 @@
|
|||
#include "ens.h"
|
||||
#include "inc/ens.h"
|
||||
|
||||
#include "hardware/i2c.h"
|
||||
#include "pico/stdlib.h" // IWYU pragma: keep
|
||||
|
|
|
|||
8
main.c
8
main.c
|
|
@ -18,10 +18,10 @@
|
|||
* the readings to Adafruit IO over MQTT using the Pico W.
|
||||
******************************************************************************/
|
||||
|
||||
#include "./aht.h"
|
||||
#include "./bmp.h"
|
||||
#include "./ens.h"
|
||||
#include "./mqtt.h"
|
||||
#include "inc/aht.h"
|
||||
#include "inc/bmp.h"
|
||||
#include "inc/ens.h"
|
||||
#include "inc/mqtt.h"
|
||||
#include "hardware/gpio.h"
|
||||
#include "hardware/i2c.h"
|
||||
#include "pico/cyw43_arch.h"
|
||||
|
|
|
|||
2
mqtt.c
2
mqtt.c
|
|
@ -1,4 +1,4 @@
|
|||
#include "mqtt.h"
|
||||
#include "inc/mqtt.h"
|
||||
|
||||
#include "lwip/altcp.h" // IWYU pragma: keep
|
||||
#include "lwip/altcp_tls.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue