Chengdu Ebyte Electronic Technology Co., Ltd.
E32-900MBL-1 User Manual
Copyright © 2012–20 21 , Chengdu Ebyte Electronic Technology Co., Ltd.
11
function after confirming that the sending or receiving is complete. As shown in the figure
below, just fill in the user's logic function in the To-do prompt position. The state is
transmitted by the module driver, and is actually processed by the Exx_GoTransmit()
function. When the function is complex, it can be considered to be modified to support
more situations.
ebyte_exx.h
Some conventional modulation parameters are defined, generally do not need to be
modified, you can adjust them by yourself. Note, please understand the instructions in the
comments when modifying. There is a range check for parameters in the module driver,
and wrong modulation parameters will cause initialization failure. The following figure
shows an example of FSK modulation parameters:
board.c
STM8 peripheral initialization, involving SPI, TIMER, GPIO, etc., is strongly coupled
with the hardware used.
board_button.c
The key event queue is a FIFO in terms of data structure. After the timer detects the
button, it will store the corresponding event in the queue and wait for the main loop to
respond.
board_mini_printf.c Simplified printf, although the function has shrunk, it occupies a small volume. The
DEBUG macro in the project mainly depends on the mprintf provided by this file.
ebyte_kfifo.c
Used for serial port data reception, optimized general-purpose FIFO queue, suitable for
cache.
ebyte_debug.c
It is used to connect to a PC for some tests, and generally does not need to be used.
stm8l15x_it.c
All interrupt function entrances will focus on the interrupt service functions such as serial
port, timer, button IO, etc.