-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add RV-8263-C8 driver - Couple smaller changes
- Loading branch information
Showing
15 changed files
with
416 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# Copyright (c) 2024, Daniel Kampert | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Copyright (c) 2024 Daniel Kampert | ||
# Author: Daniel Kampert <DanielKampert@Kampis-Elektroecke.de> | ||
|
||
zephyr_sources(microcrystal_rv8263c8.c) | ||
zephyr_sources(interrupt/microcrystal_rv8263c8_interrupt.c) | ||
zephyr_sources(microcrystal_rv8263c8.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
# RV-8263-C8 RTC configuration options. | ||
|
||
# Copyright (c) 240, Daniel Kampert | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
menuconfig RV_8263_C8 | ||
bool "RV-8263-C8 RTC" | ||
depends on DT_HAS_MICROCRYSTAL_RV_8263_C8_ENABLED | ||
default y | ||
select I2C | ||
help | ||
Enable the driver for the RV-8263-C8 RTC. | ||
|
||
if RV_8263_C8 | ||
|
||
module = MICROCRYSTAL_RV_8263_C8 | ||
module-str = MICROCRYSTAL_RV_8263_C8 | ||
source "subsys/logging/Kconfig.template.log_config" | ||
|
||
config RV_8263_C8_THREAD_STACK_SIZE | ||
int "RTC delayed work thread stack size" | ||
depends on RV_8263_C8_INTERRUPT_OWN_THREAD | ||
default 1024 | ||
|
||
config RV_8263_C8_THREAD_PRIORITY | ||
int "RV-8263-C8 thread priority" | ||
depends on RV_8263_C8_INTERRUPT_OWN_THREAD | ||
default 10 | ||
# Copyright (c) 2024 Daniel Kampert | ||
# Author: Daniel Kampert <DanielKampert@Kampis-Elektroecke.de> | ||
|
||
config RTC_RV8263 | ||
bool "Micro Crystal RV-8263-C8 RTC driver" | ||
default y | ||
depends on DT_HAS_MICROCRYSTAL_RV_8263_C8_ENABLED | ||
select I2C | ||
help | ||
Micro Crystal RV-8263-C8 RTC driver. | ||
|
||
if RTC_RV8263 | ||
config RTC_RV8263_UPDATE_THREAD_STACK_SIZE | ||
int "Stack size for the RV-8263-C8 update thread" | ||
depends on RTC_UPDATE | ||
default 512 | ||
help | ||
Size of the stack used for the thread handling RTC updates. | ||
|
||
config RTC_RV8263_UPDATE_THREAD_PRIORITY | ||
int "RV-8263-C8 update thread priority" | ||
depends on RTC_UPDATE | ||
default 0 | ||
help | ||
Priority level for the thread handling RTC updates. | ||
|
||
config RTC_RV8263_ALARM_THREAD_STACK_SIZE | ||
int "Stack size for the RV-8263-C8 interrupt thread" | ||
depends on RTC_RV8263_ALARM_OWN_THREAD | ||
default 512 | ||
help | ||
Size of the stack used for the thread handling interrupts and dispatching callbacks. | ||
|
||
config RTC_RV8263_ALARM_THREAD_PRIORITY | ||
int "RV-8263-C8 alarm thread priority" | ||
depends on RTC_RV8263_ALARM_OWN_THREAD | ||
default 0 | ||
help | ||
Priority level for the thread handling interrupts and dispatching callbacks. | ||
|
||
choice | ||
prompt "RV-8263-C8 interrupt mode" | ||
default RV_8263_C8_INTERRUPT_NONE | ||
|
||
config RV_8263_C8_INTERRUPT_NONE | ||
bool "No interrupt" | ||
help | ||
Disable the INTERRUPT interface. | ||
prompt "RV-8263-C8 alarm handling mode" | ||
default RTC_RV8263_ALARM_OWN_THREAD | ||
|
||
config RV_8263_C8_INTERRUPT_GLOBAL_THREAD | ||
config RTC_RV8263_ALARM_GLOBAL_THREAD | ||
depends on GPIO | ||
select RV_8263_C8_INTERRUPT | ||
bool "Use workqueue" | ||
help | ||
Use the global workqueue to process the interrupts from the RV-8263-C8. | ||
|
||
config RV_8263_C8_INTERRUPT_OWN_THREAD | ||
config RTC_RV8263_ALARM_OWN_THREAD | ||
depends on GPIO | ||
select RV_8263_C8_INTERRUPT | ||
bool "Use driver thread" | ||
help | ||
Use a separate thread to process the interrupts from the RV-8263-C8. | ||
endchoice | ||
|
||
config RV_8263_C8_INTERRUPT | ||
bool | ||
|
||
endif |
70 changes: 0 additions & 70 deletions
70
app/drivers/rtc/rv8263c8/interrupt/microcrystal_rv8263c8_interrupt.c
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
app/drivers/rtc/rv8263c8/interrupt/microcrystal_rv8263c8_interrupt.h
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.