Added modbus registers and stuff.

This commit is contained in:
David Žaitlík
2022-06-17 23:15:59 +02:00
parent eaab788dde
commit 4b3a9927ba
57 changed files with 9363 additions and 9921 deletions

View File

@@ -5,7 +5,11 @@ Core/Src/config.o: ../Core/Src/config.c ../Core/Inc/config.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h \
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329/ltr329.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_i2c.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_utils.h \
../Core/Inc/i2c.h
../Core/Inc/config.h:
@@ -22,3 +26,11 @@ Core/Src/config.o: ../Core/Src/config.c ../Core/Inc/config.h \
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h:
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329/ltr329.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_i2c.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_utils.h:
../Core/Inc/i2c.h:

Binary file not shown.

View File

@@ -1,7 +1,7 @@
config.c:43:8:config_read 16 static
config.c:70:8:config_write 16 static
config.c:135:15:eeprom_lock 24 static
config.c:165:15:eeprom_unlock 24 static
config.c:198:15:eeprom_program_byte 16 static
config.c:213:15:eeprom_program_halfword 16 static
config.c:229:15:eeprom_program_word 16 static
config.c:58:8:config_write 16 static
config.c:88:15:eeprom_lock 24 static
config.c:118:15:eeprom_unlock 24 static
config.c:151:15:eeprom_program_byte 16 static
config.c:166:15:eeprom_program_halfword 16 static
config.c:182:15:eeprom_program_word 16 static

View File

@@ -1,3 +0,0 @@
Core/Src/crc8.o: ../Core/Src/crc8.c ../Core/Inc/crc8.h
../Core/Inc/crc8.h:

Binary file not shown.

View File

@@ -1,83 +0,0 @@
Core/Src/ltr329.o: ../Core/Src/ltr329.c ../Core/Inc/ltr329.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_i2c.h \
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l0xx.h \
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_utils.h \
../Core/Inc/i2c.h ../Core/Inc/main.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_iwdg.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_crs.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_rcc.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_bus.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_system.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_exti.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_cortex.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_pwr.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_dma.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_tim.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_usart.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_gpio.h \
../Core/Inc/sht4x.h ../Core/Inc/crc8.h ../Core/Inc/ltr329.h \
../Core/Inc/modbus.h ../Core/Inc/config.h
../Core/Inc/ltr329.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_i2c.h:
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l0xx.h:
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_utils.h:
../Core/Inc/i2c.h:
../Core/Inc/main.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_iwdg.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_crs.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_rcc.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_bus.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_system.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_exti.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_cortex.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_pwr.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_dma.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_tim.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_usart.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_gpio.h:
../Core/Inc/sht4x.h:
../Core/Inc/crc8.h:
../Core/Inc/ltr329.h:
../Core/Inc/modbus.h:
../Core/Inc/config.h:

Binary file not shown.

View File

@@ -1,8 +0,0 @@
ltr329.c:10:15:ltr329_read_register 40 static
ltr329.c:38:15:ltr329_write_register 32 static
ltr329.c:56:8:ltr329_write_settings 32 static
ltr329.c:75:8:ltr329_read_settings 48 static
ltr329.c:108:8:ltr329_sw_reset 24 static
ltr329.c:120:8:ltr329_measure 24 static
ltr329.c:150:8:ltr329_read_status_register 40 static
ltr329.c:188:8:ltr329_read_device_info 32 static

View File

@@ -20,8 +20,12 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_tim.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_usart.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_gpio.h \
../Core/Inc/i2c.h ../Core/Inc/sht4x.h ../Core/Inc/crc8.h \
../Core/Inc/ltr329.h ../Core/Inc/modbus.h ../Core/Inc/config.h
../Core/Inc/i2c.h \
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x/sht4x.h \
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329/ltr329.h \
../Core/Inc/i2c.h \
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus/modbus.h \
../Core/Inc/config.h
../Core/Inc/main.h:
@@ -69,12 +73,12 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
../Core/Inc/i2c.h:
../Core/Inc/sht4x.h:
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x/sht4x.h:
../Core/Inc/crc8.h:
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329/ltr329.h:
../Core/Inc/ltr329.h:
../Core/Inc/i2c.h:
../Core/Inc/modbus.h:
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus/modbus.h:
../Core/Inc/config.h:

Binary file not shown.

View File

