Brick Groove Machine 0.9.3
Firmware embarqué pour contrôleur/synthé Brick
 
Chargement...
Recherche...
Aucune correspondance
brick_config.h
Aller à la documentation de ce fichier.
1
14#ifndef BRICK_CONFIG_H
15#define BRICK_CONFIG_H
16
17#ifndef CCM_DATA
18#define CCM_DATA __attribute__((section(".ram4"), aligned(4)))
19#endif
20
21/* =======================================================================
22 * Informations générales
23 * ======================================================================= */
24#define BRICK_FIRMWARE_VERSION "0.9.3"
25#define BRICK_DEVICE_NAME "Brick Synth Engine"
26
27/* =======================================================================
28 * Configuration matérielle globale
29 * ======================================================================= */
30#define NUM_BUTTONS 40
31#define NUM_ENCODERS 4
32#define NUM_POTS 4
33#define NUM_ADRESS_LEDS 17
34#define NUM_GPIO_LEDS 8
36/* =======================================================================
37 * LEDs adressables
38 * ======================================================================= */
39#define LED_BRIGHTNESS 32
40#define LED_MODE_DEFAULT LED_MODE_ON
42/* =======================================================================
43 * Encodeurs : profil d’accélération et “flick”
44 * ======================================================================= */
45#define ENC_TICKS_PER_STEP 8
46#define ENC_ACCEL_TAU_MS 120.0f
47#define ENC_ACCEL_V0 50.0f
48#define ENC_ACCEL_V1 300.0f
49#define ENC_ACCEL_G1 0.010f
50#define ENC_ACCEL_G2 0.003f
51#define ENC_ACCEL_MAX 10.0f
53#define ENC_FLICK_THRESH 600.0f
54#define ENC_FLICK_GAIN 0.003f
55#define ENC_FLICK_TAU_MS 150.0f
57/* =======================================================================
58 * Threads & Timings de l’interface utilisateur
59 * ======================================================================= */
60#define UI_FRAME_INTERVAL_MS 16
61#define UI_INPUT_POLL_MS 20
62#define LED_RENDER_INTERVAL_MS 20
64/* =======================================================================
65 * Cart bus
66 * ======================================================================= */
67#define CART_BUS_TIMEOUT_MS 50
68#define CART_LINK_DEFAULT CART1
69
70#endif /* BRICK_CONFIG_H */