circuitpython/ports/stm32/boards/LEGO_HUB_NO7/cc2564.c
David Lechner 10f85fee18 stm32/boards/LEGO_HUB_NO7: Add LEGO Hub No. 7 board definition.
This adds support for the LEGO Hub No. 7, aka LEGO Technic Small hub, aka
LEGO SPIKE Essential hub.  This board is largely similar to Hub No. 6:

- Same MCU (STM32F413 - different packaging with fewer pins).
- Same Bluetooth chip (TI CC2564).
- Same IMU chip.
- Similar external flash chip - 4MiB instead of 32MiB.
- 2 I/O ports instead of 6.
- No display - only status and battery LEDs.
- Different LED driver chip.
- Only 1 button which is also the power button.
- No speaker.

Signed-off-by: David Lechner <david@pybricks.com>
2022-08-06 00:01:31 +10:00

7 lines
189 B
C

// LEGO_HUB_NO7 is nearly identical to LEGO_HUB_NO6 in this regard.
#define CC2564_TIMER_BT_SLOWCLOCK_TIM 2
#define CC2564_TIMER_BT_SLOWCLOCK_TIM_CH 2
#include "../LEGO_HUB_NO6/cc2564.c"