@@ -57,16 +57,26 @@ stm32l0xx_ll_usart.h:2996:22:LL_USART_EnableIT_RXNE 32 static,ignoring_inline_as
stm32l0xx_ll_usart.h:3145:22:LL_USART_DisableIT_IDLE 32 static,ignoring_inline_asm
stm32l0xx_ll_usart.h:3156:22:LL_USART_DisableIT_RXNE 32 static,ignoring_inline_asm
stm32l0xx_ll_usart.h:3639:22:LL_USART_TransmitData9 16 static
main.c:135:5:main 32 static
main.c:316:6:SystemClock_Config 8 static
main.c:369:13:MX_I2C1_Init 72 static
main.c:432:13:MX_IWDG_Init 8 static
main.c:462:13:MX_TIM21_Init 24 static
main.c:501:13:MX_USART2_UART_Init 72 static
main.c:586:13:MX_GPIO_Init 8 static
main.c:595:6:USART2_TX_Buffer 24 static,ignoring_inline_asm
main.c:606:8:uart_disable_interrupts 8 static
main.c:615:8:uart_enable_interrupts 8 static
main.c:624:8:modbus_slave_callback 32 static
main.c:709:8:modbus_transmit_function 16 static
main.c:721:6:Error_Handler 8 static,ignoring_inline_asm
main.c:129:8:sht4x_i2c_transmit 32 static
main.c:134:8:sht4x_i2c_receive 32 static
main.c:139:9:sensirion_crc8_calculate 16 static
main.c:144:8:sht4x_disable_interrupts 8 static
main.c:149:8:sht4x_enable_interrupts 8 static
main.c:154:8:ltr329_i2c_transmit 32 static
main.c:158:8:ltr329_i2c_receive 32 static
main.c:163:8:ltr329_disable_interrupts 8 static
main.c:168:8:ltr329_enable_interrupts 8 static
main.c:173:6:delay_ms 16 static
main.c:183:5:main 32 static
main.c:374:6:SystemClock_Config 8 static
main.c:427:13:MX_I2C1_Init 72 static
main.c:490:13:MX_IWDG_Init 8 static
main.c:520:13:MX_TIM21_Init 24 static
main.c:559:13:MX_USART2_UART_Init 72 static
main.c:644:13:MX_GPIO_Init 8 static
main.c:653:6:USART2_TX_Buffer 24 static,ignoring_inline_asm
main.c:664:8:uart_disable_interrupts 8 static
main.c:673:8:uart_enable_interrupts 8 static
main.c:682:8:modbus_slave_callback 32 static
main.c:839:8:modbus_transmit_function 16 static
main.c:851:6:Error_Handler 8 static,ignoring_inline_asm

View File

@@ -1,3 +0,0 @@
Core/Src/modbus.o: ../Core/Src/modbus.c ../Core/Inc/modbus.h
../Core/Inc/modbus.h:

Binary file not shown.

View File

@@ -1,83 +0,0 @@
Core/Src/sht4x.o: ../Core/Src/sht4x.c ../Core/Inc/sht4x.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_i2c.h \
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l0xx.h \
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_utils.h \
../Core/Inc/i2c.h ../Core/Inc/crc8.h ../Core/Inc/main.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_iwdg.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_crs.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_rcc.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_bus.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_system.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_exti.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_cortex.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_pwr.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_dma.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_tim.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_usart.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_gpio.h \
../Core/Inc/sht4x.h ../Core/Inc/ltr329.h ../Core/Inc/modbus.h \
../Core/Inc/config.h
../Core/Inc/sht4x.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_i2c.h:
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l0xx.h:
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_utils.h:
../Core/Inc/i2c.h:
../Core/Inc/crc8.h:
../Core/Inc/main.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_iwdg.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_crs.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_rcc.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_bus.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_system.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_exti.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_cortex.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_pwr.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_dma.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_tim.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_usart.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_gpio.h:
../Core/Inc/sht4x.h:
../Core/Inc/ltr329.h:
../Core/Inc/modbus.h:
../Core/Inc/config.h:

Binary file not shown.

View File

@@ -1,3 +0,0 @@
sht4x.c:11:8:sht4x_send_cmd 16 static
sht4x.c:16:8:sht4x_read_data 16 static
sht4x.c:21:8:sht4x_measure 96 static

View File

