Crate sma_q3

Source
Expand description

Tock kernel for the SMA Q3 smartwatch.

It is based on nRF52840 SoC (Cortex M4 core with a BLE transceiver) with SWD as I/O and many peripherals.

Reverse-engineered documentation available at: https://hackaday.io/project/175577-hackable-nrf52840-smart-watch

Modulesยง

io
UART Writer

Structsยง

Platform
Supported drivers by the platform

Constantsยง

BUTTON_PIN ๐Ÿ”’
DEFAULT_EXT_SRC_MAC ๐Ÿ”’
FAULT_RESPONSE ๐Ÿ”’
I2C_TEMP_SCL_PIN ๐Ÿ”’
I2C_TEMP_SDA_PIN ๐Ÿ”’
I2C pins for the temp/pressure sensor
LED1_PIN ๐Ÿ”’
NUM_PROCS ๐Ÿ”’
PAN_ID ๐Ÿ”’
SRC_MAC ๐Ÿ”’
VIBRA1_PIN ๐Ÿ”’

Staticsยง

CHIP ๐Ÿ”’
PROCESSES ๐Ÿ”’
PROCESS_PRINTER ๐Ÿ”’
STACK_MEMORY
Dummy buffer that causes the linker to reserve enough space for the stack.

Functionsยง

mainโš 
Main function called after RAM initialized.
startโš 
This is in a separate, inline(never) function so that its stack frame is removed when this function returns. Otherwise, the stack space used for these static_inits is wasted.

Type Aliasesยง

Bmp280Sensor ๐Ÿ”’
Ieee802154Driver ๐Ÿ”’
RngDriver ๐Ÿ”’
TemperatureDriver ๐Ÿ”’