changeset 60:c661a87159c2

buzzer component nailed down
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 01 Dec 2021 06:50:25 +0000
parents 66d99b5be8a3
children fdc67fac0507
files venus/src/MCL venus/src/Makefile venus/src/periph/buzzer_wrap.v venus/src/primitives
diffstat 4 files changed, 32 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/venus/src/MCL	Wed Dec 01 04:08:35 2021 +0000
+++ b/venus/src/MCL	Wed Dec 01 06:50:25 2021 +0000
@@ -834,6 +834,16 @@
  footprint=file:KWH020ST23-F01
  npins=36
 
+# Old-style buzzer
+
+LS401:
+ manufacturer=CUI
+ manufacturer_part_number=CMT-8530S-SMT-TR
+ description=Magnetic buzzer, 8.5x8.5 mm, SMT
+ vendor=Digi-Key
+ vendor_part_number=102-3736-1-ND
+ npins=4
+
 # Transistors
 
 part EMB9:
--- a/venus/src/Makefile	Wed Dec 01 04:08:35 2021 +0000
+++ b/venus/src/Makefile	Wed Dec 01 06:50:25 2021 +0000
@@ -9,14 +9,14 @@
 	core/rita_rf_chip.v core/rita_vcxo_int.v core/rita_wrap.v \
 	core/xtal_32khz_wrap.v \
 	periph/MAX1916.v periph/Si9407AEY.v periph/audio_main.v \
-	periph/audio_hso.v periph/battery.v periph/bl_current_select.v \
-	periph/bl_current_sink.v periph/calypso_uart_in.v \
-	periph/charging_circuit.v periph/charging_led.v \
-	periph/inv_buffer_74LVC1G04.v periph/jtag_if.v periph/keypad.v \
-	periph/keyswitch_wrap.v periph/lcd_module.v periph/lcd_subsystem.v \
-	periph/led_mosfet.v periph/led_npn.v periph/loudspeaker.v \
-	periph/sim_socket_block.v periph/sim_socket_wrap.v periph/sma_wrap.v \
-	periph/trrs_jack.v \
+	periph/audio_hso.v periph/battery.v periph/buzzer_wrap.v \
+	periph/bl_current_select.v periph/bl_current_sink.v \
+	periph/calypso_uart_in.v periph/charging_circuit.v \
+	periph/charging_led.v periph/inv_buffer_74LVC1G04.v periph/jtag_if.v \
+	periph/keypad.v periph/keyswitch_wrap.v periph/lcd_module.v \
+	periph/lcd_subsystem.v periph/led_mosfet.v periph/led_npn.v \
+	periph/loudspeaker.v periph/sim_socket_block.v periph/sim_socket_wrap.v\
+	periph/sma_wrap.v periph/trrs_jack.v \
 	top/board.v top/mobile.v \
 	usb/FT2232D_block.v usb/FT2232D_chip.v usb/eeprom_93Cx6_16bit.v \
 	usb/regulator_ic.v usb/regulator_with_caps.v usb/usb_conn.v \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/venus/src/periph/buzzer_wrap.v	Wed Dec 01 06:50:25 2021 +0000
@@ -0,0 +1,13 @@
+/* wrapper for the buzzer PCB footprint */
+
+module buzzer_wrap (Pos, Neg);
+
+input Pos, Neg;
+
+pkg_buzzer pkg (.pin_1(Pos),
+		.pin_2(Neg),
+		.pin_3(),	/* no connect */
+		.pin_4()	/* ditto */
+	);
+
+endmodule
--- a/venus/src/primitives	Wed Dec 01 04:08:35 2021 +0000
+++ b/venus/src/primitives	Wed Dec 01 06:50:25 2021 +0000
@@ -72,6 +72,7 @@
 /* misc peripherals */
 lcd_module_fp		numpins 36;
 pkg_SIM_socket		numpins 8;
+pkg_buzzer		numpins 4;
 basic_LED		mapped_pins (A, C);
 misc_diode		mapped_pins (A, C);
 switch_2pin		numpins 2;