@@ -20,9 +20,12 @@ Core/Src/stm32l0xx_it.o: ../Core/Src/stm32l0xx_it.c ../Core/Inc/main.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_tim.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_usart.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_gpio.h \
../Core/Inc/i2c.h ../Core/Inc/sht4x.h ../Core/Inc/crc8.h \
../Core/Inc/ltr329.h ../Core/Inc/modbus.h ../Core/Inc/config.h \
../Core/Inc/stm32l0xx_it.h ../Core/Inc/modbus.h
../Core/Inc/i2c.h \
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x/sht4x.h \
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329/ltr329.h \
../Core/Inc/i2c.h \
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus/modbus.h \
../Core/Inc/config.h ../Core/Inc/stm32l0xx_it.h
../Core/Inc/main.h:
@@ -70,16 +73,14 @@ Core/Src/stm32l0xx_it.o: ../Core/Src/stm32l0xx_it.c ../Core/Inc/main.h \
../Core/Inc/i2c.h:
../Core/Inc/sht4x.h:
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x/sht4x.h:
../Core/Inc/crc8.h:
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329/ltr329.h:
../Core/Inc/ltr329.h:
../Core/Inc/i2c.h:
../Core/Inc/modbus.h:
/home/david/VelesLabs/Smart\ Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus/modbus.h:
../Core/Inc/config.h:
../Core/Inc/stm32l0xx_it.h:
../Core/Inc/modbus.h:

Binary file not shown.

View File

@@ -6,12 +6,8 @@
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../Core/Src/config.c \
../Core/Src/crc8.c \
../Core/Src/i2c.c \
../Core/Src/ltr329.c \
../Core/Src/main.c \
../Core/Src/modbus.c \
../Core/Src/sht4x.c \
../Core/Src/stm32l0xx_it.c \
../Core/Src/syscalls.c \
../Core/Src/sysmem.c \
@@ -19,12 +15,8 @@ C_SRCS += \
OBJS += \
./Core/Src/config.o \
./Core/Src/crc8.o \
./Core/Src/i2c.o \
./Core/Src/ltr329.o \
./Core/Src/main.o \
./Core/Src/modbus.o \
./Core/Src/sht4x.o \
./Core/Src/stm32l0xx_it.o \
./Core/Src/syscalls.o \
./Core/Src/sysmem.o \
@@ -32,12 +24,8 @@ OBJS += \
C_DEPS += \
./Core/Src/config.d \
./Core/Src/crc8.d \
./Core/Src/i2c.d \
./Core/Src/ltr329.d \
./Core/Src/main.d \
./Core/Src/modbus.d \
./Core/Src/sht4x.d \
./Core/Src/stm32l0xx_it.d \
./Core/Src/syscalls.d \
./Core/Src/sysmem.d \
@@ -46,12 +34,12 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes
Core/Src/%.o: ../Core/Src/%.c Core/Src/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DSTM32L031xx -DUSE_FULL_LL_DRIVER -DHSE_VALUE=8000000 -DHSE_STARTUP_TIMEOUT=100 -DLSE_STARTUP_TIMEOUT=5000 -DLSE_VALUE=32768 -DMSI_VALUE=2097000 -DHSI_VALUE=16000000 -DLSI_VALUE=37000 -DVDD_VALUE=3300 -DPREFETCH_ENABLE=0 -DINSTRUCTION_CACHE_ENABLE=1 -DDATA_CACHE_ENABLE=1 -c -I../Core/Inc -I../Drivers/STM32L0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
arm-none-eabi-gcc "$<" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DSTM32L031xx -DUSE_FULL_LL_DRIVER -DHSE_VALUE=8000000 -DHSE_STARTUP_TIMEOUT=100 -DLSE_STARTUP_TIMEOUT=5000 -DLSE_VALUE=32768 -DMSI_VALUE=2097000 -DHSI_VALUE=16000000 -DLSI_VALUE=37000 -DVDD_VALUE=3300 -DPREFETCH_ENABLE=0 -DINSTRUCTION_CACHE_ENABLE=1 -DDATA_CACHE_ENABLE=1 -c -I../Core/Inc -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/crc8" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x" -I../Drivers/STM32L0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
clean: clean-Core-2f-Src
clean-Core-2f-Src:
-$(RM) ./Core/Src/config.d ./Core/Src/config.o ./Core/Src/crc8.d ./Core/Src/crc8.o ./Core/Src/i2c.d ./Core/Src/i2c.o ./Core/Src/ltr329.d ./Core/Src/ltr329.o ./Core/Src/main.d ./Core/Src/main.o ./Core/Src/modbus.d ./Core/Src/modbus.o ./Core/Src/sht4x.d ./Core/Src/sht4x.o ./Core/Src/stm32l0xx_it.d ./Core/Src/stm32l0xx_it.o ./Core/Src/syscalls.d ./Core/Src/syscalls.o ./Core/Src/sysmem.d ./Core/Src/sysmem.o ./Core/Src/system_stm32l0xx.d ./Core/Src/system_stm32l0xx.o
-$(RM) ./Core/Src/config.d ./Core/Src/config.o ./Core/Src/i2c.d ./Core/Src/i2c.o ./Core/Src/main.d ./Core/Src/main.o ./Core/Src/stm32l0xx_it.d ./Core/Src/stm32l0xx_it.o ./Core/Src/syscalls.d ./Core/Src/syscalls.o ./Core/Src/sysmem.d ./Core/Src/sysmem.o ./Core/Src/system_stm32l0xx.d ./Core/Src/system_stm32l0xx.o
.PHONY: clean-Core-2f-Src

