![]() |
snickerdoodle Platform Controller
firmware for STM32F0 platform controller
|
Functions | |
void | sd_wl18xx_ant_config (uint8_t ant) |
WL18xx Antenna Configuration Outputs antenna select pins for the wireless module. More... | |
void | sd_zynq_clk_enable (uint8_t en) |
Zynq Clock Enable Enables the main clock source for the Zynq APU. More... | |
void | sd_zynq_jtag_enable (uint8_t en) |
Zynq JTAG Enable Enables the JTAG interface for programming the PS or PL. More... | |
void | sd_wl_clk_enable (uint8_t en) |
Wireless Clock Enable Enable the wireless module 32kHz clock source. More... | |
void | sd_bt_enable (uint8_t en) |
Bluetooth Enable Enable the Bluetooth interface on the wireless module. More... | |
void | sd_zynq_boot_config (enum sd_zynq_boot boot) |
Zynq Boot Config Outputs boot select pins to zynq for desired boot media source. More... | |
enum sd_zynq_boot | sd_boot_select (void) |
Boot selection. | |
enum sd_uart_usb_err | sd_uart_usb_bridge_init (void) |
UART to USB Bridge Initialization Initialize UART device structure, UART to USB bridge buffer and set the UART device to use the (previously initialized) UART peripheral and newly initialized buffer. More... | |
enum sd_uart_usb_err | sd_uart_usb_transmit (struct sd_uart_dev *dev) |
UART to USB Bridge Transmission Transmit the buffer that has been recieved on the bridged UART over USB communications device. More... | |
void | sd_dfu_start (void) |
Enter Device Firmware Upgrade Mode Prepare device to enter system memory by disabling peripheral clocks, disable PLL, clear pending interrupts and disable interrupts. More... | |
void | sd_zynq_enable (void) |
Enable Zynq Power Enable the Zynq power rails by setting the enable pin high. More... | |
void | sd_zynq_disable (void) |
Disable Zynq Power Disable the Zynq power rails by setting the enable pin low. More... | |
void sd_bt_enable | ( | uint8_t | enable | ) |
#include <Inc/sd_platform.h>
Bluetooth Enable Enable the Bluetooth interface on the wireless module.
enable | State to set for Bluetooth interface |
None |
void sd_dfu_start | ( | void | ) |
#include <Inc/sd_platform.h>
Enter Device Firmware Upgrade Mode Prepare device to enter system memory by disabling peripheral clocks, disable PLL, clear pending interrupts and disable interrupts.
Disable peripheral clocks
Disable PLL
Disable systick
Run to stack pointer and execute code from system memory
enum sd_uart_usb_err sd_uart_usb_bridge_init | ( | void | ) |
#include <Inc/sd_platform.h>
UART to USB Bridge Initialization Initialize UART device structure, UART to USB bridge buffer and set the UART device to use the (previously initialized) UART peripheral and newly initialized buffer.
State | of UART USB bridge after initialization |
|
inline |
#include <Inc/sd_platform.h>
UART to USB Bridge Transmission Transmit the buffer that has been recieved on the bridged UART over USB communications device.
uart_dev | UART device structure that is bridged |
SD_UART_USB_SUCCESS | on success, error state otherwise |
void sd_wl18xx_ant_config | ( | uint8_t | ant | ) |
#include <Inc/sd_platform.h>
WL18xx Antenna Configuration Outputs antenna select pins for the wireless module.
ant | Value defining antenna configuration (two LSBs used) |
None |
void sd_wl_clk_enable | ( | uint8_t | enable | ) |
#include <Inc/sd_platform.h>
Wireless Clock Enable Enable the wireless module 32kHz clock source.
enable | State to set for clock |
None |
void sd_zynq_boot_config | ( | enum sd_zynq_boot | boot | ) |
#include <Inc/sd_platform.h>
Zynq Boot Config Outputs boot select pins to zynq for desired boot media source.
boot | Value defining boot pin outputs |
None |
void sd_zynq_clk_enable | ( | uint8_t | enable | ) |
#include <Inc/sd_platform.h>
Zynq Clock Enable Enables the main clock source for the Zynq APU.
enable | State to set for clock |
None |
void sd_zynq_disable | ( | void | ) |
#include <Inc/sd_platform.h>
Disable Zynq Power Disable the Zynq power rails by setting the enable pin low.
butt | Button used to trigger this function |
None |
void sd_zynq_enable | ( | void | ) |
#include <Inc/sd_platform.h>
Enable Zynq Power Enable the Zynq power rails by setting the enable pin high.
butt | Button used to trigger this function |
None |
void sd_zynq_jtag_enable | ( | uint8_t | enable | ) |
#include <Inc/sd_platform.h>
Zynq JTAG Enable Enables the JTAG interface for programming the PS or PL.
enable | State to set for JTAG interface |
None |