Shadowtrance e64f4ff16b
M5Stack StickS3 - New Tab5 - driver modules (#516)
Font size set to 18 for 800x480 displays
Fix web server dashboard not rendering when sdcard isn't present

Added new driver modules
-  BM8563 RTC
- RX8130CE RTC
- MPU6886 IMU
- QMI8658 IMU
- M5PM1 Power Management Chip

Applied the above modules to applicable devicetrees.

Added new device: M5Stack StickS3

Added new M5Stack Tab5 St7123 variant.

ButtonControl changed to use interupts and xQueue, added AppClose action.

And some bonus symbols of course, the apps are hungry for symbols.
2026-03-20 10:07:57 +01:00

46 lines
1.1 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <stdint.h>
#include <tactility/error.h>
struct Device;
#ifdef __cplusplus
extern "C" {
#endif
struct Rx8130ceConfig {
/** Address on bus */
uint8_t address;
};
struct Rx8130ceDateTime {
uint16_t year; // 20002099
uint8_t month; // 112
uint8_t day; // 131
uint8_t hour; // 023
uint8_t minute; // 059
uint8_t second; // 059
};
/**
* Read the current date and time from the RTC.
* @param[in] device rx8130ce device
* @param[out] dt Pointer to Rx8130ceDateTime to populate
* @return ERROR_NONE on success, ERROR_INVALID_STATE if VLF is set (clock data unreliable)
*/
error_t rx8130ce_get_datetime(struct Device* device, struct Rx8130ceDateTime* dt);
/**
* Write the date and time to the RTC.
* @param[in] device rx8130ce device
* @param[in] dt Pointer to Rx8130ceDateTime to write (year must be 20002099)
* @return ERROR_NONE on success, ERROR_INVALID_ARGUMENT if any field is out of range
*/
error_t rx8130ce_set_datetime(struct Device* device, const struct Rx8130ceDateTime* dt);
#ifdef __cplusplus
}
#endif