Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bunch of compile warning fixes and addition of keil project file #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 9, 2019

  1. Added KEIL uVision project build file. Firmware is small enough that …

    …32k evaluation version can be used (-O0 build is only 14kbytes code)
    
    Changed all float constants to use f suffix to prevent double conversions
    Removed compile warnings due to HAL_GPIO_* related calls
    Added comms.h with prototypes for functions which were used in main()
    Casts and externs to fix compile warnings in various files.
    Made a bunch of file-local variables static.
    Fixed buzzerFreq/buzzerPattern extern declarations with correct type (uint8_t)
    Added static inline to blockPWM/blockPhaseCurrent to conform to C99, when a function cannot be inlined it must either provide a non-inline version or be marked as static
    Since this is C, void func() { } needs to be void func(void) { }, so fixed that in all instances.
    dongie committed Jun 9, 2019
    Configuration menu
    Copy the full SHA
    835bb6f View commit details
    Browse the repository at this point in the history