View File

@@ -16,7 +16,7 @@ S_DEPS += \
# Each subdirectory must supply rules for building sources it contributes
Core/Startup/%.o: ../Core/Startup/%.s Core/Startup/subdir.mk
arm-none-eabi-gcc -mcpu=cortex-m0plus -g3 -DDEBUG -c -x assembler-with-cpp -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" "$<"
arm-none-eabi-gcc -mcpu=cortex-m0plus -g3 -DDEBUG -c -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/crc8" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x" -x assembler-with-cpp -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" "$<"
clean: clean-Core-2f-Startup

View File

@@ -40,7 +40,7 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes
Drivers/STM32L0xx_HAL_Driver/Src/%.o: ../Drivers/STM32L0xx_HAL_Driver/Src/%.c Drivers/STM32L0xx_HAL_Driver/Src/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DSTM32L031xx -DUSE_FULL_LL_DRIVER -DHSE_VALUE=8000000 -DHSE_STARTUP_TIMEOUT=100 -DLSE_STARTUP_TIMEOUT=5000 -DLSE_VALUE=32768 -DMSI_VALUE=2097000 -DHSI_VALUE=16000000 -DLSI_VALUE=37000 -DVDD_VALUE=3300 -DPREFETCH_ENABLE=0 -DINSTRUCTION_CACHE_ENABLE=1 -DDATA_CACHE_ENABLE=1 -c -I../Core/Inc -I../Drivers/STM32L0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
arm-none-eabi-gcc "$<" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DSTM32L031xx -DUSE_FULL_LL_DRIVER -DHSE_VALUE=8000000 -DHSE_STARTUP_TIMEOUT=100 -DLSE_STARTUP_TIMEOUT=5000 -DLSE_VALUE=32768 -DMSI_VALUE=2097000 -DHSI_VALUE=16000000 -DLSI_VALUE=37000 -DVDD_VALUE=3300 -DPREFETCH_ENABLE=0 -DINSTRUCTION_CACHE_ENABLE=1 -DDATA_CACHE_ENABLE=1 -c -I../Core/Inc -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/crc8" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x" -I../Drivers/STM32L0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
clean: clean-Drivers-2f-STM32L0xx_HAL_Driver-2f-Src

View File

@@ -0,0 +1,3 @@
Libs/crc8/crc8.o: ../Libs/crc8/crc8.c ../Libs/crc8/crc8.h
../Libs/crc8/crc8.h:

BIN
fw/Debug/Libs/crc8/crc8.o Normal file

Binary file not shown.

View File

@@ -0,0 +1 @@
crc8.c:14:9:crc8_calculate 24 static

View File

