snickerdoodle Platform Controller
firmware for STM32F0 platform controller
Platform Configuration

Platform specific board level configuration and control. More...

Modules

 Device Firmware Upgrade
 
 Platform Definitions
 
 Platform Exported Variables
 
 Platform Functions
 
 Platform Variables
 snickerdoodle platform variables
 
 UART to USB Bridge
 snickerdoodle UART to USB bridge functions
 
 WL18xx Antenna Configuration
 
 Zynq Boot Configuration
 Zynq processing subsystem boot configuration.
 

Macros

#define SD_PLATFORM_NORMAL_BOOT   0x00
 
#define SD_PLATFORM_DFU_BOOT   0x03
 

Enumerations

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 HAL_GPIO_EXTI_Callback (uint16_t pin)
 
enum sd_boot_button sd_boot_get_button_state (void)
 Get button press state.
 
uint8_t sd_boot_timer_expired (uint32_t start, uint32_t end)
 Check if boot timer has expired. More...
 
enum sd_zynq_boot sd_boot_select (void)
 Boot selection.
 

Detailed Description

Platform specific board level configuration and control.

Macro Definition Documentation

◆ SD_PLATFORM_DFU_BOOT

#define SD_PLATFORM_DFU_BOOT   0x03

#include <Src/sd_platform.c>

Both buttons pressed

◆ SD_PLATFORM_NORMAL_BOOT

#define SD_PLATFORM_NORMAL_BOOT   0x00

#include <Src/sd_platform.c>

Not boot select, boot normally

Enumeration Type Documentation

◆ sd_boot_button

#include <Inc/sd_platform.h>

Boot button press state.

Enumerator
SD_BOOT_DFU 

Default boot

SD_BOOT_QSPI 

Boot from QPSI

SD_BOOT_JTAG 

Boot using JTAG

SD_BOOT_DEFAULT 

Device firmware boot

175  {

◆ sd_zynq_boot

#include <Inc/sd_platform.h>

Zynq boot pin enumeration.

Enumerator
SD_ZYNQ_BOOT_JTAG 

JTAG boot

SD_ZYNQ_BOOT_NAND 

NAND flash boot

SD_ZYNQ_BOOT_QSPI 

Quad SPI flash boot

SD_ZYNQ_BOOT_SD 

SD card boot

162  {

Function Documentation

◆ sd_boot_timer_expired()

uint8_t sd_boot_timer_expired ( uint32_t  start,
uint32_t  end 
)

#include <Src/sd_platform.c>

Check if boot timer has expired.

Parameters
startTimer start tick count (ms)
endTimer end count (ms)
Return values
TRUEif the timer has expired, FALSE otherwise
515 {
516  return (HAL_GetTick() > (start + end));
517 }