diff --git a/os/halnew/hal.mk b/os/hal/hal.mk similarity index 100% rename from os/halnew/hal.mk rename to os/hal/hal.mk diff --git a/os/halnew/include/adc.h b/os/hal/include/adc.h similarity index 100% rename from os/halnew/include/adc.h rename to os/hal/include/adc.h diff --git a/os/halnew/include/can.h b/os/hal/include/can.h similarity index 100% rename from os/halnew/include/can.h rename to os/hal/include/can.h diff --git a/os/halnew/include/hal.h b/os/hal/include/hal.h similarity index 100% rename from os/halnew/include/hal.h rename to os/hal/include/hal.h diff --git a/os/halnew/include/hal_channels.h b/os/hal/include/hal_channels.h similarity index 100% rename from os/halnew/include/hal_channels.h rename to os/hal/include/hal_channels.h diff --git a/os/halnew/include/hal_queues.h b/os/hal/include/hal_queues.h similarity index 100% rename from os/halnew/include/hal_queues.h rename to os/hal/include/hal_queues.h diff --git a/os/halnew/include/hal_streams.h b/os/hal/include/hal_streams.h similarity index 100% rename from os/halnew/include/hal_streams.h rename to os/hal/include/hal_streams.h diff --git a/os/halnew/include/icu.h b/os/hal/include/icu.h similarity index 100% rename from os/halnew/include/icu.h rename to os/hal/include/icu.h diff --git a/os/halnew/include/pal.h b/os/hal/include/pal.h similarity index 100% rename from os/halnew/include/pal.h rename to os/hal/include/pal.h diff --git a/os/halnew/include/pwm.h b/os/hal/include/pwm.h similarity index 100% rename from os/halnew/include/pwm.h rename to os/hal/include/pwm.h diff --git a/os/halnew/include/serial.h b/os/hal/include/serial.h similarity index 100% rename from os/halnew/include/serial.h rename to os/hal/include/serial.h diff --git a/os/halnew/include/spi.h b/os/hal/include/spi.h similarity index 100% rename from os/halnew/include/spi.h rename to os/hal/include/spi.h diff --git a/os/halnew/include/st.h b/os/hal/include/st.h similarity index 100% rename from os/halnew/include/st.h rename to os/hal/include/st.h diff --git a/os/halnew/osal/chibios/osal.c b/os/hal/osal/chibios/osal.c similarity index 100% rename from os/halnew/osal/chibios/osal.c rename to os/hal/osal/chibios/osal.c diff --git a/os/halnew/osal/chibios/osal.h b/os/hal/osal/chibios/osal.h similarity index 100% rename from os/halnew/osal/chibios/osal.h rename to os/hal/osal/chibios/osal.h diff --git a/os/halnew/osal/chibios/osal.mk b/os/hal/osal/chibios/osal.mk similarity index 100% rename from os/halnew/osal/chibios/osal.mk rename to os/hal/osal/chibios/osal.mk diff --git a/os/halnew/platforms/STM32/GPIOv1/pal_lld.c b/os/hal/platforms/STM32/GPIOv1/pal_lld.c similarity index 100% rename from os/halnew/platforms/STM32/GPIOv1/pal_lld.c rename to os/hal/platforms/STM32/GPIOv1/pal_lld.c diff --git a/os/halnew/platforms/STM32/GPIOv1/pal_lld.h b/os/hal/platforms/STM32/GPIOv1/pal_lld.h similarity index 100% rename from os/halnew/platforms/STM32/GPIOv1/pal_lld.h rename to os/hal/platforms/STM32/GPIOv1/pal_lld.h diff --git a/os/halnew/platforms/STM32/GPIOv2/pal_lld.c b/os/hal/platforms/STM32/GPIOv2/pal_lld.c similarity index 100% rename from os/halnew/platforms/STM32/GPIOv2/pal_lld.c rename to os/hal/platforms/STM32/GPIOv2/pal_lld.c diff --git a/os/halnew/platforms/STM32/GPIOv2/pal_lld.h b/os/hal/platforms/STM32/GPIOv2/pal_lld.h similarity index 100% rename from os/halnew/platforms/STM32/GPIOv2/pal_lld.h rename to os/hal/platforms/STM32/GPIOv2/pal_lld.h diff --git a/os/halnew/platforms/STM32/I2Cv1/i2c_lld.c b/os/hal/platforms/STM32/I2Cv1/i2c_lld.c similarity index 100% rename from os/halnew/platforms/STM32/I2Cv1/i2c_lld.c rename to os/hal/platforms/STM32/I2Cv1/i2c_lld.c diff --git a/os/halnew/platforms/STM32/I2Cv1/i2c_lld.h b/os/hal/platforms/STM32/I2Cv1/i2c_lld.h similarity index 100% rename from os/halnew/platforms/STM32/I2Cv1/i2c_lld.h rename to os/hal/platforms/STM32/I2Cv1/i2c_lld.h diff --git a/os/halnew/platforms/STM32/I2Cv2/i2c_lld.c b/os/hal/platforms/STM32/I2Cv2/i2c_lld.c similarity index 100% rename from os/halnew/platforms/STM32/I2Cv2/i2c_lld.c rename to os/hal/platforms/STM32/I2Cv2/i2c_lld.c diff --git a/os/halnew/platforms/STM32/I2Cv2/i2c_lld.h b/os/hal/platforms/STM32/I2Cv2/i2c_lld.h similarity index 100% rename from os/halnew/platforms/STM32/I2Cv2/i2c_lld.h rename to os/hal/platforms/STM32/I2Cv2/i2c_lld.h diff --git a/os/halnew/platforms/STM32/OTGv1/stm32_otg.h b/os/hal/platforms/STM32/OTGv1/stm32_otg.h similarity index 100% rename from os/halnew/platforms/STM32/OTGv1/stm32_otg.h rename to os/hal/platforms/STM32/OTGv1/stm32_otg.h diff --git a/os/halnew/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c similarity index 100% rename from os/halnew/platforms/STM32/OTGv1/usb_lld.c rename to os/hal/platforms/STM32/OTGv1/usb_lld.c diff --git a/os/halnew/platforms/STM32/OTGv1/usb_lld.h b/os/hal/platforms/STM32/OTGv1/usb_lld.h similarity index 100% rename from os/halnew/platforms/STM32/OTGv1/usb_lld.h rename to os/hal/platforms/STM32/OTGv1/usb_lld.h diff --git a/os/halnew/platforms/STM32/RTCv1/rtc_lld.c b/os/hal/platforms/STM32/RTCv1/rtc_lld.c similarity index 100% rename from os/halnew/platforms/STM32/RTCv1/rtc_lld.c rename to os/hal/platforms/STM32/RTCv1/rtc_lld.c diff --git a/os/halnew/platforms/STM32/RTCv1/rtc_lld.h b/os/hal/platforms/STM32/RTCv1/rtc_lld.h similarity index 100% rename from os/halnew/platforms/STM32/RTCv1/rtc_lld.h rename to os/hal/platforms/STM32/RTCv1/rtc_lld.h diff --git a/os/halnew/platforms/STM32/RTCv2/rtc_lld.c b/os/hal/platforms/STM32/RTCv2/rtc_lld.c similarity index 100% rename from os/halnew/platforms/STM32/RTCv2/rtc_lld.c rename to os/hal/platforms/STM32/RTCv2/rtc_lld.c diff --git a/os/halnew/platforms/STM32/RTCv2/rtc_lld.h b/os/hal/platforms/STM32/RTCv2/rtc_lld.h similarity index 100% rename from os/halnew/platforms/STM32/RTCv2/rtc_lld.h rename to os/hal/platforms/STM32/RTCv2/rtc_lld.h diff --git a/os/halnew/platforms/STM32/SPIv1/spi_lld.c b/os/hal/platforms/STM32/SPIv1/spi_lld.c similarity index 100% rename from os/halnew/platforms/STM32/SPIv1/spi_lld.c rename to os/hal/platforms/STM32/SPIv1/spi_lld.c diff --git a/os/halnew/platforms/STM32/SPIv1/spi_lld.h b/os/hal/platforms/STM32/SPIv1/spi_lld.h similarity index 100% rename from os/halnew/platforms/STM32/SPIv1/spi_lld.h rename to os/hal/platforms/STM32/SPIv1/spi_lld.h diff --git a/os/halnew/platforms/STM32/SPIv2/spi_lld.c b/os/hal/platforms/STM32/SPIv2/spi_lld.c similarity index 100% rename from os/halnew/platforms/STM32/SPIv2/spi_lld.c rename to os/hal/platforms/STM32/SPIv2/spi_lld.c diff --git a/os/halnew/platforms/STM32/SPIv2/spi_lld.h b/os/hal/platforms/STM32/SPIv2/spi_lld.h similarity index 100% rename from os/halnew/platforms/STM32/SPIv2/spi_lld.h rename to os/hal/platforms/STM32/SPIv2/spi_lld.h diff --git a/os/halnew/platforms/STM32/USARTv1/serial_lld.c b/os/hal/platforms/STM32/USARTv1/serial_lld.c similarity index 100% rename from os/halnew/platforms/STM32/USARTv1/serial_lld.c rename to os/hal/platforms/STM32/USARTv1/serial_lld.c diff --git a/os/halnew/platforms/STM32/USARTv1/serial_lld.h b/os/hal/platforms/STM32/USARTv1/serial_lld.h similarity index 100% rename from os/halnew/platforms/STM32/USARTv1/serial_lld.h rename to os/hal/platforms/STM32/USARTv1/serial_lld.h diff --git a/os/halnew/platforms/STM32/USARTv1/uart_lld.c b/os/hal/platforms/STM32/USARTv1/uart_lld.c similarity index 100% rename from os/halnew/platforms/STM32/USARTv1/uart_lld.c rename to os/hal/platforms/STM32/USARTv1/uart_lld.c diff --git a/os/halnew/platforms/STM32/USARTv1/uart_lld.h b/os/hal/platforms/STM32/USARTv1/uart_lld.h similarity index 100% rename from os/halnew/platforms/STM32/USARTv1/uart_lld.h rename to os/hal/platforms/STM32/USARTv1/uart_lld.h diff --git a/os/halnew/platforms/STM32/USARTv2/serial_lld.c b/os/hal/platforms/STM32/USARTv2/serial_lld.c similarity index 100% rename from os/halnew/platforms/STM32/USARTv2/serial_lld.c rename to os/hal/platforms/STM32/USARTv2/serial_lld.c diff --git a/os/halnew/platforms/STM32/USARTv2/serial_lld.h b/os/hal/platforms/STM32/USARTv2/serial_lld.h similarity index 100% rename from os/halnew/platforms/STM32/USARTv2/serial_lld.h rename to os/hal/platforms/STM32/USARTv2/serial_lld.h diff --git a/os/halnew/platforms/STM32/USARTv2/uart_lld.c b/os/hal/platforms/STM32/USARTv2/uart_lld.c similarity index 100% rename from os/halnew/platforms/STM32/USARTv2/uart_lld.c rename to os/hal/platforms/STM32/USARTv2/uart_lld.c diff --git a/os/halnew/platforms/STM32/USARTv2/uart_lld.h b/os/hal/platforms/STM32/USARTv2/uart_lld.h similarity index 100% rename from os/halnew/platforms/STM32/USARTv2/uart_lld.h rename to os/hal/platforms/STM32/USARTv2/uart_lld.h diff --git a/os/halnew/platforms/STM32/USBv1/stm32_usb.h b/os/hal/platforms/STM32/USBv1/stm32_usb.h similarity index 100% rename from os/halnew/platforms/STM32/USBv1/stm32_usb.h rename to os/hal/platforms/STM32/USBv1/stm32_usb.h diff --git a/os/halnew/platforms/STM32/USBv1/usb_lld.c b/os/hal/platforms/STM32/USBv1/usb_lld.c similarity index 100% rename from os/halnew/platforms/STM32/USBv1/usb_lld.c rename to os/hal/platforms/STM32/USBv1/usb_lld.c diff --git a/os/halnew/platforms/STM32/USBv1/usb_lld.h b/os/hal/platforms/STM32/USBv1/usb_lld.h similarity index 100% rename from os/halnew/platforms/STM32/USBv1/usb_lld.h rename to os/hal/platforms/STM32/USBv1/usb_lld.h diff --git a/os/halnew/platforms/STM32/can_lld.c b/os/hal/platforms/STM32/can_lld.c similarity index 100% rename from os/halnew/platforms/STM32/can_lld.c rename to os/hal/platforms/STM32/can_lld.c diff --git a/os/halnew/platforms/STM32/can_lld.h b/os/hal/platforms/STM32/can_lld.h similarity index 100% rename from os/halnew/platforms/STM32/can_lld.h rename to os/hal/platforms/STM32/can_lld.h diff --git a/os/halnew/platforms/STM32/ext_lld.c b/os/hal/platforms/STM32/ext_lld.c similarity index 100% rename from os/halnew/platforms/STM32/ext_lld.c rename to os/hal/platforms/STM32/ext_lld.c diff --git a/os/halnew/platforms/STM32/ext_lld.h b/os/hal/platforms/STM32/ext_lld.h similarity index 100% rename from os/halnew/platforms/STM32/ext_lld.h rename to os/hal/platforms/STM32/ext_lld.h diff --git a/os/halnew/platforms/STM32/gpt_lld.c b/os/hal/platforms/STM32/gpt_lld.c similarity index 100% rename from os/halnew/platforms/STM32/gpt_lld.c rename to os/hal/platforms/STM32/gpt_lld.c diff --git a/os/halnew/platforms/STM32/gpt_lld.h b/os/hal/platforms/STM32/gpt_lld.h similarity index 100% rename from os/halnew/platforms/STM32/gpt_lld.h rename to os/hal/platforms/STM32/gpt_lld.h diff --git a/os/halnew/platforms/STM32/i2s_lld.c b/os/hal/platforms/STM32/i2s_lld.c similarity index 100% rename from os/halnew/platforms/STM32/i2s_lld.c rename to os/hal/platforms/STM32/i2s_lld.c diff --git a/os/halnew/platforms/STM32/i2s_lld.h b/os/hal/platforms/STM32/i2s_lld.h similarity index 100% rename from os/halnew/platforms/STM32/i2s_lld.h rename to os/hal/platforms/STM32/i2s_lld.h diff --git a/os/halnew/platforms/STM32/icu_lld.c b/os/hal/platforms/STM32/icu_lld.c similarity index 100% rename from os/halnew/platforms/STM32/icu_lld.c rename to os/hal/platforms/STM32/icu_lld.c diff --git a/os/halnew/platforms/STM32/icu_lld.h b/os/hal/platforms/STM32/icu_lld.h similarity index 100% rename from os/halnew/platforms/STM32/icu_lld.h rename to os/hal/platforms/STM32/icu_lld.h diff --git a/os/halnew/platforms/STM32/mac_lld.c b/os/hal/platforms/STM32/mac_lld.c similarity index 100% rename from os/halnew/platforms/STM32/mac_lld.c rename to os/hal/platforms/STM32/mac_lld.c diff --git a/os/halnew/platforms/STM32/mac_lld.h b/os/hal/platforms/STM32/mac_lld.h similarity index 100% rename from os/halnew/platforms/STM32/mac_lld.h rename to os/hal/platforms/STM32/mac_lld.h diff --git a/os/halnew/platforms/STM32/pwm_lld.c b/os/hal/platforms/STM32/pwm_lld.c similarity index 100% rename from os/halnew/platforms/STM32/pwm_lld.c rename to os/hal/platforms/STM32/pwm_lld.c diff --git a/os/halnew/platforms/STM32/pwm_lld.h b/os/hal/platforms/STM32/pwm_lld.h similarity index 100% rename from os/halnew/platforms/STM32/pwm_lld.h rename to os/hal/platforms/STM32/pwm_lld.h diff --git a/os/halnew/platforms/STM32/sdc_lld.c b/os/hal/platforms/STM32/sdc_lld.c similarity index 100% rename from os/halnew/platforms/STM32/sdc_lld.c rename to os/hal/platforms/STM32/sdc_lld.c diff --git a/os/halnew/platforms/STM32/sdc_lld.h b/os/hal/platforms/STM32/sdc_lld.h similarity index 100% rename from os/halnew/platforms/STM32/sdc_lld.h rename to os/hal/platforms/STM32/sdc_lld.h diff --git a/os/halnew/platforms/STM32/st_lld.c b/os/hal/platforms/STM32/st_lld.c similarity index 100% rename from os/halnew/platforms/STM32/st_lld.c rename to os/hal/platforms/STM32/st_lld.c diff --git a/os/halnew/platforms/STM32/st_lld.h b/os/hal/platforms/STM32/st_lld.h similarity index 100% rename from os/halnew/platforms/STM32/st_lld.h rename to os/hal/platforms/STM32/st_lld.h diff --git a/os/halnew/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h similarity index 100% rename from os/halnew/platforms/STM32/stm32.h rename to os/hal/platforms/STM32/stm32.h diff --git a/os/halnew/platforms/STM32F30x/adc_lld.c b/os/hal/platforms/STM32F30x/adc_lld.c similarity index 100% rename from os/halnew/platforms/STM32F30x/adc_lld.c rename to os/hal/platforms/STM32F30x/adc_lld.c diff --git a/os/halnew/platforms/STM32F30x/adc_lld.h b/os/hal/platforms/STM32F30x/adc_lld.h similarity index 100% rename from os/halnew/platforms/STM32F30x/adc_lld.h rename to os/hal/platforms/STM32F30x/adc_lld.h diff --git a/os/halnew/platforms/STM32F30x/ext_lld_isr.c b/os/hal/platforms/STM32F30x/ext_lld_isr.c similarity index 100% rename from os/halnew/platforms/STM32F30x/ext_lld_isr.c rename to os/hal/platforms/STM32F30x/ext_lld_isr.c diff --git a/os/halnew/platforms/STM32F30x/ext_lld_isr.h b/os/hal/platforms/STM32F30x/ext_lld_isr.h similarity index 100% rename from os/halnew/platforms/STM32F30x/ext_lld_isr.h rename to os/hal/platforms/STM32F30x/ext_lld_isr.h diff --git a/os/halnew/platforms/STM32F30x/hal_lld.c b/os/hal/platforms/STM32F30x/hal_lld.c similarity index 100% rename from os/halnew/platforms/STM32F30x/hal_lld.c rename to os/hal/platforms/STM32F30x/hal_lld.c diff --git a/os/halnew/platforms/STM32F30x/hal_lld.h b/os/hal/platforms/STM32F30x/hal_lld.h similarity index 100% rename from os/halnew/platforms/STM32F30x/hal_lld.h rename to os/hal/platforms/STM32F30x/hal_lld.h diff --git a/os/halnew/platforms/STM32F30x/platform.mk b/os/hal/platforms/STM32F30x/platform.mk similarity index 100% rename from os/halnew/platforms/STM32F30x/platform.mk rename to os/hal/platforms/STM32F30x/platform.mk diff --git a/os/halnew/platforms/STM32F30x/stm32_dma.c b/os/hal/platforms/STM32F30x/stm32_dma.c similarity index 100% rename from os/halnew/platforms/STM32F30x/stm32_dma.c rename to os/hal/platforms/STM32F30x/stm32_dma.c diff --git a/os/halnew/platforms/STM32F30x/stm32_dma.h b/os/hal/platforms/STM32F30x/stm32_dma.h similarity index 100% rename from os/halnew/platforms/STM32F30x/stm32_dma.h rename to os/hal/platforms/STM32F30x/stm32_dma.h diff --git a/os/halnew/platforms/STM32F30x/stm32_isr.h b/os/hal/platforms/STM32F30x/stm32_isr.h similarity index 100% rename from os/halnew/platforms/STM32F30x/stm32_isr.h rename to os/hal/platforms/STM32F30x/stm32_isr.h diff --git a/os/halnew/platforms/STM32F30x/stm32_rcc.h b/os/hal/platforms/STM32F30x/stm32_rcc.h similarity index 100% rename from os/halnew/platforms/STM32F30x/stm32_rcc.h rename to os/hal/platforms/STM32F30x/stm32_rcc.h diff --git a/os/halnew/platforms/STM32F30x/stm32_registry.h b/os/hal/platforms/STM32F30x/stm32_registry.h similarity index 100% rename from os/halnew/platforms/STM32F30x/stm32_registry.h rename to os/hal/platforms/STM32F30x/stm32_registry.h diff --git a/os/halnew/platforms/STM32F30x/stm32f30x.h b/os/hal/platforms/STM32F30x/stm32f30x.h similarity index 100% rename from os/halnew/platforms/STM32F30x/stm32f30x.h rename to os/hal/platforms/STM32F30x/stm32f30x.h diff --git a/os/halnew/platforms/common/ARMCMx/nvic.c b/os/hal/platforms/common/ARMCMx/nvic.c similarity index 100% rename from os/halnew/platforms/common/ARMCMx/nvic.c rename to os/hal/platforms/common/ARMCMx/nvic.c diff --git a/os/halnew/platforms/common/ARMCMx/nvic.h b/os/hal/platforms/common/ARMCMx/nvic.h similarity index 100% rename from os/halnew/platforms/common/ARMCMx/nvic.h rename to os/hal/platforms/common/ARMCMx/nvic.h diff --git a/os/halnew/src/adc.c b/os/hal/src/adc.c similarity index 100% rename from os/halnew/src/adc.c rename to os/hal/src/adc.c diff --git a/os/halnew/src/can.c b/os/hal/src/can.c similarity index 100% rename from os/halnew/src/can.c rename to os/hal/src/can.c diff --git a/os/halnew/src/hal.c b/os/hal/src/hal.c similarity index 100% rename from os/halnew/src/hal.c rename to os/hal/src/hal.c diff --git a/os/halnew/src/hal_queues.c b/os/hal/src/hal_queues.c similarity index 100% rename from os/halnew/src/hal_queues.c rename to os/hal/src/hal_queues.c diff --git a/os/halnew/src/icu.c b/os/hal/src/icu.c similarity index 100% rename from os/halnew/src/icu.c rename to os/hal/src/icu.c diff --git a/os/halnew/src/pal.c b/os/hal/src/pal.c similarity index 100% rename from os/halnew/src/pal.c rename to os/hal/src/pal.c diff --git a/os/halnew/src/pwm.c b/os/hal/src/pwm.c similarity index 100% rename from os/halnew/src/pwm.c rename to os/hal/src/pwm.c diff --git a/os/halnew/src/serial.c b/os/hal/src/serial.c similarity index 100% rename from os/halnew/src/serial.c rename to os/hal/src/serial.c diff --git a/os/halnew/src/spi.c b/os/hal/src/spi.c similarity index 100% rename from os/halnew/src/spi.c rename to os/hal/src/spi.c diff --git a/os/halnew/src/st.c b/os/hal/src/st.c similarity index 100% rename from os/halnew/src/st.c rename to os/hal/src/st.c diff --git a/os/halnew/templates/osal.c b/os/hal/templates/osal.c similarity index 100% rename from os/halnew/templates/osal.c rename to os/hal/templates/osal.c diff --git a/os/halnew/templates/osal.h b/os/hal/templates/osal.h similarity index 100% rename from os/halnew/templates/osal.h rename to os/hal/templates/osal.h