@@ -0,0 +1,27 @@
################################################################################
# Automatically-generated file. Do not edit!
# Toolchain: GNU Tools for STM32 (9-2020-q2-update)
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../Libs/crc8/crc8.c
OBJS += \
./Libs/crc8/crc8.o
C_DEPS += \
./Libs/crc8/crc8.d
# Each subdirectory must supply rules for building sources it contributes
Libs/crc8/%.o: ../Libs/crc8/%.c Libs/crc8/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DSTM32L031xx -DUSE_FULL_LL_DRIVER -DHSE_VALUE=8000000 -DHSE_STARTUP_TIMEOUT=100 -DLSE_STARTUP_TIMEOUT=5000 -DLSE_VALUE=32768 -DMSI_VALUE=2097000 -DHSI_VALUE=16000000 -DLSI_VALUE=37000 -DVDD_VALUE=3300 -DPREFETCH_ENABLE=0 -DINSTRUCTION_CACHE_ENABLE=1 -DDATA_CACHE_ENABLE=1 -c -I../Core/Inc -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/crc8" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x" -I../Drivers/STM32L0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
clean: clean-Libs-2f-crc8
clean-Libs-2f-crc8:
-$(RM) ./Libs/crc8/crc8.d ./Libs/crc8/crc8.o
.PHONY: clean-Libs-2f-crc8

View File

@@ -0,0 +1,33 @@
Libs/ltr329/ltr329.o: ../Libs/ltr329/ltr329.c ../Libs/ltr329/ltr329.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_i2c.h \
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l0xx.h \
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h \
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_utils.h \
../Core/Inc/i2c.h
../Libs/ltr329/ltr329.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_i2c.h:
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l0xx.h:
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h:
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_utils.h:
../Core/Inc/i2c.h:

Binary file not shown.

View File

@@ -0,0 +1,8 @@
ltr329.c:22:15:ltr329_read_register 40 static
ltr329.c:50:15:ltr329_write_register 32 static
ltr329.c:68:8:ltr329_write_settings 32 static
ltr329.c:87:8:ltr329_read_settings 48 static
ltr329.c:120:8:ltr329_sw_reset 24 static
ltr329.c:132:8:ltr329_measure 24 static
ltr329.c:162:8:ltr329_read_status_register 40 static
ltr329.c:200:8:ltr329_read_device_info 32 static

View File

@@ -0,0 +1,27 @@
################################################################################
# Automatically-generated file. Do not edit!
# Toolchain: GNU Tools for STM32 (9-2020-q2-update)
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../Libs/ltr329/ltr329.c
OBJS += \
./Libs/ltr329/ltr329.o
C_DEPS += \
./Libs/ltr329/ltr329.d
# Each subdirectory must supply rules for building sources it contributes
Libs/ltr329/%.o: ../Libs/ltr329/%.c Libs/ltr329/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DSTM32L031xx -DUSE_FULL_LL_DRIVER -DHSE_VALUE=8000000 -DHSE_STARTUP_TIMEOUT=100 -DLSE_STARTUP_TIMEOUT=5000 -DLSE_VALUE=32768 -DMSI_VALUE=2097000 -DHSI_VALUE=16000000 -DLSI_VALUE=37000 -DVDD_VALUE=3300 -DPREFETCH_ENABLE=0 -DINSTRUCTION_CACHE_ENABLE=1 -DDATA_CACHE_ENABLE=1 -c -I../Core/Inc -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/crc8" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x" -I../Drivers/STM32L0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
clean: clean-Libs-2f-ltr329
clean-Libs-2f-ltr329:
-$(RM) ./Libs/ltr329/ltr329.d ./Libs/ltr329/ltr329.o
.PHONY: clean-Libs-2f-ltr329

View File

@@ -0,0 +1,3 @@
Libs/modbus/modbus.o: ../Libs/modbus/modbus.c ../Libs/modbus/modbus.h
../Libs/modbus/modbus.h:

Binary file not shown.

View File

@@ -0,0 +1,8 @@
modbus.c:33:10:modbus_CRC16 32 static
modbus.c:57:16:modbus_fill_device_id_objects 40 static
modbus.c:107:15:modbus_transaction_to_buffer 56 static
modbus.c:170:15:modbus_process_device_id_request 32 static
modbus.c:217:15:modbus_process_read_write_request 40 static
modbus.c:341:8:modbus_slave_set_address 16 static
modbus.c:352:8:modbus_slave_process_msg 312 static
modbus.c:408:8:modbus_slave_init_device_id 16 static

View File

