Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ce dépôt est archivé. Vous pouvez voir les fichiers et le cloner, mais vous ne pouvez pas pousser ni ouvrir de ticket/demande d'ajout.

README.md 1.5KB

12345678910111213141516171819202122232425
  1. ## USB stack implementation using ChibiOS
  2. ### Notes
  3. - To use, unpack or symlink ChibiOS here, to `chibios`.
  4. - For gcc options, inspect `chibios.mk`. For instance, I enabled `-Wno-missing-field-initializers`, because TMK common bits generated a lot of hits on that.
  5. Also pay attention to `-O0` (enabled for debugging); for deployment use `-O2`.
  6. - USB string descriptors are a mess. I did not find a way to cleanly generate the right structures from actual strings, so the definitions in individual keyboards' `config.h` are ugly as heck.
  7. - There are some random constants left so far, e.g. 5ms sleep between calling `keyboard_task` in `main.c`. There should be no such in `usb_main.c`. Everything is based on timers/interrupts/kernel scheduling (well except `keyboard_task`), so no periodically called things (again, except `keyboard_task`, which is just how TMK is designed).
  8. - It is easy to add some code for testing (e.g. blink LED, do stuff on button press, etc...) - just create another thread in `main.c`, it will run independently of the keyboard business.
  9. - The USB stack works pretty completely; however there are bits of other TMK stuff that are not done yet:
  10. ### Immediate todo
  11. - suspend / sleep led
  12. ### Missing / not working (TMK vs ChibiOS bits)
  13. - eeprom / bootmagic (will be chip dependent)
  14. - bootloader jump (chip dependent)
  15. ### Tried with
  16. - ChibiOS 3.0.1 and ST F072RB DISCOVERY board.
  17. - Need to test on other STM32 chips (F3, F4) to make it as much chip-independent as possible.