#BL602 Hardware Abstraction Layer contains Test Code that calls FreeRTOS ... Will have to fix this for #Mynewt 🤔
https://github.com/lupyuen/bl_iot_sdk/blob/master/components/hal_drv/bl602_hal/bl_cks.c#L300
#BL602 Security HAL calls FreeRTOS Semaphore ... Will convert this to #Mynewt Semaphore
https://github.com/lupyuen/bl_iot_sdk/blob/master/components/hal_drv/bl602_hal/bl_sec.h#L59
#BL602 Button HAL handles Short Press, Long Press, Long Long Press and Debounce by calling FreeRTOS ... Do I need to port this to #Mynewt? 🤔
https://github.com/lupyuen/bl_iot_sdk/blob/master/components/hal_drv/bl602_hal/hal_button.c#L57-L79
#BL602 SDK ... 2 types of HAL in the same folder 🤔
https://github.com/lupyuen/bl_iot_sdk/tree/master/components/hal_drv/bl602_hal
Here's how we tell #Mynewt to build only the HAL folder from the #BL602 SDK ... And the SDK include folders
https://github.com/lupyuen/pinecone-rust-mynewt/blob/gpio/hw/mcu/bl/bl602/pkg.yml
Wonder if we should push upstream to #BL602 SDK ... These fixes for GCC compiler warnings 🤔
https://github.com/pine64/bl_iot_sdk/compare/master...lupyuen:master
Created a Pull Request that fixes GCC Warnings in #BL602 HAL ... Thanks BL602 SDK Maintainers! 🙂
Hunting for a suitable #BL602 GPIO App ... That we shall port to #Mynewt
https://github.com/lupyuen/bl_iot_sdk/blob/master/customer_app/sdk_app_gpio/sdk_app_gpio/demo.c#L60
@lupyuen disappointing shortcoming of gcc there, since _MAX is likely, like, 32 or 256 at the most, it should be able to tell that 0<=i<1000 and thus the buffer is big enough :(
@eqe yep maybe GCC will get smarter someday 😉
GCC warns about Buffer Overflow while porting #BL602 HAL to #Mynewt ... I shall enlarge the buffer to appease GCC
https://github.com/lupyuen/bl_iot_sdk/blob/master/components/hal_drv/bl602_hal/hal_button.c#L322-L341