@@ -0,0 +1,27 @@
################################################################################
# Automatically-generated file. Do not edit!
# Toolchain: GNU Tools for STM32 (9-2020-q2-update)
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../Libs/modbus/modbus.c
OBJS += \
./Libs/modbus/modbus.o
C_DEPS += \
./Libs/modbus/modbus.d
# Each subdirectory must supply rules for building sources it contributes
Libs/modbus/%.o: ../Libs/modbus/%.c Libs/modbus/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DSTM32L031xx -DUSE_FULL_LL_DRIVER -DHSE_VALUE=8000000 -DHSE_STARTUP_TIMEOUT=100 -DLSE_STARTUP_TIMEOUT=5000 -DLSE_VALUE=32768 -DMSI_VALUE=2097000 -DHSI_VALUE=16000000 -DLSI_VALUE=37000 -DVDD_VALUE=3300 -DPREFETCH_ENABLE=0 -DINSTRUCTION_CACHE_ENABLE=1 -DDATA_CACHE_ENABLE=1 -c -I../Core/Inc -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/crc8" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x" -I../Drivers/STM32L0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
clean: clean-Libs-2f-modbus
clean-Libs-2f-modbus:
-$(RM) ./Libs/modbus/modbus.d ./Libs/modbus/modbus.o
.PHONY: clean-Libs-2f-modbus

View File

@@ -0,0 +1,3 @@
Libs/sht4x/sht4x.o: ../Libs/sht4x/sht4x.c ../Libs/sht4x/sht4x.h
../Libs/sht4x/sht4x.h:

BIN
fw/Debug/Libs/sht4x/sht4x.o Normal file

Binary file not shown.

View File

@@ -0,0 +1,3 @@
sht4x.c:29:8:sht4x_send_cmd 16 static
sht4x.c:34:8:sht4x_read_data 16 static
sht4x.c:39:8:sht4x_measure 96 static

View File

@@ -0,0 +1,27 @@
################################################################################
# Automatically-generated file. Do not edit!
# Toolchain: GNU Tools for STM32 (9-2020-q2-update)
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../Libs/sht4x/sht4x.c
OBJS += \
./Libs/sht4x/sht4x.o
C_DEPS += \
./Libs/sht4x/sht4x.d
# Each subdirectory must supply rules for building sources it contributes
Libs/sht4x/%.o: ../Libs/sht4x/%.c Libs/sht4x/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DSTM32L031xx -DUSE_FULL_LL_DRIVER -DHSE_VALUE=8000000 -DHSE_STARTUP_TIMEOUT=100 -DLSE_STARTUP_TIMEOUT=5000 -DLSE_VALUE=32768 -DMSI_VALUE=2097000 -DHSI_VALUE=16000000 -DLSI_VALUE=37000 -DVDD_VALUE=3300 -DPREFETCH_ENABLE=0 -DINSTRUCTION_CACHE_ENABLE=1 -DDATA_CACHE_ENABLE=1 -c -I../Core/Inc -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/crc8" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/ltr329" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/modbus" -I"/home/david/VelesLabs/Smart Household/wired_sensors/RHT_Wired_Sensor/fw/Libs/sht4x" -I../Drivers/STM32L0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
clean: clean-Libs-2f-sht4x
clean-Libs-2f-sht4x:
-$(RM) ./Libs/sht4x/sht4x.d ./Libs/sht4x/sht4x.o
.PHONY: clean-Libs-2f-sht4x

View File

@@ -9,6 +9,10 @@ RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include Libs/sht4x/subdir.mk
-include Libs/modbus/subdir.mk
-include Libs/ltr329/subdir.mk
-include Libs/crc8/subdir.mk
-include Drivers/STM32L0xx_HAL_Driver/Src/subdir.mk
-include Core/Startup/subdir.mk
-include Core/Src/subdir.mk

View File

@@ -1,10 +1,6 @@
"./Core/Src/config.o"
"./Core/Src/crc8.o"
"./Core/Src/i2c.o"
"./Core/Src/ltr329.o"
"./Core/Src/main.o"
"./Core/Src/modbus.o"
"./Core/Src/sht4x.o"
"./Core/Src/stm32l0xx_it.o"
"./Core/Src/syscalls.o"
"./Core/Src/sysmem.o"
@@ -19,3 +15,7 @@
"./Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_ll_tim.o"
"./Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_ll_usart.o"
"./Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_ll_utils.o"
"./Libs/crc8/crc8.o"
"./Libs/ltr329/ltr329.o"
"./Libs/modbus/modbus.o"
"./Libs/sht4x/sht4x.o"

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -23,4 +23,8 @@ SUBDIRS := \
Core/Src \
Core/Startup \
Drivers/STM32L0xx_HAL_Driver/Src \
Libs/crc8 \
Libs/ltr329 \
Libs/modbus \
Libs/sht4x \