FwLib_STC8 icon indicating copy to clipboard operation
FwLib_STC8 copied to clipboard

Thanks and a fix

Open porcinus opened this issue 3 years ago • 4 comments

First, a huge thanks for you library. I never used a STC8 MCU before and your work greatly helped me :)

I made a "helper" file to compute and reverse compute some values related to prescalers. If you are interested, you can borrow the file or any parts of it ;) https://github.com/porcinus/NNS-Ambiclone-Mono/blob/main/code/src/FwLib_STC8_helper.h

During coding, I also notice an error (I think, haven't tried but this generate a error) in https://github.com/IOsetting/FwLib_STC8/blob/master/include/fw_rcc.h In macro RCC_SetPowerDownWakeupTimerCountdown(16BIT_COUNT): (16BIT_COUNT << 8) should be (16BIT_COUNT >> 8)

porcinus avatar Feb 11 '23 19:02 porcinus

Thanks for the report, there are quite some errors in fw_rcc.h. I have updated it accordingly. Please let me know if there are any other errors.

IOsetting avatar Feb 12 '23 08:02 IOsetting

FwLib_STC8_helper.h looks nice, I will borrow some code if you don't mind :smile:

IOsetting avatar Feb 13 '23 01:02 IOsetting

Thanks for the report, there are quite some errors in fw_rcc.h. I have updated it accordingly. Please let me know if there are any other errors.

This was the only error i noticed :)

porcinus avatar Feb 13 '23 07:02 porcinus

FwLib_STC8_helper.h looks nice, I will borrow some code if you don't mind smile

Take any parts you want ;)

porcinus avatar Feb 13 '23 07:02 porcinus