1
0
Fork 0

[docs] Improve halconf/mcuconf code examples (#24597)

This commit is contained in:
Ryan 2024-11-15 05:00:02 +11:00 committed by GitHub
parent a8a47c4011
commit 46236ce3de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 222 additions and 136 deletions

View file

@ -90,18 +90,22 @@ PS2_ENABLE = yes
PS2_DRIVER = interrupt
```
In your keyboard config.h:
In your keyboard `config.h`:
```c
#define PS2_CLOCK_PIN A8
#define PS2_DATA_PIN A9
```
And in the chibios specifig halconf.h:
```c
#define PAL_USE_CALLBACKS TRUE
```
And in the ChibiOS specific `halconf.h`:
```c
#pragma once
#define PAL_USE_CALLBACKS TRUE // [!code focus]
#include_next <halconf.h>
```
### USART Version {#usart-version}