* [sn32] ct16: further chibios integration general purpose and pwm driver also introduce a reset function * build ct16 driver * [sn32] have some isr handling * 240: config the board for pwm * Revert "240: config the board for pwm" probably best to do in pwm driver This reverts commit c09059a8ba60ea1832ea14f4d557bd8e22df3fd7. * ct: logic fix. remove unecessary include * ct: typos + use notifications * ct: the periodic notification should not stop the timer * ct: pfpa assignment * ct: pwm: enable channel only if configured as active * ct: pwm: periodic tic should track the timer * derp * ct: our chip supports IRQ priority level [0-3] * isr: use the appropriate priority for each device * ct: pwm: actually handle the channels * ct: we define the # of channels already so.. * isr: we handle this on the specific drivers disable for now * ct: pwm: don't override TC. Call a counter reset * ct: pwm: Set the prescaler properly PRE is the max value of PC. PC increments on every tick. When PC reaches PRE, TC increments and the timer overflows Periodic timer is software controlled * ct: gpt: PRE is the interval. Call a counter reset * ct: Rename reset funtion to be more precise * ct: pwm: Invert the channel disable logic * ct: pwm: autoreload on period match * ct: pwm: we only care for the last 25bits of IC * ct: gpt: we only care for the last 25bits of IC * ct: pwm: init config as hw defaults * ct: pwm: mr24 is the driver callback * Revert "isr: we handle this on the specific drivers" This reverts commit 9ca061f170d9523d0e4e42011881f3d0b8dd1599. * Revert "[sn32] have some isr handling" This reverts commit cf45020072ea828522f2de2f6d5d2521398a61cd. * ct: pwm: update the periodic notification * ct: gpt: use MR0 * ct: priority bump * Revert "ct: priority bump" 3 is probably fine This reverts commit d2a861097a43f367ffbd15f6fc5d6747d9f14426. * sn32: pwm: introduce oneshot mode enable it with by defining SN32_PWM_USE_ONESHOT TRUE * pwm: reset: we have a function for that * explicitly enable pwm channels * bugfix for bad PWM_OUTPUT_MASK if it is DISABLED, bad things occur Only ever identify and use PWM_OUTPUT_ACTIVE_HIGH and PWM_OUTPUT_ACTIVE_LOW * periodic notification: clear and disable it * we definitely need this to only run at first init * ct: pwm: support 23 channel chips * ct: support 240b and 260 chips * make the macro check build * pwm: correctly set the logic level * pwm: speed improvements in our shared matrix driver, we only care about the last callback. having a shortcut to that if no other flag is raised will improve speed +ident and comment * Revert "pwm: speed improvements" This reverts commit e143544b807dd860d26548c803503521450822b8. |
||
---|---|---|
.github/workflows | ||
demos | ||
ext | ||
os | ||
testhal | ||
tools | ||
.gitignore | ||
.gitmodules | ||
AUTHORS.txt | ||
README.md | ||
lgtm.yml |
README.md
ChibiOS-Contrib
Code under this directory is not part of the core ChibiOS project and the copyright is retained by the original authors. See copyright notes in file headers.
Code is maintained via Github: https://github.com/ChibiOS/ChibiOS-Contrib
Feel free to open pull request there.
Using
Default makefiles assume this repo will be cloned in the same folder as ChibiOS.
If you use another location, you will have to edit the Makefile, or specify an alternate location to make, ie:
cd ChibiOS-Contrib/testhal/STM32/STM32F3xx/TIMCAP
make CHIBIOS=~/src/ChibiOS
A good way to use it is to clone it as a submodule inside your project:
git submodule add https://github.com/ChibiOS/ChibiOS.git
git submodule add https://github.com/ChibiOS/ChibiOS-Contrib.git
Contributing
When you submit a pull request, make sure all modified platform tests compile using the tools/build.sh script.
There is an automated check that will report errors if it doesn't.
Feel free to update authors.txt with your name.
Useful links
https://help.github.com/
http://git-scm.com/
http://chibios.org/dokuwiki/doku.php?id=chibios:guides:style_guide
http://www.chibios.com/forum/