c03: use beeper module.

This commit is contained in:
Martin Preuss
2026-02-02 21:20:47 +01:00
parent 40033db235
commit a8cdf6ec58
3 changed files with 16 additions and 1 deletions

View File

@@ -60,6 +60,18 @@
; ---------------------------------------------------------------------------
; Beeper module
.equ BEEPER_SIMPLE_ONTIME = 1 ; shorter
.equ BEEPER_SIMPLE_OFFTIME = 0 ; longer
.equ BEEPER_SIMPLE_DDR = DDRD
.equ BEEPER_SIMPLE_PORT = PORTD
.equ BEEPER_SIMPLE_PORTIN = PIND
.equ BEEPER_SIMPLE_PINNUM = PORTD7
; ---------------------------------------------------------------------------
; LED module

View File

@@ -48,6 +48,7 @@
#define MODULES_CLOCK
;#define MODULES_XRAM
;#define MODULES_HEAP
#define MODULES_BEEPER_SIMPLE
#define MODULES_LED_SIMPLE
#define MODULES_NETWORK
;#define MODULES_COMONUART0
@@ -97,7 +98,8 @@
.equ VALUE_ID_DEBUG = 0x7f
.equ VALUE_ID_LEDSIMPLE_TIMING = 0x88
.equ VALUE_ID_LEDSIMPLE_TIMING = 0x88
.equ VALUE_ID_BEEPERSIMPLE_TIMING = 0x89
.equ VALUE_ID_SENSOR_CO2_BASE = 0x90
.equ VALUE_ID_SENSOR_CO2_SOURCE = 0x90

View File

@@ -6,6 +6,7 @@
<values>
<value name="LEDTIMING" id="0x88" type="actor" dataType="uint16" />
<value name="BEEPERTIMING" id="0x89" type="actor" dataType="uint16" />
<value name="CO2_SOURCE" id="0x90" type="actor" dataType="uint16" />
<value name="CO2_LIMIT_WARN" id="0x91" type="actor" dataType="uint32" />