mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-19 06:48:34 +03:00
octsimtest: most code for support of this new board
* code for controlling the Card slot + frequencyt divider muxes * put everything in place to build cardem application for it Change-Id: I7e03e0c0f2999a1ce2dad966d98e22033fa58465
This commit is contained in:
16
firmware/libboard/octsimtest/include/mux.h
Normal file
16
firmware/libboard/octsimtest/include/mux.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
void mux_init(void);
|
||||
void mux_set_slot(uint8_t s);
|
||||
void mux_set_freq(uint8_t s);
|
||||
|
||||
/* this reflects the wiring between U5 and U4 */
|
||||
#define MUX_FREQ_DIV_2 0
|
||||
#define MUX_FREQ_DIV_4 1
|
||||
#define MUX_FREQ_DIV_16 2
|
||||
#define MUX_FREQ_DIV_32 3
|
||||
#define MUX_FREQ_DIV_32 3
|
||||
#define MUX_FREQ_DIV_128 4
|
||||
#define MUX_FREQ_DIV_512 5
|
||||
#define MUX_FREQ_DIV_2048 6
|
||||
#define MUX_FREQ_DIV_4096 7
|
||||
Reference in New Issue
Block a user