![]() |
snickerdoodle Platform Controller
firmware for STM32F0 platform controller
|
Platform Controller Functions. More...
Go to the source code of this file.
Macros | |
#define | CONS_UART_RX_BUFF_SIZE 128 |
#define | WL18xx_ANTENNA_SMA ((uint8_t)0x01) |
#define | WL18xx_ANTENNA_CHIP ((uint8_t)0x02) |
#define | BOOT_STACK_ADDR 0x200014A8 |
#define | SYS_MEM_START_ADDR 0x1FFFC800 |
#define | IS_WL18xx_ANTENNA_MODE(__MODE__) |
Check that the antenna selection is valid. More... | |
#define | TOGGLE_BIT(__REG__, __BIT__) |
Toggle a single bit within a register. More... | |
Enumerations | |
enum | sd_uart_usb_err { SD_UART_USB_SUCCESS, SD_UART_USB_ERROR } |
UART to USB bridge error enumeration. More... | |
enum | sd_zynq_boot { SD_ZYNQ_BOOT_JTAG = 0x00, SD_ZYNQ_BOOT_NAND = 0x01, SD_ZYNQ_BOOT_QSPI = 0x02, SD_ZYNQ_BOOT_SD = 0x03 } |
Zynq boot pin enumeration. More... | |
enum | sd_boot_button { SD_BOOT_DFU = 0x00, SD_BOOT_QSPI = 0x01, SD_BOOT_JTAG = 0x02, SD_BOOT_DEFAULT = 0x03 } |
Boot button press state. More... | |
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... | |
Platform Controller Functions.
Copyright (c) 2016, krtkl inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project.