├── .gitignore ├── FAQ.md ├── LICENSE ├── Lab1.md ├── Lab2.md ├── Lab3.md ├── Lab4.md ├── Lab5.md ├── README.md ├── cloud ├── .gitignore ├── aws_xilinx_workshop_aws_connectivity_handler │ ├── greengrasssdk │ │ ├── IoTDataPlane.py │ │ ├── Lambda.py │ │ ├── __init__.py │ │ ├── client.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ └── testing.py │ └── lambda_function.py ├── aws_xilinx_workshop_core_shadow_proxy_handler │ ├── greengrasssdk │ │ ├── IoTDataPlane.py │ │ ├── Lambda.py │ │ ├── __init__.py │ │ ├── client.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ └── testing.py │ └── lambda_function.py ├── aws_xilinx_workshop_intelligent_io_error_handler │ ├── greengrasssdk │ │ ├── IoTDataPlane.py │ │ ├── Lambda.py │ │ ├── __init__.py │ │ ├── client.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ └── testing.py │ └── lambda_function.py ├── aws_xilinx_workshop_lifecycle_handler │ └── lambda_function.py ├── aws_xilinx_workshop_telemetry_enrichment_handler │ ├── greengrasssdk │ │ ├── IoTDataPlane.py │ │ ├── Lambda.py │ │ ├── __init__.py │ │ ├── client.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ └── testing.py │ └── lambda_function.py ├── script │ ├── deploy-awsiot-objects.sh │ ├── deploy-greengrass-group.sh │ ├── deploy-lifecycle-handler.sh │ ├── deploy-s3-objects.sh │ └── make-and-deploy-lambda.sh ├── xilinx-bitstream-deploy-handler │ ├── greengrasssdk │ │ ├── IoTDataPlane.py │ │ ├── Lambda.py │ │ ├── __init__.py │ │ ├── client.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ └── testing.py │ └── lambda_function.py ├── xilinx-hello-world │ ├── greengrasssdk │ │ ├── IoTDataPlane.py │ │ ├── Lambda.py │ │ ├── __init__.py │ │ ├── client.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ └── testing.py │ └── lambda_function.py ├── xilinx-image-upload-handler │ ├── greengrasssdk │ │ ├── IoTDataPlane.py │ │ ├── Lambda.py │ │ ├── __init__.py │ │ ├── client.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ └── testing.py │ └── lambda_function.py └── xilinx-video-inference-handler │ ├── greengrasssdk │ ├── IoTDataPlane.py │ ├── Lambda.py │ ├── __init__.py │ ├── client.py │ └── utils │ │ ├── __init__.py │ │ └── testing.py │ └── lambda_function.py ├── doc ├── images │ ├── xsdk_create_boot_image.jpeg │ ├── xsdk_create_boot_image_menu.jpeg │ ├── xsdk_create_boot_image_override.jpeg │ ├── xsdk_disable_build_automatically.jpeg │ ├── xsdk_help_tab_close.jpeg │ ├── xsdk_import_project1.jpeg │ ├── xsdk_import_project2.jpeg │ ├── xsdk_import_project3.jpeg │ ├── xsdk_new_variable.jpeg │ ├── xsdk_specify_workspace.jpeg │ └── xsdk_string_subst.jpeg └── make-amazon-freertos-for-zynq7k.md ├── edge ├── .gitignore ├── script │ ├── amazon-freertos-init.sh │ └── greengrass-core-init.sh └── sd_card │ ├── BOOT.bin │ └── uzed.img.gz ├── images ├── AFR_HelloWorld_Test.png ├── AFR_HelloWorld_Test_Response.png ├── Greengrass_HelloWorld_Test.PNG ├── IAM_Role.PNG ├── Lab3_Error_Shadow.PNG ├── Lab3_NonError_Shadow.PNG ├── MicroZed_HW_Overview.png ├── MicroZed_IIoT_HW_Overview.png ├── MicroZed_MAX31855_Thermocouple_Removed.jpg ├── MicroZed_SD_CardJumperSettings.png ├── Publish_Bitstream_Deploy.PNG ├── Publish_Image_Upload.PNG ├── README ├── S3_Bucket_Create.PNG ├── S3_Bucket_Create_Menu.PNG ├── Sensor_Data_Topic.PNG ├── Ultra96_Device_Shadow.PNG ├── Ultra96_LED_Configuration.PNG ├── Ultra96_LEDs_MarkedUp.jpg ├── Ultra96_NoCamera.jpg └── Ultra96_WithCamera.jpg └── zynq7k_demo ├── README.md ├── demos ├── common │ ├── defender │ │ └── aws_defender_demo.c │ ├── demo_runner │ │ └── aws_demo_runner.c │ ├── devmode_key_provisioning │ │ └── aws_dev_mode_key_provisioning.c │ ├── directories.txt │ ├── greengrass_connectivity │ │ ├── README.md │ │ └── aws_greengrass_discovery_demo.c │ ├── include │ │ ├── aws_application_version.h │ │ ├── aws_clientcredential.h │ │ ├── aws_clientcredential_keys.h │ │ ├── aws_defender_demo.h │ │ ├── aws_demo.h │ │ ├── aws_demo_runner.h │ │ ├── aws_dev_mode_key_provisioning.h │ │ ├── aws_greengrass_discovery_demo.h │ │ ├── aws_hello_world.h │ │ ├── aws_logging_task.h │ │ ├── aws_ota_codesigner_certificate.h │ │ ├── aws_ota_update_demo.h │ │ ├── aws_shadow_lightbulb_on_off.h │ │ ├── aws_simple_tcp_echo_server.h │ │ ├── aws_subscribe_publish_loop.h │ │ └── aws_tcp_echo_client_single_tasks.h │ ├── logging │ │ └── aws_logging_task_dynamic_buffers.c │ ├── mqtt │ │ ├── aws_hello_world.c │ │ └── aws_subscribe_publish_loop.c │ ├── ota │ │ ├── aws_ota_update_demo.c │ │ └── bootloader │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── crypto │ │ │ └── tinycrypt │ │ │ │ ├── asn1utility.c │ │ │ │ ├── asn1utility.h │ │ │ │ └── aws_boot_crypto.c │ │ │ ├── flash │ │ │ └── portable │ │ │ │ └── microchip │ │ │ │ └── curiosity_pic32mzef │ │ │ │ ├── aws_boot_flash.c │ │ │ │ ├── aws_boot_flash_info.h │ │ │ │ ├── aws_boot_nvm.c │ │ │ │ ├── aws_boot_nvm.h │ │ │ │ ├── aws_boot_partition.c │ │ │ │ └── aws_boot_partition.h │ │ │ ├── include │ │ │ ├── aws_boot_codesigner_public_key.h │ │ │ ├── aws_boot_crypto.h │ │ │ ├── aws_boot_flash.h │ │ │ ├── aws_boot_loader.h │ │ │ ├── aws_boot_log.h │ │ │ ├── aws_boot_pal.h │ │ │ ├── aws_boot_partition.h │ │ │ └── aws_boot_types.h │ │ │ ├── loader │ │ │ ├── aws_boot_loader.c │ │ │ └── portable │ │ │ │ └── microchip │ │ │ │ └── curiosity_pic32mzef │ │ │ │ └── aws_boot_pal.c │ │ │ ├── logging │ │ │ ├── aws_boot_log.c │ │ │ └── portable │ │ │ │ └── microchip │ │ │ │ └── curiosity_pic32mzef │ │ │ │ └── aws_boot_log_uart.c │ │ │ └── utility │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── binary_image_generator.py │ │ │ ├── codesigner_cert_utility │ │ │ └── codesigner_cert_utility.py │ │ │ ├── config-validation-rules │ │ │ └── MCHP-Curiosity-PIC32MZEF │ │ │ ├── factory_image_generator.py │ │ │ ├── ota_image_generator.py │ │ │ ├── user-config │ │ │ ├── aws-code-sign.config │ │ │ └── ota-descriptor.config │ │ │ └── util.py │ ├── shadow │ │ └── aws_shadow_lightbulb_on_off.c │ └── tcp │ │ ├── aws_simple_tcp_echo_server.c │ │ ├── aws_tcp_echo_client_separate_tasks.c │ │ └── aws_tcp_echo_client_single_task.c ├── directories.txt └── xilinx │ └── microzed │ ├── .gitignore │ ├── common │ ├── application_code │ │ ├── main.c │ │ └── xilinx_code │ │ │ ├── FreeRTOS_asm_vectors.S │ │ │ ├── FreeRTOS_tick_config.c │ │ │ ├── hr_gettime.c │ │ │ ├── hr_gettime.h │ │ │ ├── memcpy.c │ │ │ ├── platform_config.h │ │ │ ├── uncached_memory.c │ │ │ ├── uncached_memory.h │ │ │ ├── uzed_iot.c │ │ │ └── uzed_iot.h │ └── config_files │ │ ├── FreeRTOSConfig.h │ │ ├── FreeRTOSIPConfig.h │ │ ├── aws_bufferpool_config.h │ │ ├── aws_demo_config.h │ │ ├── aws_ggd_config.h │ │ ├── aws_mqtt_agent_config.h │ │ ├── aws_mqtt_config.h │ │ ├── aws_pkcs11_config.h │ │ ├── aws_secure_sockets_config.h │ │ ├── aws_shadow_config.h │ │ └── aws_wifi_config.h │ └── xsdk │ ├── .gitignore │ ├── README.md │ ├── aws_demos │ ├── .cproject │ ├── .gitignore │ ├── .project │ └── src │ │ ├── README.txt │ │ ├── Xilinx.spec │ │ └── lscript.ld │ └── reset.tcl ├── lib ├── FreeRTOS-Plus-POSIX │ ├── include │ │ ├── FreeRTOS_POSIX.h │ │ ├── FreeRTOS_POSIX_internal.h │ │ └── portable │ │ │ ├── FreeRTOS_POSIX_portable_default.h │ │ │ ├── espressif │ │ │ └── esp32_devkitc_esp_wrover_kit │ │ │ │ └── FreeRTOS_POSIX_portable.h │ │ │ ├── microchip │ │ │ └── curiosity_pic32mzef │ │ │ │ └── FreeRTOS_POSIX_portable.h │ │ │ ├── nxp │ │ │ └── lpc54018iotmodule │ │ │ │ └── FreeRTOS_POSIX_portable.h │ │ │ ├── pc │ │ │ └── windows │ │ │ │ └── FreeRTOS_POSIX_portable.h │ │ │ ├── st │ │ │ └── stm32l475_discovery │ │ │ │ └── FreeRTOS_POSIX_portable.h │ │ │ └── ti │ │ │ └── cc3220_launchpad │ │ │ └── FreeRTOS_POSIX_portable.h │ └── source │ │ ├── FreeRTOS_POSIX_clock.c │ │ ├── FreeRTOS_POSIX_mqueue.c │ │ ├── FreeRTOS_POSIX_pthread.c │ │ ├── FreeRTOS_POSIX_pthread_barrier.c │ │ ├── FreeRTOS_POSIX_pthread_cond.c │ │ ├── FreeRTOS_POSIX_pthread_mutex.c │ │ ├── FreeRTOS_POSIX_sched.c │ │ ├── FreeRTOS_POSIX_semaphore.c │ │ ├── FreeRTOS_POSIX_timer.c │ │ ├── FreeRTOS_POSIX_unistd.c │ │ └── FreeRTOS_POSIX_utils.c ├── FreeRTOS-Plus-TCP │ ├── include │ │ ├── FreeRTOSIPConfigDefaults.h │ │ ├── FreeRTOS_ARP.h │ │ ├── FreeRTOS_DHCP.h │ │ ├── FreeRTOS_DNS.h │ │ ├── FreeRTOS_IP.h │ │ ├── FreeRTOS_IP_Private.h │ │ ├── FreeRTOS_Sockets.h │ │ ├── FreeRTOS_Stream_Buffer.h │ │ ├── FreeRTOS_TCP_IP.h │ │ ├── FreeRTOS_TCP_WIN.h │ │ ├── FreeRTOS_UDP_IP.h │ │ ├── FreeRTOS_errno_TCP.h │ │ ├── IPTraceMacroDefaults.h │ │ ├── NetworkBufferManagement.h │ │ └── NetworkInterface.h │ └── source │ │ ├── FreeRTOS_ARP.c │ │ ├── FreeRTOS_DHCP.c │ │ ├── FreeRTOS_DNS.c │ │ ├── FreeRTOS_IP.c │ │ ├── FreeRTOS_Sockets.c │ │ ├── FreeRTOS_Stream_Buffer.c │ │ ├── FreeRTOS_TCP_IP.c │ │ ├── FreeRTOS_TCP_WIN.c │ │ ├── FreeRTOS_UDP_IP.c │ │ ├── History.txt │ │ ├── ReadMe.url │ │ ├── portable │ │ ├── BufferManagement │ │ │ ├── BufferAllocation_1.c │ │ │ └── BufferAllocation_2.c │ │ ├── Compiler │ │ │ ├── CompilerName │ │ │ │ ├── ReadMe.txt │ │ │ │ ├── pack_struct_end.h │ │ │ │ └── pack_struct_start.h │ │ │ ├── GCC │ │ │ │ ├── pack_struct_end.h │ │ │ │ └── pack_struct_start.h │ │ │ ├── IAR │ │ │ │ ├── pack_struct_end.h │ │ │ │ └── pack_struct_start.h │ │ │ ├── MSVC │ │ │ │ ├── pack_struct_end.h │ │ │ │ └── pack_struct_start.h │ │ │ └── Renesas │ │ │ │ ├── pack_struct_end.h │ │ │ │ └── pack_struct_start.h │ │ └── NetworkInterface │ │ │ ├── ATSAM4E │ │ │ ├── NetworkInterface.c │ │ │ ├── component │ │ │ │ └── gmac.h │ │ │ ├── ethernet_phy.c │ │ │ ├── ethernet_phy.h │ │ │ ├── gmac.c │ │ │ ├── gmac.h │ │ │ └── instance │ │ │ │ └── gmac.h │ │ │ ├── LPC17xx │ │ │ └── NetworkInterface.c │ │ │ ├── LPC18xx │ │ │ ├── NetworkInterface.c │ │ │ └── ReadMe.txt │ │ │ ├── README_DRIVER_DISCLAIMER.txt │ │ │ ├── SH2A │ │ │ └── NetworkInterface.c │ │ │ ├── STM32Fxx │ │ │ └── NetworkInterface.c │ │ │ ├── WinPCap │ │ │ ├── FaultInjection.c │ │ │ └── NetworkInterface.c │ │ │ ├── Zynq │ │ │ ├── NetworkInterface.c │ │ │ ├── README.txt │ │ │ ├── x_emacpsif.h │ │ │ ├── x_emacpsif_dma.c │ │ │ ├── x_emacpsif_hw.c │ │ │ ├── x_emacpsif_hw.h │ │ │ ├── x_emacpsif_physpeed.c │ │ │ └── x_topology.h │ │ │ ├── board_family │ │ │ ├── NetworkInterface.c │ │ │ └── ReadMe.txt │ │ │ ├── esp32 │ │ │ └── NetworkInterface.c │ │ │ ├── ksz8851snl │ │ │ └── NetworkInterface.c │ │ │ └── pic32mzef │ │ │ ├── BufferAllocation_2.c │ │ │ ├── NetworkInterface_eth.c │ │ │ └── NetworkInterface_wifi.c │ │ └── readme.txt ├── FreeRTOS │ ├── event_groups.c │ ├── list.c │ ├── portable │ │ ├── CCS │ │ │ ├── ARM_CM3 │ │ │ │ ├── port.c │ │ │ │ ├── portasm.asm │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM4F │ │ │ │ ├── port.c │ │ │ │ ├── portasm.asm │ │ │ │ └── portmacro.h │ │ │ ├── ARM_Cortex-R4 │ │ │ │ ├── port.c │ │ │ │ ├── portASM.asm │ │ │ │ └── portmacro.h │ │ │ └── MSP430X │ │ │ │ ├── data_model.h │ │ │ │ ├── port.c │ │ │ │ ├── portext.asm │ │ │ │ └── portmacro.h │ │ ├── Common │ │ │ └── mpu_wrappers.c │ │ ├── Compiler │ │ │ └── Arch │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ ├── GCC │ │ │ ├── ARM7_AT91FR40008 │ │ │ │ ├── port.c │ │ │ │ ├── portISR.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM7_AT91SAM7S │ │ │ │ ├── AT91SAM7X256.h │ │ │ │ ├── ioat91sam7x256.h │ │ │ │ ├── lib_AT91SAM7X256.c │ │ │ │ ├── lib_AT91SAM7X256.h │ │ │ │ ├── port.c │ │ │ │ ├── portISR.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM7_LPC2000 │ │ │ │ ├── port.c │ │ │ │ ├── portISR.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM7_LPC23xx │ │ │ │ ├── port.c │ │ │ │ ├── portISR.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CA53_64_BIT │ │ │ │ ├── port.c │ │ │ │ ├── portASM.S │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CA9 │ │ │ │ ├── port.c │ │ │ │ ├── portASM.S │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM0 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM3 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM3_MPU │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM4F │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM4_MPU │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM7 │ │ │ │ ├── ReadMe.txt │ │ │ │ └── r0p1 │ │ │ │ │ ├── port.c │ │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CR5 │ │ │ │ ├── port.c │ │ │ │ ├── portASM.S │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CRx_No_GIC │ │ │ │ ├── port.c │ │ │ │ ├── portASM.S │ │ │ │ └── portmacro.h │ │ │ ├── ATMega323 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── AVR32_UC3 │ │ │ │ ├── exception.S │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── CORTUS_APS3 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── ColdFire_V2 │ │ │ │ ├── port.c │ │ │ │ ├── portasm.S │ │ │ │ └── portmacro.h │ │ │ ├── H8S2329 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── HCS12 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── IA32_flat │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── portASM.S │ │ │ │ └── portmacro.h │ │ │ ├── MCF5235 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── MSP430F449 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── MicroBlaze │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s │ │ │ │ └── portmacro.h │ │ │ ├── MicroBlazeV8 │ │ │ │ ├── port.c │ │ │ │ ├── port_exceptions.c │ │ │ │ ├── portasm.S │ │ │ │ └── portmacro.h │ │ │ ├── MicroBlazeV9 │ │ │ │ ├── port.c │ │ │ │ ├── port_exceptions.c │ │ │ │ ├── portasm.S │ │ │ │ └── portmacro.h │ │ │ ├── NiosII │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.S │ │ │ │ └── portmacro.h │ │ │ ├── PPC405_Xilinx │ │ │ │ ├── FPU_Macros.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.S │ │ │ │ └── portmacro.h │ │ │ ├── PPC440_Xilinx │ │ │ │ ├── FPU_Macros.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.S │ │ │ │ └── portmacro.h │ │ │ ├── RL78 │ │ │ │ ├── isr_support.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.S │ │ │ │ └── portmacro.h │ │ │ ├── RX100 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── RX600 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── RX600v2 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── STR75x │ │ │ │ ├── port.c │ │ │ │ ├── portISR.c │ │ │ │ └── portmacro.h │ │ │ ├── TriCore_1782 │ │ │ │ ├── port.c │ │ │ │ ├── portmacro.h │ │ │ │ └── porttrap.c │ │ │ └── stubs │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ ├── IAR │ │ │ ├── 78K0R │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s26 │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CA5_No_GIC │ │ │ │ ├── port.c │ │ │ │ ├── portASM.h │ │ │ │ ├── portASM.s │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CA9 │ │ │ │ ├── port.c │ │ │ │ ├── portASM.h │ │ │ │ ├── portASM.s │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM0 │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM3 │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM4F │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM4F_MPU │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM7 │ │ │ │ ├── ReadMe.txt │ │ │ │ └── r0p1 │ │ │ │ │ ├── port.c │ │ │ │ │ ├── portasm.s │ │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CRx_No_GIC │ │ │ │ ├── port.c │ │ │ │ ├── portASM.s │ │ │ │ └── portmacro.h │ │ │ ├── ATMega323 │ │ │ │ ├── port.c │ │ │ │ ├── portmacro.h │ │ │ │ └── portmacro.s90 │ │ │ ├── AVR32_UC3 │ │ │ │ ├── exception.s82 │ │ │ │ ├── port.c │ │ │ │ ├── portmacro.h │ │ │ │ ├── read.c │ │ │ │ └── write.c │ │ │ ├── AtmelSAM7S64 │ │ │ │ ├── AT91SAM7S64.h │ │ │ │ ├── AT91SAM7S64_inc.h │ │ │ │ ├── AT91SAM7X128.h │ │ │ │ ├── AT91SAM7X128_inc.h │ │ │ │ ├── AT91SAM7X256.h │ │ │ │ ├── AT91SAM7X256_inc.h │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── lib_AT91SAM7S64.h │ │ │ │ ├── lib_AT91SAM7X128.h │ │ │ │ ├── lib_AT91SAM7X256.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s79 │ │ │ │ └── portmacro.h │ │ │ ├── AtmelSAM9XE │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s79 │ │ │ │ └── portmacro.h │ │ │ ├── LPC2000 │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s79 │ │ │ │ └── portmacro.h │ │ │ ├── MSP430 │ │ │ │ ├── port.c │ │ │ │ ├── portasm.h │ │ │ │ ├── portext.s43 │ │ │ │ └── portmacro.h │ │ │ ├── MSP430X │ │ │ │ ├── data_model.h │ │ │ │ ├── port.c │ │ │ │ ├── portext.s43 │ │ │ │ └── portmacro.h │ │ │ ├── RL78 │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s87 │ │ │ │ └── portmacro.h │ │ │ ├── RX100 │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.s │ │ │ │ └── portmacro.h │ │ │ ├── RX600 │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.s │ │ │ │ └── portmacro.h │ │ │ ├── RXv2 │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.s │ │ │ │ └── portmacro.h │ │ │ ├── STR71x │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s79 │ │ │ │ └── portmacro.h │ │ │ ├── STR75x │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s79 │ │ │ │ └── portmacro.h │ │ │ ├── STR91x │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s79 │ │ │ │ └── portmacro.h │ │ │ └── V850ES │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.s85 │ │ │ │ ├── portasm_Fx3.s85 │ │ │ │ ├── portasm_Hx2.s85 │ │ │ │ └── portmacro.h │ │ ├── Keil │ │ │ └── See-also-the-RVDS-directory.txt │ │ ├── MPLAB │ │ │ ├── PIC18F │ │ │ │ ├── port.c │ │ │ │ ├── portmacro.h │ │ │ │ └── stdio.h │ │ │ ├── PIC24_dsPIC │ │ │ │ ├── port.c │ │ │ │ ├── portasm_PIC24.S │ │ │ │ ├── portasm_dsPIC.S │ │ │ │ └── portmacro.h │ │ │ ├── PIC32MEC14xx │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.S │ │ │ │ └── portmacro.h │ │ │ ├── PIC32MX │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.S │ │ │ │ └── portmacro.h │ │ │ └── PIC32MZ │ │ │ │ ├── ISR_Support.h │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.S │ │ │ │ └── portmacro.h │ │ ├── MSVC-MingW │ │ │ ├── port.c │ │ │ └── portmacro.h │ │ ├── MemMang │ │ │ ├── ReadMe.url │ │ │ ├── heap_1.c │ │ │ ├── heap_2.c │ │ │ ├── heap_3.c │ │ │ ├── heap_4.c │ │ │ └── heap_5.c │ │ ├── MikroC │ │ │ └── ARM_CM4F │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ ├── Paradigm │ │ │ └── Tern_EE │ │ │ │ ├── large_untested │ │ │ │ ├── port.c │ │ │ │ ├── portasm.h │ │ │ │ └── portmacro.h │ │ │ │ └── small │ │ │ │ ├── port.c │ │ │ │ ├── portasm.h │ │ │ │ └── portmacro.h │ │ ├── RVDS │ │ │ ├── ARM7_LPC21xx │ │ │ │ ├── port.c │ │ │ │ ├── portASM.s │ │ │ │ ├── portmacro.h │ │ │ │ └── portmacro.inc │ │ │ ├── ARM_CA9 │ │ │ │ ├── port.c │ │ │ │ ├── portASM.s │ │ │ │ ├── portmacro.h │ │ │ │ └── portmacro.inc │ │ │ ├── ARM_CM0 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM3 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM4F │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ ├── ARM_CM4_MPU │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ └── ARM_CM7 │ │ │ │ ├── ReadMe.txt │ │ │ │ └── r0p1 │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ ├── Renesas │ │ │ ├── RX100 │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.src │ │ │ │ └── portmacro.h │ │ │ ├── RX200 │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.src │ │ │ │ └── portmacro.h │ │ │ ├── RX600 │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.src │ │ │ │ └── portmacro.h │ │ │ ├── RX600v2 │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.src │ │ │ │ └── portmacro.h │ │ │ └── SH2A_FPU │ │ │ │ ├── ISR_Support.inc │ │ │ │ ├── port.c │ │ │ │ ├── portasm.src │ │ │ │ └── portmacro.h │ │ ├── Rowley │ │ │ ├── ARM7 │ │ │ │ └── readme.txt │ │ │ └── MSP430F449 │ │ │ │ ├── port.c │ │ │ │ ├── portasm.h │ │ │ │ ├── portext.asm │ │ │ │ └── portmacro.h │ │ ├── Softune │ │ │ ├── MB91460 │ │ │ │ ├── __STD_LIB_sbrk.c │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ │ └── MB96340 │ │ │ │ ├── __STD_LIB_sbrk.c │ │ │ │ ├── port.c │ │ │ │ └── portmacro.h │ │ ├── Tasking │ │ │ └── ARM_CM4F │ │ │ │ ├── port.c │ │ │ │ ├── port_asm.asm │ │ │ │ └── portmacro.h │ │ ├── ThirdParty │ │ │ └── GCC │ │ │ │ └── Xtensa_ESP32 │ │ │ │ ├── FreeRTOS-openocd.c │ │ │ │ ├── include │ │ │ │ ├── portbenchmark.h │ │ │ │ ├── portmacro.h │ │ │ │ ├── xtensa_api.h │ │ │ │ ├── xtensa_config.h │ │ │ │ ├── xtensa_context.h │ │ │ │ ├── xtensa_rtos.h │ │ │ │ └── xtensa_timer.h │ │ │ │ ├── port.c │ │ │ │ ├── portasm.S │ │ │ │ ├── portmux_impl.h │ │ │ │ ├── xtensa_context.S │ │ │ │ ├── xtensa_init.c │ │ │ │ ├── xtensa_intr.c │ │ │ │ ├── xtensa_intr_asm.S │ │ │ │ ├── xtensa_overlay_os_hook.c │ │ │ │ ├── xtensa_vector_defaults.S │ │ │ │ └── xtensa_vectors.S │ │ └── readme.txt │ ├── queue.c │ ├── stream_buffer.c │ ├── tasks.c │ └── timers.c ├── bufferpool │ └── aws_bufferpool_static_thread_safe.c ├── cbor │ ├── .gitignore │ ├── makefile │ ├── readme.md │ ├── src │ │ ├── aws_cbor.c │ │ ├── aws_cbor.h │ │ ├── aws_cbor_alloc.c │ │ ├── aws_cbor_alloc.h │ │ ├── aws_cbor_int.c │ │ ├── aws_cbor_int.h │ │ ├── aws_cbor_internals.h │ │ ├── aws_cbor_iter.c │ │ ├── aws_cbor_iter.h │ │ ├── aws_cbor_jump_table.h │ │ ├── aws_cbor_map.c │ │ ├── aws_cbor_map.h │ │ ├── aws_cbor_mem.c │ │ ├── aws_cbor_mem.h │ │ ├── aws_cbor_print.c │ │ ├── aws_cbor_print.h │ │ ├── aws_cbor_string.c │ │ ├── aws_cbor_string.h │ │ └── aws_cbor_types.h │ └── test │ │ ├── assert_override.c │ │ ├── assert_override.h │ │ ├── test_aws_cbor.c │ │ ├── test_aws_cbor_acc.c │ │ ├── test_aws_cbor_alloc.c │ │ ├── test_aws_cbor_int.c │ │ ├── test_aws_cbor_iter.c │ │ ├── test_aws_cbor_map.c │ │ ├── test_aws_cbor_mem.c │ │ ├── test_aws_cbor_print.c │ │ ├── test_aws_cbor_string.c │ │ └── test_main.c ├── crypto │ └── aws_crypto.c ├── defender │ ├── .gitignore │ ├── aws_defender.c │ ├── aws_defender_states.dot │ ├── aws_defender_states.png │ ├── draw_states.py │ ├── portable │ │ ├── freertos │ │ │ ├── aws_defender_cpu.c │ │ │ ├── aws_defender_tcp_conn.c │ │ │ └── aws_defender_uptime.c │ │ ├── stub │ │ │ ├── aws_defender_cpu.c │ │ │ ├── aws_defender_tcp_conn.c │ │ │ ├── aws_defender_uptime.c │ │ │ └── makefile │ │ ├── template │ │ │ ├── aws_defender_cpu.c │ │ │ ├── aws_defender_tcp_conn.c │ │ │ ├── aws_defender_uptime.c │ │ │ └── makefile │ │ ├── unit_test │ │ │ ├── aws_defender_cpu.c │ │ │ ├── aws_defender_tcp_conn.c │ │ │ └── aws_defender_uptime.c │ │ └── unix │ │ │ ├── aws_defender_cpu.c │ │ │ ├── aws_defender_tcp_conn.c │ │ │ ├── aws_defender_uptime.c │ │ │ └── makefile │ └── report │ │ ├── aws_defender_report.c │ │ ├── aws_defender_report_cpu.c │ │ ├── aws_defender_report_header.c │ │ ├── aws_defender_report_tcp_conn.c │ │ └── aws_defender_report_uptime.c ├── directories.txt ├── greengrass │ ├── aws_greengrass_discovery.c │ └── aws_helper_secure_connect.c ├── include │ ├── FreeRTOS.h │ ├── FreeRTOS_POSIX │ │ ├── errno.h │ │ ├── fcntl.h │ │ ├── mqueue.h │ │ ├── pthread.h │ │ ├── sched.h │ │ ├── semaphore.h │ │ ├── signal.h │ │ ├── sys │ │ │ └── types.h │ │ ├── time.h │ │ ├── unistd.h │ │ └── utils.h │ ├── aws_appversion32.h │ ├── aws_crypto.h │ ├── aws_defender.h │ ├── aws_greengrass_discovery.h │ ├── aws_mqtt_agent.h │ ├── aws_mqtt_lib.h │ ├── aws_ota_agent.h │ ├── aws_pkcs11.h │ ├── aws_secure_sockets.h │ ├── aws_shadow.h │ ├── aws_system_init.h │ ├── aws_tls.h │ ├── aws_wifi.h │ ├── event_groups.h │ ├── message_buffer.h │ ├── private │ │ ├── aws_bufferpool.h │ │ ├── aws_default_root_certificates.h │ │ ├── aws_defender_cpu.h │ │ ├── aws_defender_internals.h │ │ ├── aws_defender_report.h │ │ ├── aws_defender_report_cpu.h │ │ ├── aws_defender_report_header.h │ │ ├── aws_defender_report_tcp_conn.h │ │ ├── aws_defender_report_types.h │ │ ├── aws_defender_report_uptime.h │ │ ├── aws_defender_report_utils.h │ │ ├── aws_defender_tcp_conn.h │ │ ├── aws_defender_uptime.h │ │ ├── aws_doubly_linked_list.h │ │ ├── aws_ggd_config_defaults.h │ │ ├── aws_helper_secure_connect.h │ │ ├── aws_lib_init.h │ │ ├── aws_mqtt_agent_config_defaults.h │ │ ├── aws_mqtt_buffer.h │ │ ├── aws_mqtt_config_defaults.h │ │ ├── aws_ota_agent_internal.h │ │ ├── aws_ota_cbor.h │ │ ├── aws_ota_cbor_internal.h │ │ ├── aws_ota_pal.h │ │ ├── aws_ota_types.h │ │ ├── aws_secure_sockets_config_defaults.h │ │ ├── aws_shadow_config_defaults.h │ │ ├── aws_shadow_json.h │ │ ├── deprecated_definitions.h │ │ ├── list.h │ │ ├── mpu_wrappers.h │ │ ├── portable.h │ │ ├── projdefs.h │ │ ├── stack_macros.h │ │ └── threading_alt.h │ ├── queue.h │ ├── semphr.h │ ├── stream_buffer.h │ ├── task.h │ └── timers.h ├── mqtt │ ├── aws_mqtt_agent.c │ └── aws_mqtt_lib.c ├── ota │ ├── aws_ota_agent.c │ ├── aws_ota_cbor.c │ └── portable │ │ ├── README.md │ │ └── vendor │ │ └── board │ │ └── aws_ota_pal.c ├── pkcs11 │ ├── mbedtls │ │ └── aws_pkcs11_mbedtls.c │ └── portable │ │ └── xilinx │ │ └── microzed │ │ └── aws_pkcs11_pal.c ├── secure_sockets │ └── portable │ │ └── freertos_plus_tcp │ │ └── aws_secure_sockets.c ├── shadow │ ├── aws_shadow.c │ └── aws_shadow_json.c ├── third_party │ ├── .clang-format │ ├── cmock │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── .gitmodules │ │ ├── .travis.yml │ │ ├── Gemfile │ │ ├── README.md │ │ ├── config.yml │ │ ├── config │ │ │ ├── production_environment.rb │ │ │ └── test_environment.rb │ │ ├── docs │ │ │ ├── CMock_Summary.md │ │ │ ├── ThrowTheSwitchCodingStandard.md │ │ │ └── license.txt │ │ ├── examples │ │ │ ├── make_example │ │ │ │ ├── Makefile │ │ │ │ ├── src │ │ │ │ │ ├── foo.c │ │ │ │ │ ├── foo.h │ │ │ │ │ └── main.c │ │ │ │ └── test │ │ │ │ │ ├── test_foo.c │ │ │ │ │ └── test_main.c │ │ │ └── temp_sensor │ │ │ │ ├── gcc.yml │ │ │ │ ├── iar_v4.yml │ │ │ │ ├── iar_v5.yml │ │ │ │ ├── rakefile.rb │ │ │ │ ├── rakefile_helper.rb │ │ │ │ ├── src │ │ │ │ ├── AT91SAM7X256.h │ │ │ │ ├── AdcConductor.c │ │ │ │ ├── AdcConductor.h │ │ │ │ ├── AdcHardware.c │ │ │ │ ├── AdcHardware.h │ │ │ │ ├── AdcHardwareConfigurator.c │ │ │ │ ├── AdcHardwareConfigurator.h │ │ │ │ ├── AdcModel.c │ │ │ │ ├── AdcModel.h │ │ │ │ ├── AdcTemperatureSensor.c │ │ │ │ ├── AdcTemperatureSensor.h │ │ │ │ ├── Executor.c │ │ │ │ ├── Executor.h │ │ │ │ ├── IntrinsicsWrapper.c │ │ │ │ ├── IntrinsicsWrapper.h │ │ │ │ ├── Main.c │ │ │ │ ├── Main.h │ │ │ │ ├── Model.c │ │ │ │ ├── Model.h │ │ │ │ ├── ModelConfig.h │ │ │ │ ├── TaskScheduler.c │ │ │ │ ├── TaskScheduler.h │ │ │ │ ├── TemperatureCalculator.c │ │ │ │ ├── TemperatureCalculator.h │ │ │ │ ├── TemperatureFilter.c │ │ │ │ ├── TemperatureFilter.h │ │ │ │ ├── TimerConductor.c │ │ │ │ ├── TimerConductor.h │ │ │ │ ├── TimerConfigurator.c │ │ │ │ ├── TimerConfigurator.h │ │ │ │ ├── TimerHardware.c │ │ │ │ ├── TimerHardware.h │ │ │ │ ├── TimerInterruptConfigurator.c │ │ │ │ ├── TimerInterruptConfigurator.h │ │ │ │ ├── TimerInterruptHandler.c │ │ │ │ ├── TimerInterruptHandler.h │ │ │ │ ├── TimerModel.c │ │ │ │ ├── TimerModel.h │ │ │ │ ├── Types.h │ │ │ │ ├── UsartBaudRateRegisterCalculator.c │ │ │ │ ├── UsartBaudRateRegisterCalculator.h │ │ │ │ ├── UsartConductor.c │ │ │ │ ├── UsartConductor.h │ │ │ │ ├── UsartConfigurator.c │ │ │ │ ├── UsartConfigurator.h │ │ │ │ ├── UsartHardware.c │ │ │ │ ├── UsartHardware.h │ │ │ │ ├── UsartModel.c │ │ │ │ ├── UsartModel.h │ │ │ │ ├── UsartPutChar.c │ │ │ │ ├── UsartPutChar.h │ │ │ │ ├── UsartTransmitBufferStatus.c │ │ │ │ └── UsartTransmitBufferStatus.h │ │ │ │ └── test │ │ │ │ ├── TestAdcConductor.c │ │ │ │ ├── TestAdcHardware.c │ │ │ │ ├── TestAdcHardwareConfigurator.c │ │ │ │ ├── TestAdcModel.c │ │ │ │ ├── TestAdcTemperatureSensor.c │ │ │ │ ├── TestExecutor.c │ │ │ │ ├── TestMain.c │ │ │ │ ├── TestModel.c │ │ │ │ ├── TestTaskScheduler.c │ │ │ │ ├── TestTemperatureCalculator.c │ │ │ │ ├── TestTemperatureFilter.c │ │ │ │ ├── TestTimerConductor.c │ │ │ │ ├── TestTimerConfigurator.c │ │ │ │ ├── TestTimerHardware.c │ │ │ │ ├── TestTimerInterruptConfigurator.c │ │ │ │ ├── TestTimerInterruptHandler.c │ │ │ │ ├── TestTimerModel.c │ │ │ │ ├── TestUsartBaudRateRegisterCalculator.c │ │ │ │ ├── TestUsartConductor.c │ │ │ │ ├── TestUsartConfigurator.c │ │ │ │ ├── TestUsartHardware.c │ │ │ │ ├── TestUsartModel.c │ │ │ │ ├── TestUsartPutChar.c │ │ │ │ └── TestUsartTransmitBufferStatus.c │ │ ├── lib │ │ │ ├── cmock.rb │ │ │ ├── cmock_config.rb │ │ │ ├── cmock_file_writer.rb │ │ │ ├── cmock_generator.rb │ │ │ ├── cmock_generator_plugin_array.rb │ │ │ ├── cmock_generator_plugin_callback.rb │ │ │ ├── cmock_generator_plugin_cexception.rb │ │ │ ├── cmock_generator_plugin_expect.rb │ │ │ ├── cmock_generator_plugin_expect_any_args.rb │ │ │ ├── cmock_generator_plugin_ignore.rb │ │ │ ├── cmock_generator_plugin_ignore_arg.rb │ │ │ ├── cmock_generator_plugin_return_thru_ptr.rb │ │ │ ├── cmock_generator_utils.rb │ │ │ ├── cmock_header_parser.rb │ │ │ ├── cmock_plugin_manager.rb │ │ │ └── cmock_unityhelper_parser.rb │ │ ├── release │ │ │ ├── build.info │ │ │ └── version.info │ │ ├── scripts │ │ │ ├── create_makefile.rb │ │ │ ├── create_mock.rb │ │ │ ├── create_runner.rb │ │ │ └── test_summary.rb │ │ ├── src │ │ │ ├── cmock.c │ │ │ ├── cmock.h │ │ │ └── cmock_internals.h │ │ ├── test │ │ │ ├── c │ │ │ │ ├── TestCMockC.c │ │ │ │ ├── TestCMockC.yml │ │ │ │ ├── TestCMockCDynamic.c │ │ │ │ ├── TestCMockCDynamic.yml │ │ │ │ ├── TestCMockCDynamic_Runner.c │ │ │ │ └── TestCMockC_Runner.c │ │ │ ├── iar │ │ │ │ ├── iar_v4 │ │ │ │ │ ├── Resource │ │ │ │ │ │ ├── SAM7_FLASH.mac │ │ │ │ │ │ ├── SAM7_RAM.mac │ │ │ │ │ │ ├── SAM7_SIM.mac │ │ │ │ │ │ ├── at91SAM7X256_FLASH.xcl │ │ │ │ │ │ ├── at91SAM7X256_RAM.xcl │ │ │ │ │ │ └── ioat91sam7x256.ddf │ │ │ │ │ ├── cmock_demo.dep │ │ │ │ │ ├── cmock_demo.ewd │ │ │ │ │ ├── cmock_demo.ewp │ │ │ │ │ ├── cmock_demo.eww │ │ │ │ │ ├── incIAR │ │ │ │ │ │ ├── AT91SAM7X-EK.h │ │ │ │ │ │ ├── AT91SAM7X256.inc │ │ │ │ │ │ ├── AT91SAM7X256.rdf │ │ │ │ │ │ ├── AT91SAM7X256.tcl │ │ │ │ │ │ ├── AT91SAM7X256_inc.h │ │ │ │ │ │ ├── ioat91sam7x256.h │ │ │ │ │ │ └── lib_AT91SAM7X256.h │ │ │ │ │ ├── settings │ │ │ │ │ │ ├── cmock_demo.cspy.bat │ │ │ │ │ │ ├── cmock_demo.dbgdt │ │ │ │ │ │ ├── cmock_demo.dni │ │ │ │ │ │ └── cmock_demo.wsdt │ │ │ │ │ └── srcIAR │ │ │ │ │ │ ├── Cstartup.s79 │ │ │ │ │ │ └── Cstartup_SAM7.c │ │ │ │ └── iar_v5 │ │ │ │ │ ├── Resource │ │ │ │ │ ├── SAM7_FLASH.mac │ │ │ │ │ ├── SAM7_RAM.mac │ │ │ │ │ ├── SAM7_SIM.mac │ │ │ │ │ ├── at91SAM7X256_FLASH.icf │ │ │ │ │ └── at91SAM7X256_RAM.icf │ │ │ │ │ ├── cmock_demo.dep │ │ │ │ │ ├── cmock_demo.ewd │ │ │ │ │ ├── cmock_demo.ewp │ │ │ │ │ ├── cmock_demo.eww │ │ │ │ │ ├── incIAR │ │ │ │ │ ├── AT91SAM7X-EK.h │ │ │ │ │ ├── AT91SAM7X256_inc.h │ │ │ │ │ ├── lib_AT91SAM7X256.h │ │ │ │ │ └── project.h │ │ │ │ │ ├── settings │ │ │ │ │ ├── BasicInterrupt_SAM7X.cspy.bat │ │ │ │ │ ├── BasicInterrupt_SAM7X.dbgdt │ │ │ │ │ ├── BasicInterrupt_SAM7X.dni │ │ │ │ │ ├── BasicInterrupt_SAM7X.wsdt │ │ │ │ │ ├── BasicInterrupt_SAM7X_FLASH_Debug.jlink │ │ │ │ │ ├── cmock_demo.cspy.bat │ │ │ │ │ ├── cmock_demo.dbgdt │ │ │ │ │ ├── cmock_demo.dni │ │ │ │ │ ├── cmock_demo.wsdt │ │ │ │ │ ├── cmock_demo_Binary.jlink │ │ │ │ │ ├── cmock_demo_FLASH_Debug.jlink │ │ │ │ │ └── cmock_demo_RAM_Debug.jlink │ │ │ │ │ └── srcIAR │ │ │ │ │ ├── Cstartup.s │ │ │ │ │ └── Cstartup_SAM7.c │ │ │ ├── rakefile │ │ │ ├── rakefile_helper.rb │ │ │ ├── system │ │ │ │ ├── systest_generator.rb │ │ │ │ ├── test_compilation │ │ │ │ │ ├── callingconv.h │ │ │ │ │ ├── config.yml │ │ │ │ │ ├── const.h │ │ │ │ │ ├── osek.h │ │ │ │ │ └── parsing.h │ │ │ │ └── test_interactions │ │ │ │ │ ├── all_plugins_but_other_limits.yml │ │ │ │ │ ├── all_plugins_coexist.yml │ │ │ │ │ ├── array_and_pointer_handling.yml │ │ │ │ │ ├── basic_expect_and_return.yml │ │ │ │ │ ├── const_primitives_handling.yml │ │ │ │ │ ├── doesnt_leave_details_behind.yml │ │ │ │ │ ├── enforce_strict_ordering.yml │ │ │ │ │ ├── expect_and_return_custom_types.yml │ │ │ │ │ ├── expect_and_return_treat_as.yml │ │ │ │ │ ├── expect_and_throw.yml │ │ │ │ │ ├── expect_any_args.yml │ │ │ │ │ ├── fancy_pointer_handling.yml │ │ │ │ │ ├── function_pointer_handling.yml │ │ │ │ │ ├── ignore_and_return.yml │ │ │ │ │ ├── ignore_strict_mock_calling.yml │ │ │ │ │ ├── newer_standards_stuff1.yml │ │ │ │ │ ├── nonstandard_parsed_stuff_1.yml │ │ │ │ │ ├── nonstandard_parsed_stuff_2.yml │ │ │ │ │ ├── out_of_memory.yml │ │ │ │ │ ├── parsing_challenges.yml │ │ │ │ │ ├── return_thru_ptr_and_expect_any_args.yml │ │ │ │ │ ├── return_thru_ptr_ignore_arg.yml │ │ │ │ │ ├── struct_union_enum_expect_and_return.yml │ │ │ │ │ ├── struct_union_enum_expect_and_return_with_plugins.yml │ │ │ │ │ ├── stubs_with_callbacks.yml │ │ │ │ │ ├── unity_64bit_support.yml │ │ │ │ │ └── unity_ignores.yml │ │ │ ├── targets │ │ │ │ ├── clang_strict.yml │ │ │ │ ├── gcc.yml │ │ │ │ ├── gcc_64.yml │ │ │ │ ├── gcc_tiny.yml │ │ │ │ ├── iar_arm_v4.yml │ │ │ │ └── iar_arm_v5.yml │ │ │ ├── test_helper.rb │ │ │ └── unit │ │ │ │ ├── cmock_config_test.rb │ │ │ │ ├── cmock_config_test.yml │ │ │ │ ├── cmock_file_writer_test.rb │ │ │ │ ├── cmock_generator_main_test.rb │ │ │ │ ├── cmock_generator_plugin_array_test.rb │ │ │ │ ├── cmock_generator_plugin_callback_test.rb │ │ │ │ ├── cmock_generator_plugin_cexception_test.rb │ │ │ │ ├── cmock_generator_plugin_expect_a_test.rb │ │ │ │ ├── cmock_generator_plugin_expect_any_args_test.rb │ │ │ │ ├── cmock_generator_plugin_expect_b_test.rb │ │ │ │ ├── cmock_generator_plugin_ignore_arg_test.rb │ │ │ │ ├── cmock_generator_plugin_ignore_test.rb │ │ │ │ ├── cmock_generator_plugin_return_thru_ptr_test.rb │ │ │ │ ├── cmock_generator_utils_test.rb │ │ │ │ ├── cmock_header_parser_test.rb │ │ │ │ ├── cmock_plugin_manager_test.rb │ │ │ │ └── cmock_unityhelper_parser_test.rb │ │ └── vendor │ │ │ └── behaviors │ │ │ ├── Manifest.txt │ │ │ ├── Rakefile │ │ │ ├── lib │ │ │ ├── behaviors.rb │ │ │ └── behaviors │ │ │ │ └── reporttask.rb │ │ │ └── test │ │ │ ├── behaviors_tasks_test.rb │ │ │ ├── behaviors_test.rb │ │ │ └── tasks_test │ │ │ ├── Rakefile │ │ │ ├── lib │ │ │ └── user.rb │ │ │ └── test │ │ │ └── user_test.rb │ ├── directories.txt │ ├── jsmn │ │ ├── jsmn.c │ │ └── jsmn.h │ ├── mbedtls │ │ ├── LICENSE │ │ ├── include │ │ │ └── mbedtls │ │ │ │ ├── aes.h │ │ │ │ ├── aesni.h │ │ │ │ ├── arc4.h │ │ │ │ ├── asn1.h │ │ │ │ ├── asn1write.h │ │ │ │ ├── base64.h │ │ │ │ ├── bignum.h │ │ │ │ ├── blowfish.h │ │ │ │ ├── bn_mul.h │ │ │ │ ├── camellia.h │ │ │ │ ├── ccm.h │ │ │ │ ├── certs.h │ │ │ │ ├── check_config.h │ │ │ │ ├── cipher.h │ │ │ │ ├── cipher_internal.h │ │ │ │ ├── cmac.h │ │ │ │ ├── compat-1.3.h │ │ │ │ ├── config.h │ │ │ │ ├── ctr_drbg.h │ │ │ │ ├── debug.h │ │ │ │ ├── des.h │ │ │ │ ├── dhm.h │ │ │ │ ├── ecdh.h │ │ │ │ ├── ecdsa.h │ │ │ │ ├── ecjpake.h │ │ │ │ ├── ecp.h │ │ │ │ ├── ecp_internal.h │ │ │ │ ├── entropy.h │ │ │ │ ├── entropy_poll.h │ │ │ │ ├── error.h │ │ │ │ ├── gcm.h │ │ │ │ ├── havege.h │ │ │ │ ├── hmac_drbg.h │ │ │ │ ├── md.h │ │ │ │ ├── md2.h │ │ │ │ ├── md4.h │ │ │ │ ├── md5.h │ │ │ │ ├── md_internal.h │ │ │ │ ├── memory_buffer_alloc.h │ │ │ │ ├── net.h │ │ │ │ ├── net_sockets.h │ │ │ │ ├── oid.h │ │ │ │ ├── padlock.h │ │ │ │ ├── pem.h │ │ │ │ ├── pk.h │ │ │ │ ├── pk_internal.h │ │ │ │ ├── pkcs12.h │ │ │ │ ├── pkcs5.h │ │ │ │ ├── platform.h │ │ │ │ ├── platform_time.h │ │ │ │ ├── platform_util.h │ │ │ │ ├── ripemd160.h │ │ │ │ ├── rsa.h │ │ │ │ ├── rsa_internal.h │ │ │ │ ├── sha1.h │ │ │ │ ├── sha256.h │ │ │ │ ├── sha512.h │ │ │ │ ├── ssl.h │ │ │ │ ├── ssl_cache.h │ │ │ │ ├── ssl_ciphersuites.h │ │ │ │ ├── ssl_cookie.h │ │ │ │ ├── ssl_internal.h │ │ │ │ ├── ssl_ticket.h │ │ │ │ ├── threading.h │ │ │ │ ├── timing.h │ │ │ │ ├── version.h │ │ │ │ ├── x509.h │ │ │ │ ├── x509_crl.h │ │ │ │ ├── x509_crt.h │ │ │ │ ├── x509_csr.h │ │ │ │ └── xtea.h │ │ └── library │ │ │ ├── aes.c │ │ │ ├── aesni.c │ │ │ ├── arc4.c │ │ │ ├── asn1parse.c │ │ │ ├── asn1write.c │ │ │ ├── base64.c │ │ │ ├── bignum.c │ │ │ ├── blowfish.c │ │ │ ├── camellia.c │ │ │ ├── ccm.c │ │ │ ├── certs.c │ │ │ ├── cipher.c │ │ │ ├── cipher_wrap.c │ │ │ ├── cmac.c │ │ │ ├── ctr_drbg.c │ │ │ ├── debug.c │ │ │ ├── des.c │ │ │ ├── dhm.c │ │ │ ├── ecdh.c │ │ │ ├── ecdsa.c │ │ │ ├── ecjpake.c │ │ │ ├── ecp.c │ │ │ ├── ecp_curves.c │ │ │ ├── entropy.c │ │ │ ├── entropy_poll.c │ │ │ ├── error.c │ │ │ ├── gcm.c │ │ │ ├── havege.c │ │ │ ├── hmac_drbg.c │ │ │ ├── md.c │ │ │ ├── md2.c │ │ │ ├── md4.c │ │ │ ├── md5.c │ │ │ ├── md_wrap.c │ │ │ ├── memory_buffer_alloc.c │ │ │ ├── net_sockets.c │ │ │ ├── oid.c │ │ │ ├── padlock.c │ │ │ ├── pem.c │ │ │ ├── pk.c │ │ │ ├── pk_wrap.c │ │ │ ├── pkcs12.c │ │ │ ├── pkcs5.c │ │ │ ├── pkparse.c │ │ │ ├── pkwrite.c │ │ │ ├── platform.c │ │ │ ├── platform_util.c │ │ │ ├── ripemd160.c │ │ │ ├── rsa.c │ │ │ ├── rsa_internal.c │ │ │ ├── sha1.c │ │ │ ├── sha256.c │ │ │ ├── sha512.c │ │ │ ├── ssl_cache.c │ │ │ ├── ssl_ciphersuites.c │ │ │ ├── ssl_cli.c │ │ │ ├── ssl_cookie.c │ │ │ ├── ssl_srv.c │ │ │ ├── ssl_ticket.c │ │ │ ├── ssl_tls.c │ │ │ ├── threading.c │ │ │ ├── timing.c │ │ │ ├── version.c │ │ │ ├── version_features.c │ │ │ ├── x509.c │ │ │ ├── x509_create.c │ │ │ ├── x509_crl.c │ │ │ ├── x509_crt.c │ │ │ ├── x509_csr.c │ │ │ ├── x509write_crt.c │ │ │ ├── x509write_csr.c │ │ │ └── xtea.c │ ├── mcu_vendor │ │ └── xilinx │ │ │ ├── MicroZed_hw_platform_0 │ │ │ ├── .project │ │ │ ├── mz_acc_iiot_wrapper.bit │ │ │ ├── ps7_init.c │ │ │ ├── ps7_init.h │ │ │ ├── ps7_init.html │ │ │ ├── ps7_init.tcl │ │ │ ├── ps7_init_gpl.c │ │ │ ├── ps7_init_gpl.h │ │ │ └── system.hdf │ │ │ ├── aws_bsp │ │ │ ├── .cproject │ │ │ ├── .project │ │ │ ├── .sdkproject │ │ │ ├── Makefile │ │ │ ├── ps7_cortexa9_0 │ │ │ │ ├── code │ │ │ │ │ └── .gitignore │ │ │ │ ├── include │ │ │ │ │ ├── _profile_timer_hw.h │ │ │ │ │ ├── bspconfig.h │ │ │ │ │ ├── diskio.h │ │ │ │ │ ├── ff.h │ │ │ │ │ ├── ffconf.h │ │ │ │ │ ├── integer.h │ │ │ │ │ ├── mblaze_nt_types.h │ │ │ │ │ ├── profile.h │ │ │ │ │ ├── sleep.h │ │ │ │ │ ├── smc.h │ │ │ │ │ ├── vectors.h │ │ │ │ │ ├── xadcps.h │ │ │ │ │ ├── xadcps_hw.h │ │ │ │ │ ├── xbasic_types.h │ │ │ │ │ ├── xcoresightpsdcc.h │ │ │ │ │ ├── xcpu_cortexa9.h │ │ │ │ │ ├── xddrps.h │ │ │ │ │ ├── xdebug.h │ │ │ │ │ ├── xdevcfg.h │ │ │ │ │ ├── xdevcfg_hw.h │ │ │ │ │ ├── xdmaps.h │ │ │ │ │ ├── xdmaps_hw.h │ │ │ │ │ ├── xemacps.h │ │ │ │ │ ├── xemacps_bd.h │ │ │ │ │ ├── xemacps_bdring.h │ │ │ │ │ ├── xemacps_hw.h │ │ │ │ │ ├── xenv.h │ │ │ │ │ ├── xenv_standalone.h │ │ │ │ │ ├── xgpiops.h │ │ │ │ │ ├── xgpiops_hw.h │ │ │ │ │ ├── xiic.h │ │ │ │ │ ├── xiic_l.h │ │ │ │ │ ├── xil_assert.h │ │ │ │ │ ├── xil_cache.h │ │ │ │ │ ├── xil_cache_l.h │ │ │ │ │ ├── xil_cache_vxworks.h │ │ │ │ │ ├── xil_errata.h │ │ │ │ │ ├── xil_exception.h │ │ │ │ │ ├── xil_hal.h │ │ │ │ │ ├── xil_io.h │ │ │ │ │ ├── xil_macroback.h │ │ │ │ │ ├── xil_mem.h │ │ │ │ │ ├── xil_misc_psreset_api.h │ │ │ │ │ ├── xil_mmu.h │ │ │ │ │ ├── xil_printf.h │ │ │ │ │ ├── xil_sleeptimer.h │ │ │ │ │ ├── xil_testcache.h │ │ │ │ │ ├── xil_testio.h │ │ │ │ │ ├── xil_testmem.h │ │ │ │ │ ├── xil_types.h │ │ │ │ │ ├── xilrsa.h │ │ │ │ │ ├── xl2cc.h │ │ │ │ │ ├── xl2cc_counter.h │ │ │ │ │ ├── xparameters.h │ │ │ │ │ ├── xparameters_ps.h │ │ │ │ │ ├── xplatform_info.h │ │ │ │ │ ├── xpm_counter.h │ │ │ │ │ ├── xpseudo_asm.h │ │ │ │ │ ├── xpseudo_asm_gcc.h │ │ │ │ │ ├── xqspips.h │ │ │ │ │ ├── xqspips_hw.h │ │ │ │ │ ├── xreg_cortexa9.h │ │ │ │ │ ├── xscugic.h │ │ │ │ │ ├── xscugic_hw.h │ │ │ │ │ ├── xscutimer.h │ │ │ │ │ ├── xscutimer_hw.h │ │ │ │ │ ├── xscuwdt.h │ │ │ │ │ ├── xscuwdt_hw.h │ │ │ │ │ ├── xsdps.h │ │ │ │ │ ├── xsdps_hw.h │ │ │ │ │ ├── xspi.h │ │ │ │ │ ├── xspi_l.h │ │ │ │ │ ├── xspips.h │ │ │ │ │ ├── xspips_hw.h │ │ │ │ │ ├── xstatus.h │ │ │ │ │ ├── xtime_l.h │ │ │ │ │ ├── xttcps.h │ │ │ │ │ ├── xttcps_hw.h │ │ │ │ │ ├── xuartps.h │ │ │ │ │ ├── xuartps_hw.h │ │ │ │ │ ├── xusbps.h │ │ │ │ │ ├── xusbps_endpoint.h │ │ │ │ │ └── xusbps_hw.h │ │ │ │ ├── lib │ │ │ │ │ └── .gitignore │ │ │ │ └── libsrc │ │ │ │ │ ├── coresightps_dcc_v1_4 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xcoresightpsdcc.c │ │ │ │ │ │ └── xcoresightpsdcc.h │ │ │ │ │ ├── cpu_cortexa9_v2_6 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── xcpu_cortexa9.h │ │ │ │ │ ├── ddrps_v1_0 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── xddrps.h │ │ │ │ │ ├── devcfg_v3_5 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xdevcfg.c │ │ │ │ │ │ ├── xdevcfg.h │ │ │ │ │ │ ├── xdevcfg_g.c │ │ │ │ │ │ ├── xdevcfg_hw.c │ │ │ │ │ │ ├── xdevcfg_hw.h │ │ │ │ │ │ ├── xdevcfg_intr.c │ │ │ │ │ │ ├── xdevcfg_selftest.c │ │ │ │ │ │ └── xdevcfg_sinit.c │ │ │ │ │ ├── dmaps_v2_3 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xdmaps.c │ │ │ │ │ │ ├── xdmaps.h │ │ │ │ │ │ ├── xdmaps_g.c │ │ │ │ │ │ ├── xdmaps_hw.c │ │ │ │ │ │ ├── xdmaps_hw.h │ │ │ │ │ │ ├── xdmaps_selftest.c │ │ │ │ │ │ └── xdmaps_sinit.c │ │ │ │ │ ├── emacps_v3_7 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xemacps.c │ │ │ │ │ │ ├── xemacps.h │ │ │ │ │ │ ├── xemacps_bd.h │ │ │ │ │ │ ├── xemacps_bdring.c │ │ │ │ │ │ ├── xemacps_bdring.h │ │ │ │ │ │ ├── xemacps_control.c │ │ │ │ │ │ ├── xemacps_g.c │ │ │ │ │ │ ├── xemacps_hw.c │ │ │ │ │ │ ├── xemacps_hw.h │ │ │ │ │ │ ├── xemacps_intr.c │ │ │ │ │ │ └── xemacps_sinit.c │ │ │ │ │ ├── gpiops_v3_3 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xgpiops.c │ │ │ │ │ │ ├── xgpiops.h │ │ │ │ │ │ ├── xgpiops_g.c │ │ │ │ │ │ ├── xgpiops_hw.c │ │ │ │ │ │ ├── xgpiops_hw.h │ │ │ │ │ │ ├── xgpiops_intr.c │ │ │ │ │ │ ├── xgpiops_selftest.c │ │ │ │ │ │ └── xgpiops_sinit.c │ │ │ │ │ ├── iic_v3_4 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xiic.c │ │ │ │ │ │ ├── xiic.h │ │ │ │ │ │ ├── xiic_dyn_master.c │ │ │ │ │ │ ├── xiic_g.c │ │ │ │ │ │ ├── xiic_i.h │ │ │ │ │ │ ├── xiic_intr.c │ │ │ │ │ │ ├── xiic_l.c │ │ │ │ │ │ ├── xiic_l.h │ │ │ │ │ │ ├── xiic_master.c │ │ │ │ │ │ ├── xiic_multi_master.c │ │ │ │ │ │ ├── xiic_options.c │ │ │ │ │ │ ├── xiic_selftest.c │ │ │ │ │ │ ├── xiic_sinit.c │ │ │ │ │ │ ├── xiic_slave.c │ │ │ │ │ │ └── xiic_stats.c │ │ │ │ │ ├── qspips_v3_4 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xqspips.c │ │ │ │ │ │ ├── xqspips.h │ │ │ │ │ │ ├── xqspips_g.c │ │ │ │ │ │ ├── xqspips_hw.c │ │ │ │ │ │ ├── xqspips_hw.h │ │ │ │ │ │ ├── xqspips_options.c │ │ │ │ │ │ ├── xqspips_selftest.c │ │ │ │ │ │ └── xqspips_sinit.c │ │ │ │ │ ├── scugic_v3_9 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xscugic.c │ │ │ │ │ │ ├── xscugic.h │ │ │ │ │ │ ├── xscugic_g.c │ │ │ │ │ │ ├── xscugic_hw.c │ │ │ │ │ │ ├── xscugic_hw.h │ │ │ │ │ │ ├── xscugic_intr.c │ │ │ │ │ │ ├── xscugic_selftest.c │ │ │ │ │ │ └── xscugic_sinit.c │ │ │ │ │ ├── scutimer_v2_1 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xscutimer.c │ │ │ │ │ │ ├── xscutimer.h │ │ │ │ │ │ ├── xscutimer_g.c │ │ │ │ │ │ ├── xscutimer_hw.h │ │ │ │ │ │ ├── xscutimer_selftest.c │ │ │ │ │ │ └── xscutimer_sinit.c │ │ │ │ │ ├── scuwdt_v2_1 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xscuwdt.c │ │ │ │ │ │ ├── xscuwdt.h │ │ │ │ │ │ ├── xscuwdt_g.c │ │ │ │ │ │ ├── xscuwdt_hw.h │ │ │ │ │ │ ├── xscuwdt_selftest.c │ │ │ │ │ │ └── xscuwdt_sinit.c │ │ │ │ │ ├── sdps_v3_5 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xsdps.c │ │ │ │ │ │ ├── xsdps.h │ │ │ │ │ │ ├── xsdps_g.c │ │ │ │ │ │ ├── xsdps_hw.h │ │ │ │ │ │ ├── xsdps_options.c │ │ │ │ │ │ └── xsdps_sinit.c │ │ │ │ │ ├── spi_v4_4 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xspi.c │ │ │ │ │ │ ├── xspi.h │ │ │ │ │ │ ├── xspi_g.c │ │ │ │ │ │ ├── xspi_i.h │ │ │ │ │ │ ├── xspi_l.h │ │ │ │ │ │ ├── xspi_options.c │ │ │ │ │ │ ├── xspi_selftest.c │ │ │ │ │ │ ├── xspi_sinit.c │ │ │ │ │ │ └── xspi_stats.c │ │ │ │ │ ├── spips_v3_1 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xspips.c │ │ │ │ │ │ ├── xspips.h │ │ │ │ │ │ ├── xspips_g.c │ │ │ │ │ │ ├── xspips_hw.c │ │ │ │ │ │ ├── xspips_hw.h │ │ │ │ │ │ ├── xspips_options.c │ │ │ │ │ │ ├── xspips_selftest.c │ │ │ │ │ │ └── xspips_sinit.c │ │ │ │ │ ├── standalone_v6_7 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── _exit.c │ │ │ │ │ │ ├── _open.c │ │ │ │ │ │ ├── _sbrk.c │ │ │ │ │ │ ├── abort.c │ │ │ │ │ │ ├── asm_vectors.S │ │ │ │ │ │ ├── boot.S │ │ │ │ │ │ ├── bspconfig.h │ │ │ │ │ │ ├── changelog.txt │ │ │ │ │ │ ├── close.c │ │ │ │ │ │ ├── config.make │ │ │ │ │ │ ├── cpu_init.S │ │ │ │ │ │ ├── errno.c │ │ │ │ │ │ ├── fcntl.c │ │ │ │ │ │ ├── fstat.c │ │ │ │ │ │ ├── getpid.c │ │ │ │ │ │ ├── inbyte.c │ │ │ │ │ │ ├── isatty.c │ │ │ │ │ │ ├── kill.c │ │ │ │ │ │ ├── lseek.c │ │ │ │ │ │ ├── open.c │ │ │ │ │ │ ├── outbyte.c │ │ │ │ │ │ ├── print.c │ │ │ │ │ │ ├── profile │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── _profile_clean.c │ │ │ │ │ │ ├── _profile_init.c │ │ │ │ │ │ ├── _profile_timer_hw.c │ │ │ │ │ │ ├── _profile_timer_hw.h │ │ │ │ │ │ ├── dummy.S │ │ │ │ │ │ ├── mblaze_nt_types.h │ │ │ │ │ │ ├── profile.h │ │ │ │ │ │ ├── profile_cg.c │ │ │ │ │ │ ├── profile_config.h │ │ │ │ │ │ ├── profile_hist.c │ │ │ │ │ │ ├── profile_mcount_arm.S │ │ │ │ │ │ ├── profile_mcount_mb.S │ │ │ │ │ │ └── profile_mcount_ppc.S │ │ │ │ │ │ ├── putnum.c │ │ │ │ │ │ ├── read.c │ │ │ │ │ │ ├── sbrk.c │ │ │ │ │ │ ├── sleep.c │ │ │ │ │ │ ├── sleep.h │ │ │ │ │ │ ├── smc.h │ │ │ │ │ │ ├── translation_table.S │ │ │ │ │ │ ├── unlink.c │ │ │ │ │ │ ├── usleep.c │ │ │ │ │ │ ├── vectors.c │ │ │ │ │ │ ├── vectors.h │ │ │ │ │ │ ├── write.c │ │ │ │ │ │ ├── xbasic_types.h │ │ │ │ │ │ ├── xdebug.h │ │ │ │ │ │ ├── xenv.h │ │ │ │ │ │ ├── xenv_standalone.h │ │ │ │ │ │ ├── xil-crt0.S │ │ │ │ │ │ ├── xil_assert.c │ │ │ │ │ │ ├── xil_assert.h │ │ │ │ │ │ ├── xil_cache.c │ │ │ │ │ │ ├── xil_cache.h │ │ │ │ │ │ ├── xil_cache_l.h │ │ │ │ │ │ ├── xil_cache_vxworks.h │ │ │ │ │ │ ├── xil_errata.h │ │ │ │ │ │ ├── xil_exception.c │ │ │ │ │ │ ├── xil_exception.h │ │ │ │ │ │ ├── xil_hal.h │ │ │ │ │ │ ├── xil_io.c │ │ │ │ │ │ ├── xil_io.h │ │ │ │ │ │ ├── xil_macroback.h │ │ │ │ │ │ ├── xil_mem.c │ │ │ │ │ │ ├── xil_mem.h │ │ │ │ │ │ ├── xil_misc_psreset_api.c │ │ │ │ │ │ ├── xil_misc_psreset_api.h │ │ │ │ │ │ ├── xil_mmu.c │ │ │ │ │ │ ├── xil_mmu.h │ │ │ │ │ │ ├── xil_printf.c │ │ │ │ │ │ ├── xil_printf.h │ │ │ │ │ │ ├── xil_sleepcommon.c │ │ │ │ │ │ ├── xil_sleeptimer.c │ │ │ │ │ │ ├── xil_sleeptimer.h │ │ │ │ │ │ ├── xil_testcache.c │ │ │ │ │ │ ├── xil_testcache.h │ │ │ │ │ │ ├── xil_testio.c │ │ │ │ │ │ ├── xil_testio.h │ │ │ │ │ │ ├── xil_testmem.c │ │ │ │ │ │ ├── xil_testmem.h │ │ │ │ │ │ ├── xil_types.h │ │ │ │ │ │ ├── xl2cc.h │ │ │ │ │ │ ├── xl2cc_counter.c │ │ │ │ │ │ ├── xl2cc_counter.h │ │ │ │ │ │ ├── xparameters_ps.h │ │ │ │ │ │ ├── xplatform_info.c │ │ │ │ │ │ ├── xplatform_info.h │ │ │ │ │ │ ├── xpm_counter.c │ │ │ │ │ │ ├── xpm_counter.h │ │ │ │ │ │ ├── xpseudo_asm.h │ │ │ │ │ │ ├── xpseudo_asm_gcc.h │ │ │ │ │ │ ├── xreg_cortexa9.h │ │ │ │ │ │ ├── xstatus.h │ │ │ │ │ │ ├── xtime_l.c │ │ │ │ │ │ └── xtime_l.h │ │ │ │ │ ├── ttcps_v3_6 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xttcps.c │ │ │ │ │ │ ├── xttcps.h │ │ │ │ │ │ ├── xttcps_g.c │ │ │ │ │ │ ├── xttcps_hw.h │ │ │ │ │ │ ├── xttcps_options.c │ │ │ │ │ │ ├── xttcps_selftest.c │ │ │ │ │ │ └── xttcps_sinit.c │ │ │ │ │ ├── uartps_v3_6 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xuartps.c │ │ │ │ │ │ ├── xuartps.h │ │ │ │ │ │ ├── xuartps_g.c │ │ │ │ │ │ ├── xuartps_hw.c │ │ │ │ │ │ ├── xuartps_hw.h │ │ │ │ │ │ ├── xuartps_intr.c │ │ │ │ │ │ ├── xuartps_options.c │ │ │ │ │ │ ├── xuartps_selftest.c │ │ │ │ │ │ └── xuartps_sinit.c │ │ │ │ │ ├── usbps_v2_4 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xusbps.c │ │ │ │ │ │ ├── xusbps.h │ │ │ │ │ │ ├── xusbps_endpoint.c │ │ │ │ │ │ ├── xusbps_endpoint.h │ │ │ │ │ │ ├── xusbps_g.c │ │ │ │ │ │ ├── xusbps_hw.c │ │ │ │ │ │ ├── xusbps_hw.h │ │ │ │ │ │ ├── xusbps_intr.c │ │ │ │ │ │ └── xusbps_sinit.c │ │ │ │ │ ├── xadcps_v2_2 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── xadcps.c │ │ │ │ │ │ ├── xadcps.h │ │ │ │ │ │ ├── xadcps_g.c │ │ │ │ │ │ ├── xadcps_hw.h │ │ │ │ │ │ ├── xadcps_intr.c │ │ │ │ │ │ ├── xadcps_selftest.c │ │ │ │ │ │ └── xadcps_sinit.c │ │ │ │ │ ├── xilffs_v3_9 │ │ │ │ │ └── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── cc932.c │ │ │ │ │ │ ├── diskio.c │ │ │ │ │ │ ├── ff.c │ │ │ │ │ │ └── include │ │ │ │ │ │ ├── diskio.h │ │ │ │ │ │ ├── ff.h │ │ │ │ │ │ ├── ffconf.h │ │ │ │ │ │ └── integer.h │ │ │ │ │ └── xilrsa_v1_5 │ │ │ │ │ └── src │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── include │ │ │ │ │ └── xilrsa.h │ │ │ │ │ └── librsa.a │ │ │ └── system.mss │ │ │ └── fsbl │ │ │ ├── .cproject │ │ │ ├── .project │ │ │ ├── Debug │ │ │ ├── Xilinx.spec │ │ │ ├── makefile │ │ │ ├── objects.mk │ │ │ ├── sources.mk │ │ │ └── src │ │ │ │ └── subdir.mk │ │ │ └── src │ │ │ ├── Xilinx.spec │ │ │ ├── fsbl.h │ │ │ ├── fsbl_debug.h │ │ │ ├── fsbl_handoff.S │ │ │ ├── fsbl_hooks.c │ │ │ ├── fsbl_hooks.h │ │ │ ├── image_mover.c │ │ │ ├── image_mover.h │ │ │ ├── lscript.ld │ │ │ ├── main.c │ │ │ ├── md5.c │ │ │ ├── md5.h │ │ │ ├── nand.c │ │ │ ├── nand.h │ │ │ ├── nor.c │ │ │ ├── nor.h │ │ │ ├── pcap.c │ │ │ ├── pcap.h │ │ │ ├── ps7_parameters.xml │ │ │ ├── qspi.c │ │ │ ├── qspi.h │ │ │ ├── rsa.c │ │ │ ├── rsa.h │ │ │ ├── sd.c │ │ │ └── sd.h │ ├── pkcs11 │ │ ├── pkcs11.h │ │ ├── pkcs11f.h │ │ └── pkcs11t.h │ ├── tinycbor │ │ ├── LICENSE │ │ ├── assert_p.h │ │ ├── cbor.h │ │ ├── cborconstants_p.h │ │ ├── cborencoder.c │ │ ├── cborencoder_close_container_checked.c │ │ ├── cborerrorstrings.c │ │ ├── cborparser.c │ │ ├── cborparser_dup_string.c │ │ ├── cborpretty.c │ │ ├── compilersupport_p.h │ │ ├── extract_number_p.h │ │ └── math_support_p.h │ ├── tinycrypt │ │ ├── .gitignore │ │ ├── AUTHORS │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README │ │ ├── VERSION │ │ ├── asn1 │ │ │ ├── asn1.h │ │ │ └── asn1parse.c │ │ ├── config.mk │ │ ├── documentation │ │ │ └── tinycrypt.rst │ │ ├── lib │ │ │ ├── Makefile │ │ │ ├── include │ │ │ │ └── tinycrypt │ │ │ │ │ ├── aes.h │ │ │ │ │ ├── cbc_mode.h │ │ │ │ │ ├── ccm_mode.h │ │ │ │ │ ├── cmac_mode.h │ │ │ │ │ ├── constants.h │ │ │ │ │ ├── ctr_mode.h │ │ │ │ │ ├── ctr_prng.h │ │ │ │ │ ├── ecc.h │ │ │ │ │ ├── ecc_dh.h │ │ │ │ │ ├── ecc_dsa.h │ │ │ │ │ ├── ecc_platform_specific.h │ │ │ │ │ ├── hmac.h │ │ │ │ │ ├── hmac_prng.h │ │ │ │ │ ├── sha256.h │ │ │ │ │ └── utils.h │ │ │ └── source │ │ │ │ ├── aes_decrypt.c │ │ │ │ ├── aes_encrypt.c │ │ │ │ ├── cbc_mode.c │ │ │ │ ├── ccm_mode.c │ │ │ │ ├── cmac_mode.c │ │ │ │ ├── ctr_mode.c │ │ │ │ ├── ctr_prng.c │ │ │ │ ├── ecc.c │ │ │ │ ├── ecc_dh.c │ │ │ │ ├── ecc_dsa.c │ │ │ │ ├── ecc_platform_specific.c │ │ │ │ ├── hmac.c │ │ │ │ ├── hmac_prng.c │ │ │ │ ├── sha256.c │ │ │ │ └── utils.c │ │ └── tests │ │ │ ├── Makefile │ │ │ ├── include │ │ │ ├── test_ecc_utils.h │ │ │ └── test_utils.h │ │ │ ├── pseudo-random-data.bin │ │ │ ├── test_aes.c │ │ │ ├── test_cbc_mode.c │ │ │ ├── test_ccm_mode.c │ │ │ ├── test_cmac_mode.c │ │ │ ├── test_ctr_mode.c │ │ │ ├── test_ctr_prng.c │ │ │ ├── test_ecc_dh.c │ │ │ ├── test_ecc_dsa.c │ │ │ ├── test_ecc_utils.c │ │ │ ├── test_hmac.c │ │ │ ├── test_hmac_prng.c │ │ │ └── test_sha256.c │ ├── tracealyzer_recorder │ │ ├── Include │ │ │ ├── trcHardwarePort.h │ │ │ ├── trcKernelPort.h │ │ │ ├── trcPortDefines.h │ │ │ └── trcRecorder.h │ │ ├── ReadMe.url │ │ ├── config │ │ │ ├── trcConfig.h │ │ │ ├── trcSnapshotConfig.h │ │ │ └── trcStreamingConfig.h │ │ ├── readme.txt │ │ ├── streamports │ │ │ ├── Jlink_RTT │ │ │ │ ├── Readme-Streamport.txt │ │ │ │ ├── SEGGER_RTT.c │ │ │ │ ├── SEGGER_RTT_Printf.c │ │ │ │ └── include │ │ │ │ │ ├── SEGGER_RTT.h │ │ │ │ │ ├── SEGGER_RTT_Conf.h │ │ │ │ │ └── trcStreamingPort.h │ │ │ ├── TCPIP │ │ │ │ ├── Readme-Streamport.txt │ │ │ │ ├── include │ │ │ │ │ └── trcStreamingPort.h │ │ │ │ └── trcStreamingPort.c │ │ │ └── USB_CDC │ │ │ │ ├── Readme-Streamport.txt │ │ │ │ ├── include │ │ │ │ └── trcStreamingPort.h │ │ │ │ └── trcStreamingPort.c │ │ ├── trcKernelPort.c │ │ ├── trcSnapshotRecorder.c │ │ └── trcStreamingRecorder.c │ ├── unity │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── README.md │ │ ├── auto │ │ │ ├── colour_prompt.rb │ │ │ ├── colour_reporter.rb │ │ │ ├── generate_config.yml │ │ │ ├── generate_module.rb │ │ │ ├── generate_test_runner.rb │ │ │ ├── parse_output.rb │ │ │ ├── stylize_as_junit.rb │ │ │ ├── test_file_filter.rb │ │ │ ├── type_sanitizer.rb │ │ │ ├── unity_test_summary.py │ │ │ ├── unity_test_summary.rb │ │ │ └── unity_to_junit.py │ │ ├── docs │ │ │ ├── ThrowTheSwitchCodingStandard.md │ │ │ ├── UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf │ │ │ ├── UnityAssertionsReference.md │ │ │ ├── UnityConfigurationGuide.md │ │ │ ├── UnityGettingStartedGuide.md │ │ │ ├── UnityHelperScriptsGuide.md │ │ │ └── license.txt │ │ ├── examples │ │ │ ├── example_1 │ │ │ │ ├── makefile │ │ │ │ ├── readme.txt │ │ │ │ ├── src │ │ │ │ │ ├── ProductionCode.c │ │ │ │ │ ├── ProductionCode.h │ │ │ │ │ ├── ProductionCode2.c │ │ │ │ │ └── ProductionCode2.h │ │ │ │ └── test │ │ │ │ │ ├── TestProductionCode.c │ │ │ │ │ ├── TestProductionCode2.c │ │ │ │ │ └── test_runners │ │ │ │ │ ├── TestProductionCode2_Runner.c │ │ │ │ │ └── TestProductionCode_Runner.c │ │ │ ├── example_2 │ │ │ │ ├── makefile │ │ │ │ ├── readme.txt │ │ │ │ ├── src │ │ │ │ │ ├── ProductionCode.c │ │ │ │ │ ├── ProductionCode.h │ │ │ │ │ ├── ProductionCode2.c │ │ │ │ │ └── ProductionCode2.h │ │ │ │ └── test │ │ │ │ │ ├── TestProductionCode.c │ │ │ │ │ ├── TestProductionCode2.c │ │ │ │ │ └── test_runners │ │ │ │ │ ├── TestProductionCode2_Runner.c │ │ │ │ │ ├── TestProductionCode_Runner.c │ │ │ │ │ └── all_tests.c │ │ │ ├── example_3 │ │ │ │ ├── helper │ │ │ │ │ ├── UnityHelper.c │ │ │ │ │ └── UnityHelper.h │ │ │ │ ├── rakefile.rb │ │ │ │ ├── rakefile_helper.rb │ │ │ │ ├── readme.txt │ │ │ │ ├── src │ │ │ │ │ ├── ProductionCode.c │ │ │ │ │ ├── ProductionCode.h │ │ │ │ │ ├── ProductionCode2.c │ │ │ │ │ └── ProductionCode2.h │ │ │ │ ├── target_gcc_32.yml │ │ │ │ └── test │ │ │ │ │ ├── TestProductionCode.c │ │ │ │ │ └── TestProductionCode2.c │ │ │ └── unity_config.h │ │ ├── extras │ │ │ ├── eclipse │ │ │ │ └── error_parsers.txt │ │ │ └── fixture │ │ │ │ ├── rakefile.rb │ │ │ │ ├── rakefile_helper.rb │ │ │ │ ├── readme.txt │ │ │ │ ├── src │ │ │ │ ├── unity_fixture.c │ │ │ │ ├── unity_fixture.h │ │ │ │ ├── unity_fixture_internals.h │ │ │ │ └── unity_fixture_malloc_overrides.h │ │ │ │ └── test │ │ │ │ ├── Makefile │ │ │ │ ├── main │ │ │ │ └── AllTests.c │ │ │ │ ├── template_fixture_tests.c │ │ │ │ ├── unity_fixture_Test.c │ │ │ │ ├── unity_fixture_TestRunner.c │ │ │ │ ├── unity_output_Spy.c │ │ │ │ └── unity_output_Spy.h │ │ ├── release │ │ │ ├── build.info │ │ │ └── version.info │ │ ├── src │ │ │ ├── unity.c │ │ │ ├── unity.h │ │ │ └── unity_internals.h │ │ └── test │ │ │ ├── .rubocop.yml │ │ │ ├── Makefile │ │ │ ├── expectdata │ │ │ ├── testsample_cmd.c │ │ │ ├── testsample_def.c │ │ │ ├── testsample_head1.c │ │ │ ├── testsample_head1.h │ │ │ ├── testsample_mock_cmd.c │ │ │ ├── testsample_mock_def.c │ │ │ ├── testsample_mock_head1.c │ │ │ ├── testsample_mock_head1.h │ │ │ ├── testsample_mock_new1.c │ │ │ ├── testsample_mock_new2.c │ │ │ ├── testsample_mock_param.c │ │ │ ├── testsample_mock_run1.c │ │ │ ├── testsample_mock_run2.c │ │ │ ├── testsample_mock_yaml.c │ │ │ ├── testsample_new1.c │ │ │ ├── testsample_new2.c │ │ │ ├── testsample_param.c │ │ │ ├── testsample_run1.c │ │ │ ├── testsample_run2.c │ │ │ └── testsample_yaml.c │ │ │ ├── rakefile │ │ │ ├── rakefile_helper.rb │ │ │ ├── spec │ │ │ └── generate_module_existing_file_spec.rb │ │ │ ├── targets │ │ │ ├── clang_file.yml │ │ │ ├── clang_strict.yml │ │ │ ├── gcc_32.yml │ │ │ ├── gcc_64.yml │ │ │ ├── gcc_auto_limits.yml │ │ │ ├── gcc_auto_stdint.yml │ │ │ ├── gcc_manual_math.yml │ │ │ ├── hitech_picc18.yml │ │ │ ├── iar_arm_v4.yml │ │ │ ├── iar_arm_v5.yml │ │ │ ├── iar_arm_v5_3.yml │ │ │ ├── iar_armcortex_LM3S9B92_v5_4.yml │ │ │ ├── iar_cortexm3_v5.yml │ │ │ ├── iar_msp430.yml │ │ │ └── iar_sh2a_v6.yml │ │ │ ├── testdata │ │ │ ├── CException.h │ │ │ ├── Defs.h │ │ │ ├── cmock.h │ │ │ ├── mockMock.h │ │ │ ├── testRunnerGenerator.c │ │ │ ├── testRunnerGeneratorSmall.c │ │ │ └── testRunnerGeneratorWithMocks.c │ │ │ └── tests │ │ │ ├── test_generate_test_runner.rb │ │ │ ├── testparameterized.c │ │ │ └── testunity.c │ └── win_pcap │ │ ├── Packet32.h │ │ ├── PacketData.h │ │ ├── Win32-Extensions.h │ │ ├── arch.c │ │ ├── bittypes.h │ │ ├── ip6_misc.h │ │ ├── netif.h │ │ ├── pcap-bpf.h │ │ ├── pcap-namedb.h │ │ ├── pcap-stdinc.h │ │ ├── pcap.h │ │ ├── pcap │ │ ├── bluetooth.h │ │ ├── bpf.h │ │ ├── namedb.h │ │ ├── pcap.h │ │ ├── sll.h │ │ ├── usb.h │ │ └── vlan.h │ │ └── remote-ext.h ├── tls │ └── aws_tls.c ├── utils │ └── aws_system_init.c └── wifi │ └── portable │ └── vendor │ └── board │ └── aws_wifi.c └── tests ├── AFQP Developer Guide - Board Qualification Errata.pdf ├── Amazon FreeRTOS Qualification Program Developer Guide.pdf ├── common ├── cbor │ └── aws_test_cbor.c ├── crypto │ └── aws_test_crypto.c ├── defender │ └── aws_test_defender.c ├── framework │ └── aws_test_framework.c ├── freertos_tcp │ └── aws_test_freertos_tcp.c ├── greengrass │ ├── aws_test_greengrass_discovery.c │ └── aws_test_helper_secure_connect.c ├── include │ ├── aws_application_version.h │ ├── aws_clientcredential.h │ ├── aws_clientcredential_keys.h │ ├── aws_dev_mode_key_provisioning.h │ ├── aws_freertos_tcp_test_access_declare.h │ ├── aws_freertos_tcp_test_access_dns_define.h │ ├── aws_freertos_tcp_test_access_tcp_define.h │ ├── aws_greengrass_discovery_test_access_declare.h │ ├── aws_greengrass_discovery_test_access_define.h │ ├── aws_logging_task.h │ ├── aws_mqtt_lib_test_access_declare.h │ ├── aws_mqtt_lib_test_access_define.h │ ├── aws_ota_agent_test_access_declare.h │ ├── aws_ota_agent_test_access_define.h │ ├── aws_ota_codesigner_certificate.h │ ├── aws_ota_pal_test_access_declare.h │ ├── aws_ota_pal_test_access_define.h │ ├── aws_test_framework.h │ ├── aws_test_runner.h │ ├── aws_test_tcp.h │ ├── aws_test_tls.h │ ├── aws_test_utils.h │ └── aws_unity_config.h ├── memory_leak │ └── aws_memory_leak.c ├── mqtt │ ├── aws_test_mqtt_agent.c │ └── aws_test_mqtt_lib.c ├── ota │ ├── README.md │ ├── aws_test_ota_agent.c │ ├── aws_test_ota_cbor.c │ ├── aws_test_ota_pal.c │ ├── aws_test_ota_pal_ecdsa_sha256_signature.h │ ├── aws_test_ota_pal_rsa_sha1_signature.h │ ├── aws_test_ota_pal_rsa_sha256_signature.h │ ├── aws_test_ota_signature_methods.h │ └── test_files │ │ ├── describeStreamResponse.cbor │ │ ├── ecdsa-sha256-signer.crt.pem │ │ ├── ecdsa-sha256-signer.key.pem │ │ ├── getStreamResponse_0.cbor │ │ ├── getStreamResponse_1.cbor │ │ ├── getStreamResponse_10.cbor │ │ ├── getStreamResponse_11.cbor │ │ ├── getStreamResponse_12.cbor │ │ ├── getStreamResponse_13.cbor │ │ ├── getStreamResponse_14.cbor │ │ ├── getStreamResponse_15.cbor │ │ ├── getStreamResponse_2.cbor │ │ ├── getStreamResponse_3.cbor │ │ ├── getStreamResponse_4.cbor │ │ ├── getStreamResponse_5.cbor │ │ ├── getStreamResponse_6.cbor │ │ ├── getStreamResponse_7.cbor │ │ ├── getStreamResponse_8.cbor │ │ ├── getStreamResponse_9.cbor │ │ ├── payload.bin │ │ ├── rsa-sha1-root-ca-cert-key.pem │ │ ├── rsa-sha1-root-ca-cert.pem │ │ ├── rsa-sha1-signer.crt.pem │ │ ├── rsa-sha1-signer.key.pem │ │ ├── rsa-sha256-signer.crt.pem │ │ ├── rsa-sha256-signer.key.pem │ │ └── rsasigner.crt ├── pkcs11 │ └── aws_test_pkcs11.c ├── posix │ ├── aws_test_posix_clock.c │ ├── aws_test_posix_mqueue.c │ ├── aws_test_posix_pthread.c │ ├── aws_test_posix_semaphore.c │ ├── aws_test_posix_stress.c │ ├── aws_test_posix_timer.c │ └── aws_test_posix_utils.c ├── secure_sockets │ └── aws_test_tcp.c ├── shadow │ └── aws_test_shadow.c ├── test_runner │ └── aws_test_runner.c ├── tls │ └── aws_test_tls.c └── wifi │ └── aws_test_wifi.c └── xilinx └── microzed ├── .gitignore ├── common ├── application_code │ ├── main.c │ └── xilinx_code │ │ ├── FreeRTOS_asm_vectors.S │ │ ├── FreeRTOS_tick_config.c │ │ ├── hr_gettime.c │ │ ├── hr_gettime.h │ │ ├── memcpy.c │ │ ├── platform_config.h │ │ ├── uncached_memory.c │ │ └── uncached_memory.h └── config_files │ ├── FreeRTOSConfig.h │ ├── FreeRTOSIPConfig.h │ ├── aws_bufferpool_config.h │ ├── aws_ggd_config.h │ ├── aws_mqtt_agent_config.h │ ├── aws_mqtt_config.h │ ├── aws_pkcs11_config.h │ ├── aws_secure_sockets_config.h │ ├── aws_shadow_config.h │ ├── aws_test_pkcs11_config.h │ ├── aws_test_runner_config.h │ ├── aws_test_tcp_config.h │ ├── aws_test_wifi_config.h │ ├── aws_wifi_config.h │ └── unity_config.h └── xsdk ├── .gitignore ├── README.md ├── aws_tests.bif ├── aws_tests ├── .cproject ├── .gitignore ├── .project └── src │ ├── README.txt │ ├── Xilinx.spec │ └── lscript.ld └── reset.tcl /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.out 34 | *.app 35 | *.i*86 36 | *.x86_64 37 | *.hex 38 | 39 | # Debug files 40 | *.dSYM/ 41 | *.su 42 | *.idb 43 | *.pdb 44 | 45 | # Kernel Module Compile Results 46 | *.mod* 47 | *.cmd 48 | .tmp_versions/ 49 | modules.order 50 | Module.symvers 51 | Mkfile.old 52 | dkms.conf 53 | .DS_Store 54 | **/.DS_Store 55 | 56 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (C) 2018 Amazon.com, Inc. and Xilinx Inc. All Rights Reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /cloud/.gitignore: -------------------------------------------------------------------------------- 1 | *zip 2 | -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_aws_connectivity_handler/greengrasssdk/__init__.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | from .client import client 6 | from .Lambda import StreamingBody 7 | INTERFACE_VERSION = '1.0' 8 | -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_aws_connectivity_handler/greengrasssdk/client.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | 6 | def client(client_type, *args): 7 | if client_type == 'lambda': 8 | from .Lambda import Client 9 | elif client_type == 'iot-data': 10 | from .IoTDataPlane import Client 11 | else: 12 | raise Exception('Client type {} is not recognized.'.format(repr(client_type))) 13 | 14 | return Client(*args) 15 | -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_aws_connectivity_handler/greengrasssdk/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/cloud/aws_xilinx_workshop_aws_connectivity_handler/greengrasssdk/utils/__init__.py -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_core_shadow_proxy_handler/greengrasssdk/__init__.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | from .client import client 6 | from .Lambda import StreamingBody 7 | INTERFACE_VERSION = '1.0' 8 | -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_core_shadow_proxy_handler/greengrasssdk/client.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | 6 | def client(client_type, *args): 7 | if client_type == 'lambda': 8 | from .Lambda import Client 9 | elif client_type == 'iot-data': 10 | from .IoTDataPlane import Client 11 | else: 12 | raise Exception('Client type {} is not recognized.'.format(repr(client_type))) 13 | 14 | return Client(*args) 15 | -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_core_shadow_proxy_handler/greengrasssdk/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/cloud/aws_xilinx_workshop_core_shadow_proxy_handler/greengrasssdk/utils/__init__.py -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_intelligent_io_error_handler/greengrasssdk/__init__.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | from .client import client 6 | from .Lambda import StreamingBody 7 | INTERFACE_VERSION = '1.0' 8 | -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_intelligent_io_error_handler/greengrasssdk/client.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | 6 | def client(client_type, *args): 7 | if client_type == 'lambda': 8 | from .Lambda import Client 9 | elif client_type == 'iot-data': 10 | from .IoTDataPlane import Client 11 | else: 12 | raise Exception('Client type {} is not recognized.'.format(repr(client_type))) 13 | 14 | return Client(*args) 15 | -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_intelligent_io_error_handler/greengrasssdk/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/cloud/aws_xilinx_workshop_intelligent_io_error_handler/greengrasssdk/utils/__init__.py -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_telemetry_enrichment_handler/greengrasssdk/__init__.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | from .client import client 6 | from .Lambda import StreamingBody 7 | INTERFACE_VERSION = '1.0' 8 | -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_telemetry_enrichment_handler/greengrasssdk/client.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | 6 | def client(client_type, *args): 7 | if client_type == 'lambda': 8 | from .Lambda import Client 9 | elif client_type == 'iot-data': 10 | from .IoTDataPlane import Client 11 | else: 12 | raise Exception('Client type {} is not recognized.'.format(repr(client_type))) 13 | 14 | return Client(*args) 15 | -------------------------------------------------------------------------------- /cloud/aws_xilinx_workshop_telemetry_enrichment_handler/greengrasssdk/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/cloud/aws_xilinx_workshop_telemetry_enrichment_handler/greengrasssdk/utils/__init__.py -------------------------------------------------------------------------------- /cloud/xilinx-bitstream-deploy-handler/greengrasssdk/__init__.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | from .client import client 6 | from .Lambda import StreamingBody 7 | INTERFACE_VERSION = '1.0' 8 | -------------------------------------------------------------------------------- /cloud/xilinx-bitstream-deploy-handler/greengrasssdk/client.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | 6 | def client(client_type, *args): 7 | if client_type == 'lambda': 8 | from .Lambda import Client 9 | elif client_type == 'iot-data': 10 | from .IoTDataPlane import Client 11 | else: 12 | raise Exception('Client type {} is not recognized.'.format(repr(client_type))) 13 | 14 | return Client(*args) 15 | -------------------------------------------------------------------------------- /cloud/xilinx-bitstream-deploy-handler/greengrasssdk/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/cloud/xilinx-bitstream-deploy-handler/greengrasssdk/utils/__init__.py -------------------------------------------------------------------------------- /cloud/xilinx-hello-world/greengrasssdk/__init__.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | from .client import client 6 | from .Lambda import StreamingBody 7 | INTERFACE_VERSION = '1.0' 8 | -------------------------------------------------------------------------------- /cloud/xilinx-hello-world/greengrasssdk/client.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | 6 | def client(client_type, *args): 7 | if client_type == 'lambda': 8 | from .Lambda import Client 9 | elif client_type == 'iot-data': 10 | from .IoTDataPlane import Client 11 | else: 12 | raise Exception('Client type {} is not recognized.'.format(repr(client_type))) 13 | 14 | return Client(*args) 15 | -------------------------------------------------------------------------------- /cloud/xilinx-hello-world/greengrasssdk/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/cloud/xilinx-hello-world/greengrasssdk/utils/__init__.py -------------------------------------------------------------------------------- /cloud/xilinx-image-upload-handler/greengrasssdk/__init__.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | from .client import client 6 | from .Lambda import StreamingBody 7 | INTERFACE_VERSION = '1.0' 8 | -------------------------------------------------------------------------------- /cloud/xilinx-image-upload-handler/greengrasssdk/client.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | 6 | def client(client_type, *args): 7 | if client_type == 'lambda': 8 | from .Lambda import Client 9 | elif client_type == 'iot-data': 10 | from .IoTDataPlane import Client 11 | else: 12 | raise Exception('Client type {} is not recognized.'.format(repr(client_type))) 13 | 14 | return Client(*args) 15 | -------------------------------------------------------------------------------- /cloud/xilinx-image-upload-handler/greengrasssdk/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/cloud/xilinx-image-upload-handler/greengrasssdk/utils/__init__.py -------------------------------------------------------------------------------- /cloud/xilinx-video-inference-handler/greengrasssdk/__init__.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | from .client import client 6 | from .Lambda import StreamingBody 7 | INTERFACE_VERSION = '1.0' 8 | -------------------------------------------------------------------------------- /cloud/xilinx-video-inference-handler/greengrasssdk/client.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # 4 | 5 | 6 | def client(client_type, *args): 7 | if client_type == 'lambda': 8 | from .Lambda import Client 9 | elif client_type == 'iot-data': 10 | from .IoTDataPlane import Client 11 | else: 12 | raise Exception('Client type {} is not recognized.'.format(repr(client_type))) 13 | 14 | return Client(*args) 15 | -------------------------------------------------------------------------------- /cloud/xilinx-video-inference-handler/greengrasssdk/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/cloud/xilinx-video-inference-handler/greengrasssdk/utils/__init__.py -------------------------------------------------------------------------------- /doc/images/xsdk_create_boot_image.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_create_boot_image.jpeg -------------------------------------------------------------------------------- /doc/images/xsdk_create_boot_image_menu.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_create_boot_image_menu.jpeg -------------------------------------------------------------------------------- /doc/images/xsdk_create_boot_image_override.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_create_boot_image_override.jpeg -------------------------------------------------------------------------------- /doc/images/xsdk_disable_build_automatically.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_disable_build_automatically.jpeg -------------------------------------------------------------------------------- /doc/images/xsdk_help_tab_close.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_help_tab_close.jpeg -------------------------------------------------------------------------------- /doc/images/xsdk_import_project1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_import_project1.jpeg -------------------------------------------------------------------------------- /doc/images/xsdk_import_project2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_import_project2.jpeg -------------------------------------------------------------------------------- /doc/images/xsdk_import_project3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_import_project3.jpeg -------------------------------------------------------------------------------- /doc/images/xsdk_new_variable.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_new_variable.jpeg -------------------------------------------------------------------------------- /doc/images/xsdk_specify_workspace.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_specify_workspace.jpeg -------------------------------------------------------------------------------- /doc/images/xsdk_string_subst.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/doc/images/xsdk_string_subst.jpeg -------------------------------------------------------------------------------- /edge/.gitignore: -------------------------------------------------------------------------------- 1 | auth-gateway-ultra96 2 | auth-node-zynq7k 3 | ggc-config 4 | -------------------------------------------------------------------------------- /edge/sd_card/BOOT.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/edge/sd_card/BOOT.bin -------------------------------------------------------------------------------- /edge/sd_card/uzed.img.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/edge/sd_card/uzed.img.gz -------------------------------------------------------------------------------- /images/AFR_HelloWorld_Test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/AFR_HelloWorld_Test.png -------------------------------------------------------------------------------- /images/AFR_HelloWorld_Test_Response.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/AFR_HelloWorld_Test_Response.png -------------------------------------------------------------------------------- /images/Greengrass_HelloWorld_Test.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Greengrass_HelloWorld_Test.PNG -------------------------------------------------------------------------------- /images/IAM_Role.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/IAM_Role.PNG -------------------------------------------------------------------------------- /images/Lab3_Error_Shadow.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Lab3_Error_Shadow.PNG -------------------------------------------------------------------------------- /images/Lab3_NonError_Shadow.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Lab3_NonError_Shadow.PNG -------------------------------------------------------------------------------- /images/MicroZed_HW_Overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/MicroZed_HW_Overview.png -------------------------------------------------------------------------------- /images/MicroZed_IIoT_HW_Overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/MicroZed_IIoT_HW_Overview.png -------------------------------------------------------------------------------- /images/MicroZed_MAX31855_Thermocouple_Removed.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/MicroZed_MAX31855_Thermocouple_Removed.jpg -------------------------------------------------------------------------------- /images/MicroZed_SD_CardJumperSettings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/MicroZed_SD_CardJumperSettings.png -------------------------------------------------------------------------------- /images/Publish_Bitstream_Deploy.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Publish_Bitstream_Deploy.PNG -------------------------------------------------------------------------------- /images/Publish_Image_Upload.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Publish_Image_Upload.PNG -------------------------------------------------------------------------------- /images/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /images/S3_Bucket_Create.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/S3_Bucket_Create.PNG -------------------------------------------------------------------------------- /images/S3_Bucket_Create_Menu.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/S3_Bucket_Create_Menu.PNG -------------------------------------------------------------------------------- /images/Sensor_Data_Topic.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Sensor_Data_Topic.PNG -------------------------------------------------------------------------------- /images/Ultra96_Device_Shadow.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Ultra96_Device_Shadow.PNG -------------------------------------------------------------------------------- /images/Ultra96_LED_Configuration.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Ultra96_LED_Configuration.PNG -------------------------------------------------------------------------------- /images/Ultra96_LEDs_MarkedUp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Ultra96_LEDs_MarkedUp.jpg -------------------------------------------------------------------------------- /images/Ultra96_NoCamera.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Ultra96_NoCamera.jpg -------------------------------------------------------------------------------- /images/Ultra96_WithCamera.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/images/Ultra96_WithCamera.jpg -------------------------------------------------------------------------------- /zynq7k_demo/demos/common/directories.txt: -------------------------------------------------------------------------------- 1 | This file describes the subdirectories found in the /demo/common directory of 2 | the Amazon FreeRTOS distribution. 3 | 4 | include: 5 | Contains all the header files required to build the demo files contained in the 6 | library specific demo directories. 7 | 8 | tools: 9 | Contains the tools required for setting up the environment for the demo projects 10 | to run. 11 | 12 | All other directories: 13 | Contains the implementation of non device-specific demos of the Amazon FreeRTOS 14 | libraries, organized by library. 15 | 16 | 17 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/common/ota/bootloader/include/aws_boot_codesigner_public_key.h: -------------------------------------------------------------------------------- 1 | /*This file is autogenerated by codesigner_cert_utility.py. */ 2 | 3 | const unsigned char pucCodeSignPublicKey[] = { 4 | 5 | /* The public key will be extracted here in ASN.1 encoded format 6 | * from code signer certificate kept at 7 | * \demos\common\ota\bootloader\utility\codesigner_cert_utility\ 8 | * with name aws_ota_codesigner_certificate.pem 9 | */ 10 | }; 11 | 12 | const unsigned int ulCodeSignPublickeyLength = 0; -------------------------------------------------------------------------------- /zynq7k_demo/demos/common/ota/bootloader/utility/.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/common/ota/bootloader/utility/binary_image_generator.py: -------------------------------------------------------------------------------- 1 | import os 2 | import argparse 3 | 4 | 5 | def parseParams(): 6 | parser = argparse.ArgumentParser() 7 | 8 | parser.add_argument('-d', '--dir', required=True, help="Directory containing objcopy tool.") 9 | parser.add_argument('-b', '--bin', required=True, help="Name of objcopy tool.") 10 | parser.add_argument('-p', '--params', required=True, help="parameters to be passed to objcopy tool.") 11 | 12 | args = vars(parser.parse_args()) 13 | return args 14 | 15 | 16 | def main(): 17 | args = parseParams() 18 | 19 | objcopy_dir = args['dir'] 20 | objcopy_bin = args['bin'] 21 | objcopy_full_path = os.path.join(objcopy_dir, objcopy_bin) 22 | 23 | bin_converter_command = '"' + objcopy_full_path + '"' + ' ' + args['params'] 24 | print('Executing.. {}'.format(bin_converter_command)) 25 | os.system(bin_converter_command) 26 | 27 | 28 | if __name__ == "__main__": 29 | main() 30 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/common/ota/bootloader/utility/config-validation-rules/MCHP-Curiosity-PIC32MZEF: -------------------------------------------------------------------------------- 1 | # minimum valid address, 32-bit hexadecimal number 2 | MIN_ADDRESS = 0xBD000008 3 | 4 | # maximum valid address, 32-bit hexadecimal number 5 | MAX_ADDRESS = 0xBD0FFFFF 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/common/ota/bootloader/utility/user-config/aws-code-sign.config: -------------------------------------------------------------------------------- 1 | # code signing platform 2 | # supported platforms [AmazonFreeRTOS-TI-CC3220SF,AmazonFreeRTOS-Default] 3 | CODE_SIGN_PLATFORM = AmazonFreeRTOS-Default 4 | 5 | # name of the bucket to store the unsigned image, must be created and versioning enabled before running the python script 6 | UNSIGNED_BUCKET_NAME = ota-unsigned-image 7 | 8 | # name of the bucket to store the signed image,must be created before running the python script 9 | SIGNED_BUCKET_NAME = ota-signed-image 10 | 11 | # certificate arn 12 | CERT_ARN = arn:aws:acm:... 13 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/common/ota/bootloader/utility/user-config/ota-descriptor.config: -------------------------------------------------------------------------------- 1 | #Following are parameters used to configure the OTA descriptor. 2 | 3 | # 1. OTA sequence number in 32-bit unsigned integer 4 | # Expected range [1,4294967295] 5 | 6 | SEQUENCE_NUMBER = 2 7 | 8 | 9 | 10 | 11 | # 2. startAddress in 32-bit hexadecimal number 12 | # Expected range [MIN_ADDRESS, MAX_ADDRESS), where MIN_ADDRESS and MAX_ADDRESS are defined in config-validation-rules folder 13 | 14 | START_ADDRESS = 0xBD000008 15 | 16 | 17 | 18 | 19 | # 3. executionAddress in 32-bit hexadecimal number 20 | # Expected range [START_ADDRESS,END_ADDRESS], where END_ADDRESS = START_ADDRESS + 24 bytes + size of input image 21 | 22 | EXECUTION_ADDRESS = 0xBD000020 23 | 24 | 25 | 26 | 27 | # 4. hardwareID 28 | # Expected format: a.b.c 29 | # where a,b is 8-bit unsigned integer with range [0,255], c is 16-bit unsigned integer with range range[0,65535] 30 | # Exmples are 0.0.0 or 255.255.65535 31 | 32 | HARDWARE_ID = 0.0.1 33 | 34 | 35 | 36 | 37 | # 5. reserve byte in in 32-bit hexadecimal number 38 | # Expected range [0x0,0xFFFFFFFF] 39 | 40 | RESERVED_BYTES = 0xFFFFFFFF 41 | 42 | 43 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/directories.txt: -------------------------------------------------------------------------------- 1 | This file describes the subdirectories found in the /demo directory of the 2 | Amazon FreeRTOS distribution. 3 | 4 | common: 5 | Contains the implementation of non device-specific demos of the Amazon FreeRTOS 6 | libraries. 7 | 8 | All other directories: 9 | Contains a set of pre-configured demo projects for various target platforms, 10 | organized first by vendor name and then by target platform. 11 | 12 | 13 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/.gitignore: -------------------------------------------------------------------------------- 1 | Packages -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/common/application_code/xilinx_code/hr_gettime.c: -------------------------------------------------------------------------------- 1 | /* Scheduler includes. */ 2 | #include "FreeRTOS.h" 3 | 4 | /* Xilinx includes. */ 5 | #include "xparameters.h" 6 | #include "xtime_l.h" 7 | #include "xscugic.h" 8 | 9 | 10 | //#define XPAR_CPU_CORTEXA9_0_CPU_CLK_FREQ_HZ 666666687 11 | // 12 | ///* Global Timer is always clocked at half of the CPU frequency */ 13 | #define COUNTS_PER_USECOND ( XPAR_CPU_CORTEXA9_CORE_CLOCK_FREQ_HZ / ( 2 * 1000000 ) ) 14 | // 666666687 / (2*1000000) = 333.3333435 15 | 16 | 17 | void init_timer( int xTimer ) 18 | { 19 | ( void ) xTimer; 20 | } 21 | 22 | unsigned long long ullGetHighResolutionTime( void ) 23 | { 24 | XTime tCur; 25 | 26 | XTime_GetTime( &tCur ); 27 | tCur /= COUNTS_PER_USECOND; 28 | 29 | return tCur; 30 | } 31 | 32 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/common/application_code/xilinx_code/hr_gettime.h: -------------------------------------------------------------------------------- 1 | #ifndef HR_GETTIME_H 2 | 3 | #define HR_GETTIME_H 4 | 5 | void init_timer( int xTimer ); 6 | 7 | /* Start-up the high-resolution timer. */ 8 | void vStartHighResolutionTimer( void ); 9 | 10 | /* Get the current time measured in uS. */ 11 | unsigned long long ullGetHighResolutionTime( void ); 12 | 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/common/application_code/xilinx_code/platform_config.h: -------------------------------------------------------------------------------- 1 | #ifndef __PLATFORM_CONFIG_H_ 2 | #define __PLATFORM_CONFIG_H_ 3 | 4 | #define STDOUT_IS_PS7_UART 5 | #define UART_DEVICE_ID 0 6 | #endif 7 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/common/application_code/xilinx_code/uncached_memory.h: -------------------------------------------------------------------------------- 1 | /* 2 | * uncached_memory.h 3 | * 4 | * This module will declare 1 MB of memory and switch off the caching for it. 5 | * 6 | * pucGetUncachedMemory( ulSize ) returns a trunc of this memory with a length 7 | * rounded up to a multiple of 4 KB 8 | * 9 | * ucIsCachedMemory( pucBuffer ) returns non-zero if a given pointer is NOT 10 | * within the range of the 1 MB non-cached memory. 11 | * 12 | */ 13 | 14 | #ifndef UNCACHEMEMORY_H 15 | 16 | #define UNCACHEMEMORY_H 17 | 18 | uint8_t *pucGetUncachedMemory( uint32_t ulSize ); 19 | 20 | uint8_t ucIsCachedMemory( const uint8_t *pucBuffer ); 21 | 22 | #endif /* UNCACHEMEMORY_H */ 23 | 24 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/xsdk/.gitignore: -------------------------------------------------------------------------------- 1 | SDK.log 2 | .metadata 3 | RemoteSystemsTempFiles 4 | .sdk -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/xsdk/README.md: -------------------------------------------------------------------------------- 1 | ## File Information 2 | 3 | ### reset.tcl 4 | * This file is used to send commands to xsct to connect to the Microzed development board through JTAG and reset and run 5 | the current application that is in flash. 6 | * Run command: 7 | ```xsct reset.tcl``` 8 | 9 | ### aws_demos/bootimage/aws_demos.bif 10 | * Used to create BOOT.bin for booting and running the aws_demos application on the Microzed development board from flash. 11 | * BOOT.bin is created with the current working directory as the AFR_ROOT with the commands: 12 | ```bootgen -image demos/xilinx/microzed/xsdk/aws_demos.bif -o i demos/xilinx/microzed/xsdk/BOOT.bin``` 13 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/xsdk/aws_demos/.gitignore: -------------------------------------------------------------------------------- 1 | /Debug/ 2 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/xsdk/aws_demos/src/README.txt: -------------------------------------------------------------------------------- 1 | Empty application. Add your own sources. 2 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/xsdk/aws_demos/src/Xilinx.spec: -------------------------------------------------------------------------------- 1 | *startfile: 2 | crti%O%s crtbegin%O%s 3 | -------------------------------------------------------------------------------- /zynq7k_demo/demos/xilinx/microzed/xsdk/reset.tcl: -------------------------------------------------------------------------------- 1 | # Connect to the device 2 | connect 3 | # List available targets for debug. 4 | targets 5 | # Select the APU target 6 | target 1 7 | # Reset the device 8 | rst 9 | # Begin running the flashed image 10 | con -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS-Plus-TCP/source/ReadMe.url: -------------------------------------------------------------------------------- 1 | [{000214A0-0000-0000-C000-000000000046}] 2 | Prop3=19,2 3 | [InternetShortcut] 4 | URL=http://www.freertos.org/tcp 5 | IDList= 6 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS-Plus-TCP/source/portable/Compiler/CompilerName/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Update pack_struct_start.h and pack_struct_end.h for your architecure. 2 | These files define the specifiers needed by your compiler to properly pack struct data 3 | need by FreeRTOS+TCP. -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/LPC18xx/ReadMe.txt: -------------------------------------------------------------------------------- 1 | NetworkInterface.c: 2 | Requires NXP's LPCOpen library and was developed on an LPC1830 and LPC1835 Xplorer 3 | boards from NGX. -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/README_DRIVER_DISCLAIMER.txt: -------------------------------------------------------------------------------- 1 | Network drivers are provided as examples only, and do not form part of the 2 | FreeRTOS+TCP stack itself. They: 3 | 4 | + May be based on driver code provided by the chip vendors, 5 | + May not have been tested in all possible configurations, 6 | + Will not necessarily be optimised. 7 | + May have a dependency on a particular PHY part number. 8 | + May not necessarily comply with any particular coding standard. 9 | + May have dependencies on chip company libraries. 10 | + May include other hardware board dependencies. 11 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/Zynq/README.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | NetworkInterface for Xilinx' Zynq 4 | 5 | Please include the following source files: 6 | 7 | $(PLUS_TCP_PATH)/portable/NetworkInterface/Zynq/NetworkInterface.c 8 | $(PLUS_TCP_PATH)/portable/NetworkInterface/Zynq/x_emacpsif_dma.c 9 | $(PLUS_TCP_PATH)/portable/NetworkInterface/Zynq/x_emacpsif_physpeed.c 10 | $(PLUS_TCP_PATH)/portable/NetworkInterface/Zynq/x_emacpsif_hw.c 11 | 12 | And include the following source files from the Xilinx library: 13 | 14 | $(CPU_PATH)/$(PROCESSOR)/libsrc/emacps_v2_0/src/xemacps.c 15 | $(CPU_PATH)/$(PROCESSOR)/libsrc/emacps_v2_0/src/xemacps_control.c 16 | $(CPU_PATH)/$(PROCESSOR)/libsrc/emacps_v2_0/src/xemacps_g.c 17 | $(CPU_PATH)/$(PROCESSOR)/libsrc/emacps_v2_0/src/xemacps_intr.c 18 | 19 | E.g. ps7_cortexa9_0/libsrc/emacps_v2_0/src/xemacps_intr.c 20 | 21 | The following source files are NOT used for the FreeRTOS+TCP interface: 22 | 23 | $(CPU_PATH)/$(PROCESSOR)/libsrc/emacps_v2_0/src/xemacps_bdring.c 24 | $(CPU_PATH)/$(PROCESSOR)/libsrc/emacps_v2_0/src/xemacps_hw.c 25 | $(CPU_PATH)/$(PROCESSOR)/libsrc/emacps_v2_0/src/xemacps_sinit.c 26 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/board_family/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Update NetworkInterface.c and include other files needed by FreeRTOS+TCP here. -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS-Plus-TCP/source/readme.txt: -------------------------------------------------------------------------------- 1 | Contains the files that implement FreeRTOS+TCP. 2 | 3 | User documentation, including an API reference is available on: 4 | http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/ 5 | 6 | A description of the source code organisation is available on: 7 | http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_Networking_Tutorial.html 8 | 9 | The porting guide is available on: 10 | http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/FreeRTOS_TCP_Porting.html 11 | 12 | License information is available on: 13 | http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/FreeRTOS_Plus_TCP_License.html 14 | 15 | At this time it is recommended to use BufferAllocation_2.c in which case it is 16 | essential to use the heap_4.c memory allocation scheme: 17 | http://www.FreeRTOS.org/a00111.html 18 | 19 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/GCC/ARM7_AT91SAM7S/lib_AT91SAM7X256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/FreeRTOS/portable/GCC/ARM7_AT91SAM7S/lib_AT91SAM7X256.h -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/GCC/ARM_CM7/ReadMe.txt: -------------------------------------------------------------------------------- 1 | There are two options for running FreeRTOS on ARM Cortex-M7 microcontrollers. 2 | The best option depends on the revision of the ARM Cortex-M7 core in use. The 3 | revision is specified by an 'r' number, and a 'p' number, so will look something 4 | like 'r0p1'. Check the documentation for the microcontroller in use to find the 5 | revision of the Cortex-M7 core used in that microcontroller. If in doubt, use 6 | the FreeRTOS port provided specifically for r0p1 revisions, as that can be used 7 | with all core revisions. 8 | 9 | The first option is to use the ARM Cortex-M4F port, and the second option is to 10 | use the Cortex-M7 r0p1 port - the latter containing a minor errata workaround. 11 | 12 | If the revision of the ARM Cortex-M7 core is not r0p1 then either option can be 13 | used, but it is recommended to use the FreeRTOS ARM Cortex-M4F port located in 14 | the /FreeRTOS/Source/portable/GCC/ARM_CM4F directory. 15 | 16 | If the revision of the ARM Cortex-M7 core is r0p1 then use the FreeRTOS ARM 17 | Cortex-M7 r0p1 port located in the /FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 18 | directory. -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/IAR/ARM_CM7/ReadMe.txt: -------------------------------------------------------------------------------- 1 | There are two options for running FreeRTOS on ARM Cortex-M7 microcontrollers. 2 | The best option depends on the revision of the ARM Cortex-M7 core in use. The 3 | revision is specified by an 'r' number, and a 'p' number, so will look something 4 | like 'r0p1'. Check the documentation for the microcontroller in use to find the 5 | revision of the Cortex-M7 core used in that microcontroller. If in doubt, use 6 | the FreeRTOS port provided specifically for r0p1 revisions, as that can be used 7 | with all core revisions. 8 | 9 | The first option is to use the ARM Cortex-M4F port, and the second option is to 10 | use the Cortex-M7 r0p1 port - the latter containing a minor errata workaround. 11 | 12 | If the revision of the ARM Cortex-M7 core is not r0p1 then either option can be 13 | used, but it is recommended to use the FreeRTOS ARM Cortex-M4F port located in 14 | the /FreeRTOS/Source/portable/IAR/ARM_CM4F directory. 15 | 16 | If the revision of the ARM Cortex-M7 core is r0p1 then use the FreeRTOS ARM 17 | Cortex-M7 r0p1 port located in the /FreeRTOS/Source/portable/IAR/ARM_CM7/r0p1 18 | directory. -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/IAR/AtmelSAM7S64/lib_AT91SAM7X128.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/FreeRTOS/portable/IAR/AtmelSAM7S64/lib_AT91SAM7X128.h -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/IAR/AtmelSAM7S64/lib_AT91SAM7X256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/FreeRTOS/portable/IAR/AtmelSAM7S64/lib_AT91SAM7X256.h -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/IAR/AtmelSAM9XE/portasm.s79: -------------------------------------------------------------------------------- 1 | RSEG ICODE:CODE 2 | CODE32 3 | 4 | EXTERN vTaskSwitchContext 5 | 6 | PUBLIC vPortYieldProcessor 7 | PUBLIC vPortStartFirstTask 8 | 9 | #include "ISR_Support.h" 10 | 11 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 12 | ; Starting the first task is just a matter of restoring the context that 13 | ; was created by pxPortInitialiseStack(). 14 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 15 | vPortStartFirstTask: 16 | portRESTORE_CONTEXT 17 | 18 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 19 | ; Manual context switch function. This is the SWI hander. 20 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 21 | vPortYieldProcessor: 22 | ADD LR, LR, #4 ; Add 4 to the LR to make the LR appear exactly 23 | ; as if the context was saved during and IRQ 24 | ; handler. 25 | 26 | portSAVE_CONTEXT ; Save the context of the current task... 27 | LDR R0, =vTaskSwitchContext ; before selecting the next task to execute. 28 | mov lr, pc 29 | BX R0 30 | portRESTORE_CONTEXT ; Restore the context of the selected task. 31 | 32 | 33 | END 34 | 35 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/Keil/See-also-the-RVDS-directory.txt: -------------------------------------------------------------------------------- 1 | Nothing to see here. -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/MPLAB/PIC18F/stdio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/FreeRTOS/portable/MPLAB/PIC18F/stdio.h -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/MemMang/ReadMe.url: -------------------------------------------------------------------------------- 1 | [{000214A0-0000-0000-C000-000000000046}] 2 | Prop3=19,2 3 | [InternetShortcut] 4 | URL=http://www.freertos.org/a00111.html 5 | IDList= 6 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/RVDS/ARM_CM7/ReadMe.txt: -------------------------------------------------------------------------------- 1 | There are two options for running FreeRTOS on ARM Cortex-M7 microcontrollers. 2 | The best option depends on the revision of the ARM Cortex-M7 core in use. The 3 | revision is specified by an 'r' number, and a 'p' number, so will look something 4 | like 'r0p1'. Check the documentation for the microcontroller in use to find the 5 | revision of the Cortex-M7 core used in that microcontroller. If in doubt, use 6 | the FreeRTOS port provided specifically for r0p1 revisions, as that can be used 7 | with all core revisions. 8 | 9 | The first option is to use the ARM Cortex-M4F port, and the second option is to 10 | use the Cortex-M7 r0p1 port - the latter containing a minor errata workaround. 11 | 12 | If the revision of the ARM Cortex-M7 core is not r0p1 then either option can be 13 | used, but it is recommended to use the FreeRTOS ARM Cortex-M4F port located in 14 | the /FreeRTOS/Source/portable/RVDS/ARM_CM4F directory. 15 | 16 | If the revision of the ARM Cortex-M7 core is r0p1 then use the FreeRTOS ARM 17 | Cortex-M7 r0p1 port located in the /FreeRTOS/Source/portable/RVDS/ARM_CM7/r0p1 18 | directory. -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/Rowley/ARM7/readme.txt: -------------------------------------------------------------------------------- 1 | The Rowley ARM7 demo uses the GCC ARM7 port files. -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/Softune/MB91460/__STD_LIB_sbrk.c: -------------------------------------------------------------------------------- 1 | #include "FreeRTOSConfig.h" 2 | #include 3 | 4 | static long brk_siz = 0; 5 | // #if configTOTAL_HEAP_SIZE != 0 6 | typedef int _heep_t; 7 | #define ROUNDUP(s) (((s)+sizeof(_heep_t)-1)&~(sizeof(_heep_t)-1)) 8 | static _heep_t _heep[ROUNDUP(configTOTAL_HEAP_SIZE)/sizeof(_heep_t)]; 9 | #define _heep_size ROUNDUP(configTOTAL_HEAP_SIZE) 10 | /* #else 11 | extern char *_heep; 12 | extern long _heep_size; 13 | #endif 14 | */ 15 | extern char *sbrk(int size) 16 | { 17 | if (brk_siz + size > _heep_size || brk_siz + size < 0) 18 | 19 | return((char*)-1); 20 | brk_siz += size; 21 | return( (char*)_heep + brk_siz - size); 22 | } 23 | 24 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/Softune/MB96340/__STD_LIB_sbrk.c: -------------------------------------------------------------------------------- 1 | /* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */ 2 | /* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */ 3 | /* ELIGIBILITY FOR ANY PURPOSES. */ 4 | /* (C) Fujitsu Microelectronics Europe GmbH */ 5 | /*--------------------------------------------------------------------------- 6 | __STD_LIB_sbrk.C 7 | - Used by heap_3.c for memory accocation and deletion. 8 | 9 | /*---------------------------------------------------------------------------*/ 10 | 11 | #include "FreeRTOSConfig.h" 12 | #include 13 | 14 | static long brk_siz = 0; 15 | typedef int _heep_t; 16 | #define ROUNDUP(s) (((s)+sizeof(_heep_t)-1)&~(sizeof(_heep_t)-1)) 17 | static _heep_t _heep[ROUNDUP(configTOTAL_HEAP_SIZE)/sizeof(_heep_t)]; 18 | #define _heep_size ROUNDUP(configTOTAL_HEAP_SIZE) 19 | 20 | extern char *sbrk(int size) 21 | { 22 | if (brk_siz + size > _heep_size || brk_siz + size < 0) 23 | 24 | return((char*)-1); 25 | brk_siz += size; 26 | return( (char*)_heep + brk_siz - size); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/ThirdParty/GCC/Xtensa_ESP32/FreeRTOS-openocd.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Since at least FreeRTOS V7.5.3 uxTopUsedPriority is no longer 3 | * present in the kernel, so it has to be supplied by other means for 4 | * OpenOCD's threads awareness. 5 | * 6 | * Add this file to your project, and, if you're using --gc-sections, 7 | * ``--undefined=uxTopUsedPriority'' (or 8 | * ``-Wl,--undefined=uxTopUsedPriority'' when using gcc for final 9 | * linking) to your LDFLAGS; same with all the other symbols you need. 10 | */ 11 | 12 | #include "FreeRTOS.h" 13 | #include "esp_attr.h" 14 | #include "sdkconfig.h" 15 | 16 | #ifdef __GNUC__ 17 | #define USED __attribute__((used)) 18 | #else 19 | #define USED 20 | #endif 21 | 22 | #ifdef CONFIG_ESP32_DEBUG_OCDAWARE 23 | const int USED DRAM_ATTR uxTopUsedPriority = configMAX_PRIORITIES - 1; 24 | #endif 25 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/FreeRTOS/portable/readme.txt: -------------------------------------------------------------------------------- 1 | Each real time kernel port consists of three files that contain the core kernel 2 | components and are common to every port, and one or more files that are 3 | specific to a particular microcontroller and/or compiler. 4 | 5 | 6 | + The FreeRTOS/Source/Portable/MemMang directory contains the five sample 7 | memory allocators as described on the http://www.FreeRTOS.org WEB site. 8 | 9 | + The other directories each contain files specific to a particular 10 | microcontroller or compiler, where the directory name denotes the compiler 11 | specific files the directory contains. 12 | 13 | 14 | 15 | For example, if you are interested in the [compiler] port for the [architecture] 16 | microcontroller, then the port specific files are contained in 17 | FreeRTOS/Source/Portable/[compiler]/[architecture] directory. If this is the 18 | only port you are interested in then all the other directories can be 19 | ignored. 20 | 21 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/cbor/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | build/* 3 | lib/* 4 | 5 | *.o 6 | *.out 7 | 8 | *.profdata 9 | *.profraw 10 | 11 | compile_commands.json 12 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/defender/.gitignore: -------------------------------------------------------------------------------- 1 | compile_commands.json 2 | 3 | lib/* 4 | build/* 5 | *.o 6 | *.out 7 | 8 | *.profdata 9 | *.profraw 10 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/defender/aws_defender_states.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/defender/aws_defender_states.png -------------------------------------------------------------------------------- /zynq7k_demo/lib/directories.txt: -------------------------------------------------------------------------------- 1 | This file describes the subdirectories found in the /lib directory of the Amazon 2 | FreeRTOS distribution. 3 | 4 | third_party: 5 | Contains the third party libraries, including vendor supplied device specific 6 | driver libraries, required to build target specific demo projects. Organized by 7 | vendor. 8 | 9 | All other directories: 10 | Contain the implementation of a single Amazon FreeRTOS library. -------------------------------------------------------------------------------- /zynq7k_demo/lib/include/private/threading_alt.h: -------------------------------------------------------------------------------- 1 | #ifndef __THREADING_ALT_H__ 2 | #define __THREADING_ALT_H__ 3 | 4 | 5 | #include "FreeRTOS.h" 6 | #include "semphr.h" 7 | 8 | typedef struct 9 | { 10 | SemaphoreHandle_t mutex; 11 | char is_valid; 12 | } mbedtls_threading_mutex_t; 13 | 14 | extern void mbedtls_threading_set_alt( void ( * mutex_init )( mbedtls_threading_mutex_t * ), 15 | void ( * mutex_free )( mbedtls_threading_mutex_t * ), 16 | int ( * mutex_lock )( mbedtls_threading_mutex_t * ), 17 | int ( * mutex_unlock )( mbedtls_threading_mutex_t * ) ); 18 | 19 | 20 | #endif /* ifndef __THREADING_ALT_H__ */ 21 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | DisableFormat: true 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | # These files are text and should be normalized (convert crlf to lf) 4 | *.rb text 5 | *.test text 6 | *.c text 7 | *.cpp text 8 | *.h text 9 | *.txt text 10 | *.yml text 11 | *.s79 text 12 | *.bat text 13 | *.xcl text 14 | *.inc text 15 | *.info text 16 | *.md text 17 | makefile text 18 | rakefile text 19 | 20 | 21 | #These files are binary and should not be normalized 22 | *.doc binary 23 | *.odt binary 24 | *.pdf binary 25 | *.ewd binary 26 | *.eww binary 27 | *.dni binary 28 | *.wsdt binary 29 | *.dbgdt binary 30 | *.mac binary 31 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/.gitignore: -------------------------------------------------------------------------------- 1 | test/system/build 2 | test/system/generated 3 | *.sublime-project 4 | Gemfile.lock 5 | .rake_t_cache 6 | .DS_Store 7 | *.swp 8 | examples/make_example/build 9 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "vendor/unity"] 2 | path = vendor/unity 3 | url = https://github.com/throwtheswitch/unity.git 4 | branch = master 5 | [submodule "vendor/c_exception"] 6 | path = vendor/c_exception 7 | url = https://github.com/throwtheswitch/cexception.git 8 | branch = master 9 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/.travis.yml: -------------------------------------------------------------------------------- 1 | language: ruby 2 | 3 | os: 4 | - osx 5 | - linux 6 | 7 | rvm: 8 | - "2.0.0" 9 | - "2.2.2" 10 | 11 | before_install: 12 | - if [ "$TRAVIS_OS_NAME" == "osx" ]; then rvm install 2.1 && rvm use 2.1 && ruby -v; fi 13 | - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install --assume-yes --quiet gcc-multilib; fi 14 | 15 | install: 16 | - bundle install 17 | - gem install rspec 18 | - gem install rubocop 19 | 20 | script: 21 | - cd test && rake ci 22 | - cd .. 23 | - cd examples && cd make_example 24 | - make clean 25 | - make setup 26 | - make test 27 | - cd .. 28 | - cd temp_sensor 29 | - rake ci 30 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/Gemfile: -------------------------------------------------------------------------------- 1 | source "http://rubygems.org/" 2 | 3 | gem "bundler", "~> 1.1.rc.7" 4 | gem "rake", ">= 0.9.2.2" 5 | 6 | gem "minitest" 7 | gem "require_all" 8 | gem "constructor" 9 | gem "diy" 10 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/config.yml: -------------------------------------------------------------------------------- 1 | :cmock: 2 | :callback_after_arg_check: false 3 | :mock_prefix: mock_ 4 | :plugins: 5 | - :ignore 6 | - :ignore_arg 7 | - :expect_any_args 8 | - :array 9 | - :callback 10 | - :return_thru_ptr 11 | :mock_path: ../../../Common/Mocks -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/config/production_environment.rb: -------------------------------------------------------------------------------- 1 | # ========================================== 2 | # CMock Project - Automatic Mock Generation for C 3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 4 | # [Released under MIT License. Please refer to license.txt for details] 5 | # ========================================== 6 | 7 | # Setup our load path: 8 | [ 9 | 'lib', 10 | ].each do |dir| 11 | $LOAD_PATH.unshift( File.join( File.expand_path(File.dirname(__FILE__)) + '/../', dir) ) 12 | end 13 | 14 | 15 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/config/test_environment.rb: -------------------------------------------------------------------------------- 1 | # ========================================== 2 | # CMock Project - Automatic Mock Generation for C 3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 4 | # [Released under MIT License. Please refer to license.txt for details] 5 | # ========================================== 6 | 7 | # Setup our load path: 8 | [ 9 | './lib', 10 | './vendor/behaviors/lib', 11 | './vendor/hardmock/lib', 12 | './vendor/unity/auto/', 13 | './test/system/' 14 | ].each do |dir| 15 | $LOAD_PATH.unshift( File.join( File.expand_path(File.dirname(__FILE__) + "/../"), dir) ) 16 | end 17 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/docs/license.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/make_example/Makefile: -------------------------------------------------------------------------------- 1 | CC ?= gcc 2 | BUILD_DIR ?= ./build 3 | SRC_DIR ?= ./src 4 | TEST_DIR ?= ./test 5 | TEST_BUILD_DIR ?= ${BUILD_DIR}/test 6 | TEST_MAKEFILE = ${TEST_BUILD_DIR}/MakefileTestSupport 7 | OBJ ?= ${BUILD_DIR}/obj 8 | OBJ_DIR = ${OBJ} 9 | 10 | default: all 11 | 12 | all: setup test ${BUILD_DIR}/main run 13 | 14 | setup: 15 | mkdir -p ${BUILD_DIR} 16 | mkdir -p ${OBJ} 17 | ruby ../../scripts/create_makefile.rb --silent 18 | 19 | clean: 20 | rm -rf ${BUILD_DIR} 21 | 22 | ${BUILD_DIR}/main: ${SRC_DIR}/main.c ${SRC_DIR}/foo.c 23 | ${CC} $< -o $@ 24 | 25 | run: 26 | ./build/main || true 27 | 28 | test: setup 29 | 30 | -include ${TEST_MAKEFILE} 31 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/make_example/src/foo.c: -------------------------------------------------------------------------------- 1 | #include "foo.h" 2 | 3 | void foo_init(void) 4 | { 5 | } 6 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/make_example/src/foo.h: -------------------------------------------------------------------------------- 1 | #ifndef _foo_h 2 | 3 | void foo_init(void); 4 | 5 | #endif 6 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/make_example/src/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "foo.h" 3 | 4 | int real_main(int argc, char ** argv) 5 | { 6 | printf("Hello world!\n"); 7 | return 0; 8 | } 9 | 10 | #ifndef TEST 11 | int main(int argc, char ** argv) 12 | { 13 | return real_main(argc, argv); 14 | } 15 | #endif 16 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/make_example/test/test_foo.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "foo.h" 3 | 4 | void setUp(void) 5 | { 6 | } 7 | 8 | void tearDown(void) 9 | { 10 | } 11 | 12 | void test_foo_init_should_initialize_multiplier() 13 | { 14 | foo_init(); 15 | 16 | TEST_ASSERT_FALSE(1); 17 | } 18 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/make_example/test/test_main.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "mock_foo.h" 3 | 4 | void setUp(void) 5 | { 6 | } 7 | 8 | void tearDown(void) 9 | { 10 | } 11 | 12 | void test_main_should_initialize_foo(void) 13 | { 14 | TEST_IGNORE_MESSAGE("TODO: Implement main!"); 15 | } 16 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/gcc.yml: -------------------------------------------------------------------------------- 1 | compiler: 2 | path: gcc 3 | source_path: 'src/' 4 | unit_tests_path: &unit_tests_path 'test/' 5 | build_path: &build_path 'build/' 6 | options: 7 | - -c 8 | includes: 9 | prefix: '-I' 10 | items: 11 | - 'src/' 12 | - '../../src/' 13 | - '../../vendor/unity/src/' 14 | - '../../vendor/unity/examples/example_3/helper/' 15 | - './build/mocks/' 16 | - *unit_tests_path 17 | defines: 18 | prefix: '-D' 19 | items: 20 | - __monitor 21 | object_files: 22 | prefix: '-o' 23 | extension: '.o' 24 | destination: *build_path 25 | linker: 26 | path: gcc 27 | options: 28 | - -lm 29 | includes: 30 | prefix: '-I' 31 | object_files: 32 | path: *build_path 33 | extension: '.o' 34 | bin_files: 35 | prefix: '-o' 36 | extension: '.exe' 37 | destination: *build_path 38 | :cmock: 39 | :plugins: [] 40 | :includes: 41 | - Types.h 42 | :mock_path: ./build/mocks 43 | 44 | colour: true 45 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/rakefile.rb: -------------------------------------------------------------------------------- 1 | HERE = File.expand_path(File.dirname(__FILE__)) + '/' 2 | 3 | require 'rake' 4 | require 'rake/clean' 5 | require 'rake/testtask' 6 | require './rakefile_helper' 7 | 8 | include RakefileHelpers 9 | 10 | REQUIRED_DIRS = [ './build', './build/mocks' ] 11 | REQUIRED_DIRS.each do |v| 12 | directory v 13 | end 14 | 15 | # Load default configuration, for now 16 | DEFAULT_CONFIG_FILE = 'gcc.yml' 17 | configure_toolchain(DEFAULT_CONFIG_FILE) 18 | 19 | task :unit do 20 | run_tests(get_unit_test_files) 21 | end 22 | 23 | desc "Generate test summary" 24 | task :summary do 25 | report_summary 26 | end 27 | 28 | desc "Build and test Unity" 29 | task :all => [:clean, :unit, :summary] 30 | task :default => REQUIRED_DIRS + [:clobber, :all] 31 | task :ci => [:default] 32 | task :cruise => [:default] 33 | 34 | desc "Load configuration" 35 | task :config, :config_file do |t, args| 36 | configure_toolchain(args[:config_file]) 37 | end 38 | 39 | desc "Return error on Failures" 40 | task :strict do 41 | $return_error_on_failures = true 42 | end 43 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/AdcConductor.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "AdcConductor.h" 3 | #include "AdcModel.h" 4 | #include "AdcHardware.h" 5 | 6 | void AdcConductor_Init(void) 7 | { 8 | AdcHardware_Init(); 9 | } 10 | 11 | void AdcConductor_Run(void) 12 | { 13 | if (AdcModel_DoGetSample() && AdcHardware_GetSampleComplete()) 14 | { 15 | AdcModel_ProcessInput(AdcHardware_GetSample()); 16 | AdcHardware_StartConversion(); 17 | } 18 | } 19 | 20 | bool AdcConductor_JustHereToTest(void) 21 | { 22 | EXAMPLE_STRUCT_T ExampleStruct; 23 | ExampleStruct.x = 5; 24 | ExampleStruct.y = 7; 25 | 26 | return AdcModel_DoNothingExceptTestASpecialType(ExampleStruct); 27 | } 28 | 29 | bool AdcConductor_AlsoHereToTest(void) 30 | { 31 | EXAMPLE_STRUCT_T example = AdcModel_DoNothingExceptReturnASpecialType(); 32 | 33 | return ((example.x == 99) && (example.y == 1)); 34 | } 35 | 36 | bool AdcConductor_YetAnotherTest(void) 37 | { 38 | uint32 example = 3; 39 | 40 | return AdModel_DoNothingExceptTestPointers(&example); 41 | } 42 | 43 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/AdcConductor.h: -------------------------------------------------------------------------------- 1 | #ifndef _ADCCONDUCTOR_H 2 | #define _ADCCONDUCTOR_H 3 | 4 | void AdcConductor_Init(void); 5 | void AdcConductor_Run(void); 6 | 7 | bool AdcConductor_JustHereToTest(void); 8 | bool AdcConductor_AlsoHereToTest(void); 9 | bool AdcConductor_YetAnotherTest(void); 10 | 11 | #endif // _ADCCONDUCTOR_H 12 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/AdcHardware.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "AdcHardware.h" 3 | #include "AdcHardwareConfigurator.h" 4 | #include "AdcTemperatureSensor.h" 5 | 6 | void AdcHardware_Init(void) 7 | { 8 | Adc_Reset(); 9 | Adc_ConfigureMode(); 10 | Adc_EnableTemperatureChannel(); 11 | Adc_StartTemperatureSensorConversion(); 12 | } 13 | 14 | void AdcHardware_StartConversion(void) 15 | { 16 | Adc_StartTemperatureSensorConversion(); 17 | } 18 | 19 | bool AdcHardware_GetSampleComplete(void) 20 | { 21 | return Adc_TemperatureSensorSampleReady(); 22 | } 23 | 24 | uint16 AdcHardware_GetSample(void) 25 | { 26 | return Adc_ReadTemperatureSensor(); 27 | } 28 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/AdcHardware.h: -------------------------------------------------------------------------------- 1 | #ifndef _ADCHARDWARE_H 2 | #define _ADCHARDWARE_H 3 | 4 | void AdcHardware_Init(void); 5 | void AdcHardware_StartConversion(void); 6 | bool AdcHardware_GetSampleComplete(void); 7 | uint16 AdcHardware_GetSample(void); 8 | 9 | #endif // _ADCHARDWARE_H 10 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "AdcHardwareConfigurator.h" 3 | #include "ModelConfig.h" 4 | 5 | void Adc_Reset(void) 6 | { 7 | AT91C_BASE_ADC->ADC_CR = AT91C_ADC_SWRST; 8 | } 9 | 10 | void Adc_ConfigureMode(void) 11 | { 12 | AT91C_BASE_ADC->ADC_MR = (((uint32)11) << 8) | (((uint32)4) << 16); 13 | } 14 | 15 | void Adc_EnableTemperatureChannel(void) 16 | { 17 | AT91C_BASE_ADC->ADC_CHER = 0x10; 18 | } 19 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.h: -------------------------------------------------------------------------------- 1 | #ifndef _ADCHARDWARECONFIGURATOR_H 2 | #define _ADCHARDWARECONFIGURATOR_H 3 | 4 | #include "Types.h" 5 | 6 | void Adc_Reset(void); 7 | void Adc_ConfigureMode(void); 8 | void Adc_EnableTemperatureChannel(void); 9 | 10 | #endif // _ADCHARDWARECONFIGURATOR_H 11 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/AdcModel.c: -------------------------------------------------------------------------------- 1 | #include "AdcModel.h" 2 | #include "TaskScheduler.h" 3 | #include "TemperatureCalculator.h" 4 | #include "TemperatureFilter.h" 5 | 6 | bool AdcModel_DoGetSample(void) 7 | { 8 | return TaskScheduler_DoAdc(); 9 | } 10 | 11 | void AdcModel_ProcessInput(uint16 millivolts) 12 | { 13 | TemperatureFilter_ProcessInput(TemperatureCalculator_Calculate(millivolts)); 14 | } 15 | 16 | bool AdcModel_DoNothingExceptTestASpecialType(EXAMPLE_STRUCT_T ExampleStruct) 17 | { 18 | //This doesn't really do anything. it's only here to make sure I can compare a struct. 19 | return FALSE; 20 | } 21 | bool AdModel_DoNothingExceptTestPointers(uint32* pExample) 22 | { 23 | //This doesn't really do anything. it's only here to make sure I can compare a pointer value. 24 | return FALSE; 25 | } 26 | 27 | EXAMPLE_STRUCT_T AdcModel_DoNothingExceptReturnASpecialType(void) 28 | { 29 | EXAMPLE_STRUCT_T example; //again, this just is here to test that I can return a struct 30 | example.x = 99; 31 | example.y = 1; 32 | return example; 33 | } 34 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/AdcModel.h: -------------------------------------------------------------------------------- 1 | #ifndef _ADCMODEL_H 2 | #define _ADCMODEL_H 3 | 4 | #include "Types.h" 5 | 6 | bool AdcModel_DoGetSample(void); 7 | void AdcModel_ProcessInput(uint16 millivolts); 8 | 9 | bool AdcModel_DoNothingExceptTestASpecialType(EXAMPLE_STRUCT_T ExampleStruct); 10 | bool AdModel_DoNothingExceptTestPointers(uint32* pExample); 11 | EXAMPLE_STRUCT_T AdcModel_DoNothingExceptReturnASpecialType(void); 12 | 13 | #endif // _ADCMODEL_H 14 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/AdcTemperatureSensor.h: -------------------------------------------------------------------------------- 1 | #ifndef _ADCTEMPERATURESENSOR_H 2 | #define _ADCTEMPERATURESENSOR_H 3 | 4 | #include "Types.h" 5 | 6 | void Adc_StartTemperatureSensorConversion(void); 7 | bool Adc_TemperatureSensorSampleReady(void); 8 | uint16 Adc_ReadTemperatureSensor(void); 9 | 10 | #endif // _ADCTEMPERATURESENSOR_H 11 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/Executor.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "Executor.h" 3 | #include "Model.h" 4 | #include "UsartConductor.h" 5 | #include "TimerConductor.h" 6 | #include "AdcConductor.h" 7 | #include "IntrinsicsWrapper.h" 8 | 9 | 10 | void Executor_Init(void) 11 | { 12 | Model_Init(); 13 | UsartConductor_Init(); 14 | AdcConductor_Init(); 15 | TimerConductor_Init(); 16 | Interrupt_Enable(); 17 | } 18 | 19 | bool Executor_Run(void) 20 | { 21 | UsartConductor_Run(); 22 | TimerConductor_Run(); 23 | AdcConductor_Run(); 24 | return TRUE; 25 | } 26 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/Executor.h: -------------------------------------------------------------------------------- 1 | #ifndef _EXECUTOR_H 2 | #define _EXECUTOR_H 3 | 4 | #include "Types.h" 5 | 6 | void Executor_Init(void); 7 | bool Executor_Run(void); 8 | 9 | #endif // _EXECUTOR_H 10 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/IntrinsicsWrapper.c: -------------------------------------------------------------------------------- 1 | #include "IntrinsicsWrapper.h" 2 | #ifdef __ICCARM__ 3 | #include 4 | #endif 5 | 6 | void Interrupt_Enable(void) 7 | { 8 | #ifdef __ICCARM__ 9 | __enable_interrupt(); 10 | #endif 11 | } 12 | 13 | void Interrupt_Disable(void) 14 | { 15 | #ifdef __ICCARM__ 16 | __disable_interrupt(); 17 | #endif 18 | } 19 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/IntrinsicsWrapper.h: -------------------------------------------------------------------------------- 1 | #ifndef _INTRINSICS_WRAPPER_H 2 | #define _INTRINSICS_WRAPPER_H 3 | 4 | void Interrupt_Enable(void); 5 | void Interrupt_Disable(void); 6 | 7 | #endif // _INTRINSICS_WRAPPER_H 8 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/Main.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | 3 | #include "IntrinsicsWrapper.h" 4 | #include "Executor.h" 5 | 6 | #include "Model.h" 7 | #include "TaskScheduler.h" 8 | #include "TemperatureCalculator.h" 9 | #include "TemperatureFilter.h" 10 | 11 | #include "UsartConductor.h" 12 | #include "UsartHardware.h" 13 | #include "UsartConfigurator.h" 14 | #include "UsartPutChar.h" 15 | #include "UsartModel.h" 16 | #include "UsartBaudRateRegisterCalculator.h" 17 | #include "UsartTransmitBufferStatus.h" 18 | 19 | #include "TimerConductor.h" 20 | #include "TimerHardware.h" 21 | #include "TimerConfigurator.h" 22 | #include "TimerInterruptConfigurator.h" 23 | #include "TimerInterruptHandler.h" 24 | #include "TimerModel.h" 25 | 26 | #include "AdcConductor.h" 27 | #include "AdcHardware.h" 28 | #include "AdcHardwareConfigurator.h" 29 | #include "AdcTemperatureSensor.h" 30 | #include "AdcModel.h" 31 | 32 | int AppMain(void) 33 | { 34 | Executor_Init(); 35 | 36 | while(Executor_Run()); 37 | 38 | return 0; 39 | } 40 | 41 | #ifndef TEST 42 | int main(void) 43 | { 44 | return AppMain(); 45 | } 46 | #endif // TEST 47 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/Main.h: -------------------------------------------------------------------------------- 1 | #ifndef _MAIN_H_ 2 | #define _MAIN_H_ 3 | 4 | int AppMain(void); 5 | int main(void); 6 | 7 | #endif // _MAIN_H_ 8 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/Model.c: -------------------------------------------------------------------------------- 1 | #include "Model.h" 2 | #include "TaskScheduler.h" 3 | #include "TemperatureFilter.h" 4 | 5 | void Model_Init(void) 6 | { 7 | TaskScheduler_Init(); 8 | TemperatureFilter_Init(); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/Model.h: -------------------------------------------------------------------------------- 1 | #ifndef _MODEL_H 2 | #define _MODEL_H 3 | 4 | #include "Types.h" 5 | 6 | void Model_Init(void); 7 | 8 | #endif // _MODEL_H 9 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/ModelConfig.h: -------------------------------------------------------------------------------- 1 | #ifndef _MODELCONFIG_H 2 | #define _MODELCONFIG_H 3 | 4 | #define MASTER_CLOCK 48054857 // Master Clock 5 | #define USART0_BAUDRATE 115200 // USART Baudrate 6 | 7 | #endif // _MODELCONFIG_H 8 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TaskScheduler.h: -------------------------------------------------------------------------------- 1 | #ifndef _TASKSCHEDULER_H 2 | #define _TASKSCHEDULER_H 3 | 4 | #include "Types.h" 5 | 6 | void TaskScheduler_Init(void); 7 | void TaskScheduler_Update(uint32 time); 8 | bool TaskScheduler_DoUsart(void); 9 | bool TaskScheduler_DoAdc(void); 10 | 11 | #endif // _TASKSCHEDULER_H 12 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TemperatureCalculator.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "TemperatureCalculator.h" 3 | #include 4 | 5 | #ifndef logl 6 | #define logl log 7 | #endif 8 | 9 | float TemperatureCalculator_Calculate(uint16 millivolts) 10 | { 11 | const double supply_voltage = 3.0; 12 | const double series_resistance = 5000; 13 | const double coefficient_A = 316589.698; 14 | const double coefficient_B = -0.1382009; 15 | double sensor_voltage = ((double)millivolts / 1000); 16 | double resistance; 17 | 18 | if (millivolts == 0) 19 | { 20 | return -INFINITY; 21 | } 22 | 23 | // Series resistor is 5k Ohms; Reference voltage is 3.0V 24 | // R(t) = A * e^(B*t); R is resistance of thermisor; t is temperature in C 25 | resistance = ((supply_voltage * series_resistance) / sensor_voltage) - series_resistance; 26 | return (float)(logl(resistance / coefficient_A) / coefficient_B); 27 | } 28 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TemperatureCalculator.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEMPERATURECALCULATOR_H 2 | #define _TEMPERATURECALCULATOR_H 3 | 4 | float TemperatureCalculator_Calculate(uint16 millivolts); 5 | 6 | #endif // _TEMPERATURECALCULATOR_H 7 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TemperatureFilter.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "TemperatureFilter.h" 3 | #include 4 | 5 | static bool initialized; 6 | static float temperatureInCelcius; 7 | 8 | void TemperatureFilter_Init(void) 9 | { 10 | initialized = FALSE; 11 | temperatureInCelcius = -INFINITY; 12 | } 13 | 14 | float TemperatureFilter_GetTemperatureInCelcius(void) 15 | { 16 | return temperatureInCelcius; 17 | } 18 | 19 | void TemperatureFilter_ProcessInput(float temperature) 20 | { 21 | if (!initialized) 22 | { 23 | temperatureInCelcius = temperature; 24 | initialized = TRUE; 25 | } 26 | else 27 | { 28 | if (temperature == +INFINITY || 29 | temperature == -INFINITY || 30 | temperature == +NAN || 31 | temperature == -NAN) 32 | { 33 | initialized = FALSE; 34 | temperature = -INFINITY; 35 | } 36 | 37 | temperatureInCelcius = (temperatureInCelcius * 0.75f) + (temperature * 0.25); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TemperatureFilter.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEMPERATUREFILTER_H 2 | #define _TEMPERATUREFILTER_H 3 | 4 | #include "Types.h" 5 | 6 | void TemperatureFilter_Init(void); 7 | float TemperatureFilter_GetTemperatureInCelcius(void); 8 | void TemperatureFilter_ProcessInput(float temperature); 9 | 10 | #endif // _TEMPERATUREFILTER_H 11 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TimerConductor.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "TimerConductor.h" 3 | #include "TimerModel.h" 4 | #include "TimerHardware.h" 5 | #include "TimerInterruptHandler.h" 6 | 7 | void TimerConductor_Init(void) 8 | { 9 | TimerHardware_Init(); 10 | } 11 | 12 | void TimerConductor_Run(void) 13 | { 14 | TimerModel_UpdateTime(Timer_GetSystemTime()); 15 | } 16 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TimerConductor.h: -------------------------------------------------------------------------------- 1 | #ifndef _TIMERCONDUCTOR_H 2 | #define _TIMERCONDUCTOR_H 3 | 4 | #include "Types.h" 5 | 6 | void TimerConductor_Init(void); 7 | void TimerConductor_Run(void); 8 | 9 | #endif // _TIMERCONDUCTOR_H 10 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TimerConfigurator.h: -------------------------------------------------------------------------------- 1 | #ifndef _TIMERCONFIGURATOR_H 2 | #define _TIMERCONFIGURATOR_H 3 | 4 | #include "Types.h" 5 | 6 | void Timer_EnablePeripheralClocks(void); 7 | void Timer_Reset(void); 8 | void Timer_ConfigureMode(void); 9 | void Timer_ConfigurePeriod(void); 10 | void Timer_EnableOutputPin(void); 11 | void Timer_Enable(void); 12 | void Timer_ConfigureInterruptHandler(void); 13 | void Timer_Start(void); 14 | 15 | #endif // _TIMERCONFIGURATOR_H 16 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TimerHardware.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "TimerHardware.h" 3 | #include "TimerConfigurator.h" 4 | 5 | void TimerHardware_Init(void) 6 | { 7 | Timer_EnablePeripheralClocks(); 8 | Timer_Reset(); 9 | Timer_ConfigureMode(); 10 | Timer_ConfigurePeriod(); 11 | Timer_EnableOutputPin(); 12 | Timer_Enable(); 13 | Timer_ConfigureInterruptHandler(); 14 | Timer_Start(); 15 | } 16 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TimerHardware.h: -------------------------------------------------------------------------------- 1 | #ifndef _TIMERHARDWARE_H 2 | #define _TIMERHARDWARE_H 3 | 4 | #include "Types.h" 5 | 6 | void TimerHardware_Init(void); 7 | 8 | #endif // _TIMERHARDWARE_H 9 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.h: -------------------------------------------------------------------------------- 1 | #ifndef _TIMERINTERRUPTCONFIGURATOR_H 2 | #define _TIMERINTERRUPTCONFIGURATOR_H 3 | 4 | #include "Types.h" 5 | 6 | #define TIMER0_ID_MASK (((uint32)0x1) << AT91C_ID_TC0) 7 | 8 | void Timer_DisableInterrupt(void); 9 | void Timer_ResetSystemTime(void); 10 | void Timer_ConfigureInterrupt(void); 11 | void Timer_EnableInterrupt(void); 12 | 13 | #endif // _TIMERINTERRUPTCONFIGURATOR_H 14 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TimerInterruptHandler.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "TimerInterruptHandler.h" 3 | #include "TimerInterruptConfigurator.h" 4 | 5 | static uint32 systemTime; 6 | 7 | void Timer_SetSystemTime(uint32 time) 8 | { 9 | systemTime = time; 10 | } 11 | 12 | uint32 Timer_GetSystemTime(void) 13 | { 14 | return systemTime; 15 | } 16 | 17 | void Timer_InterruptHandler(void) 18 | { 19 | uint32 status = AT91C_BASE_TC0->TC_SR; 20 | if (status & AT91C_TC_CPCS) 21 | { 22 | systemTime += 10; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TimerInterruptHandler.h: -------------------------------------------------------------------------------- 1 | #ifndef _TIMERINTERRUPTHANDLER_H 2 | #define _TIMERINTERRUPTHANDLER_H 3 | 4 | #include "Types.h" 5 | 6 | void Timer_SetSystemTime(uint32 time); 7 | uint32 Timer_GetSystemTime(void); 8 | void Timer_InterruptHandler(void); 9 | 10 | #endif // _TIMERINTERRUPTHANDLER_H 11 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TimerModel.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "TimerModel.h" 3 | #include "TaskScheduler.h" 4 | 5 | void TimerModel_UpdateTime(uint32 systemTime) 6 | { 7 | TaskScheduler_Update(systemTime); 8 | } 9 | 10 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/TimerModel.h: -------------------------------------------------------------------------------- 1 | #ifndef _TIMERMODEL_H 2 | #define _TIMERMODEL_H 3 | 4 | #include "Types.h" 5 | 6 | void TimerModel_UpdateTime(uint32 systemTime); 7 | 8 | #endif // _TIMERMODEL_H 9 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "UsartBaudRateRegisterCalculator.h" 3 | 4 | uint8 UsartModel_CalculateBaudRateRegisterSetting(uint32 masterClock, uint32 baudRate) 5 | { 6 | uint32 registerSetting = ((masterClock * 10) / (baudRate * 16)); 7 | 8 | if ((registerSetting % 10) >= 5) 9 | { 10 | registerSetting = (registerSetting / 10) + 1; 11 | } 12 | else 13 | { 14 | registerSetting /= 10; 15 | } 16 | 17 | return (uint8)registerSetting; 18 | } 19 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h: -------------------------------------------------------------------------------- 1 | #ifndef _USARTBAUDRATEREGISTERCALCULATOR_H 2 | #define _USARTBAUDRATEREGISTERCALCULATOR_H 3 | 4 | uint8 UsartModel_CalculateBaudRateRegisterSetting(uint32 masterClock, uint32 baudRate); 5 | 6 | #endif // _USARTBAUDRATEREGISTERCALCULATOR_H 7 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartConductor.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "UsartConductor.h" 3 | #include "UsartHardware.h" 4 | #include "UsartModel.h" 5 | #include "TaskScheduler.h" 6 | 7 | void UsartConductor_Init(void) 8 | { 9 | UsartHardware_Init(UsartModel_GetBaudRateRegisterSetting()); 10 | UsartHardware_TransmitString(UsartModel_GetWakeupMessage()); 11 | } 12 | 13 | void UsartConductor_Run(void) 14 | { 15 | char* temp; 16 | if (TaskScheduler_DoUsart()) 17 | { 18 | temp = UsartModel_GetFormattedTemperature(); 19 | UsartHardware_TransmitString(temp); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartConductor.h: -------------------------------------------------------------------------------- 1 | #ifndef _USARTCONDUCTOR_H 2 | #define _USARTCONDUCTOR_H 3 | 4 | void UsartConductor_Init(void); 5 | void UsartConductor_Run(void); 6 | 7 | #endif // _USARTCONDUCTOR_H 8 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartConfigurator.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "UsartConfigurator.h" 3 | 4 | void Usart_ConfigureUsartIO(void) 5 | { 6 | AT91C_BASE_PIOA->PIO_ASR = USART0_TX_PIN; 7 | AT91C_BASE_PIOA->PIO_BSR = 0; 8 | AT91C_BASE_PIOA->PIO_PDR = USART0_TX_PIN; 9 | } 10 | 11 | void Usart_EnablePeripheralClock(void) 12 | { 13 | AT91C_BASE_PMC->PMC_PCER = ((uint32)1) << USART0_CLOCK_ENABLE; 14 | } 15 | 16 | void Usart_Reset(void) 17 | { 18 | AT91C_BASE_US0->US_IDR = 0xffffffff; 19 | AT91C_BASE_US0->US_CR = AT91C_US_RSTRX | AT91C_US_RSTTX | AT91C_US_RXDIS | AT91C_US_TXDIS; 20 | } 21 | 22 | void Usart_ConfigureMode(void) 23 | { 24 | AT91C_BASE_US0->US_MR = AT91C_US_USMODE_NORMAL | 25 | AT91C_US_NBSTOP_1_BIT | 26 | AT91C_US_PAR_NONE | 27 | AT91C_US_CHRL_8_BITS | 28 | AT91C_US_CLKS_CLOCK; 29 | } 30 | 31 | void Usart_SetBaudRateRegister(uint8 baudRateRegisterSetting) 32 | { 33 | AT91C_BASE_US0->US_BRGR = baudRateRegisterSetting; 34 | } 35 | 36 | void Usart_Enable(void) 37 | { 38 | AT91C_BASE_US0->US_CR = AT91C_US_TXEN; 39 | } 40 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartConfigurator.h: -------------------------------------------------------------------------------- 1 | #ifndef _USARTCONFIGURATOR_H 2 | #define _USARTCONFIGURATOR_H 3 | 4 | #include "Types.h" 5 | 6 | void Usart_ConfigureUsartIO(void); 7 | void Usart_EnablePeripheralClock(void); 8 | void Usart_Reset(void); 9 | void Usart_ConfigureMode(void); 10 | void Usart_SetBaudRateRegister(uint8 baudRateRegisterSetting); 11 | void Usart_Enable(void); 12 | 13 | #endif // _USARTCONFIGURATOR_H 14 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartHardware.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "UsartHardware.h" 3 | #include "UsartConfigurator.h" 4 | #include "UsartPutChar.h" 5 | 6 | void UsartHardware_Init(uint8 baudRateRegisterSetting) 7 | { 8 | Usart_ConfigureUsartIO(); 9 | Usart_EnablePeripheralClock(); 10 | Usart_Reset(); 11 | Usart_ConfigureMode(); 12 | Usart_SetBaudRateRegister(baudRateRegisterSetting); 13 | Usart_Enable(); 14 | } 15 | 16 | void UsartHardware_TransmitString(char* data) 17 | { 18 | while(*data != NULL) 19 | { 20 | Usart_PutChar(*data++); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartHardware.h: -------------------------------------------------------------------------------- 1 | #ifndef _USARTHARDWARE_H 2 | #define _USARTHARDWARE_H 3 | 4 | #include "Types.h" 5 | 6 | void UsartHardware_Init(uint8 baudRateRegisterSetting); 7 | void UsartHardware_TransmitString(char* data); 8 | 9 | #endif // _USARTHARDWARE_H 10 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartModel.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "UsartModel.h" 3 | #include "ModelConfig.h" 4 | #include "UsartBaudRateRegisterCalculator.h" 5 | #include "TemperatureFilter.h" 6 | #include 7 | #include 8 | 9 | char formattedTemperature[32]; 10 | char* wakeup = "It's Awesome Time!\n"; 11 | 12 | uint8 UsartModel_GetBaudRateRegisterSetting(void) 13 | { 14 | return UsartModel_CalculateBaudRateRegisterSetting(MASTER_CLOCK, USART0_BAUDRATE); 15 | } 16 | 17 | char* UsartModel_GetFormattedTemperature(void) 18 | { 19 | float temperature = TemperatureFilter_GetTemperatureInCelcius(); 20 | if (temperature == -INFINITY) 21 | { 22 | sprintf(formattedTemperature, "%s", "Temperature sensor failure!\n"); 23 | } 24 | else 25 | { 26 | sprintf(formattedTemperature, "%.1f C\n", temperature); 27 | } 28 | return formattedTemperature; 29 | } 30 | 31 | char* UsartModel_GetWakeupMessage(void) 32 | { 33 | return wakeup; 34 | } 35 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartModel.h: -------------------------------------------------------------------------------- 1 | #ifndef _USARTMODEL_H 2 | #define _USARTMODEL_H 3 | 4 | #include "Types.h" 5 | 6 | uint8 UsartModel_GetBaudRateRegisterSetting(void); 7 | char* UsartModel_GetFormattedTemperature(void); 8 | char* UsartModel_GetWakeupMessage(void); 9 | 10 | #endif // _USARTMODEL_H 11 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartPutChar.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "UsartPutChar.h" 3 | #include "UsartTransmitBufferStatus.h" 4 | #ifdef SIMULATE 5 | #include 6 | #endif 7 | 8 | void Usart_PutChar(char data) 9 | { 10 | while(!Usart_ReadyToTransmit()); 11 | #ifdef SIMULATE 12 | printf("%c", data); 13 | #else 14 | AT91C_BASE_US0->US_THR = data; 15 | #endif 16 | } 17 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartPutChar.h: -------------------------------------------------------------------------------- 1 | #ifndef _USARTPUT_HAR_H 2 | #define _USARTPUT_HAR_H 3 | 4 | #include "Types.h" 5 | 6 | void Usart_PutChar(char data); 7 | 8 | #endif // _USARTPUT_HAR_H 9 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.c: -------------------------------------------------------------------------------- 1 | #include "Types.h" 2 | #include "UsartTransmitBufferStatus.h" 3 | 4 | bool Usart_ReadyToTransmit(void) 5 | { 6 | return (AT91C_BASE_US0->US_CSR & AT91C_US_TXRDY) > 0; 7 | } 8 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.h: -------------------------------------------------------------------------------- 1 | #ifndef _USARTTRANSMITBUFFERSTATUS_H 2 | #define _USARTTRANSMITBUFFERSTATUS_H 3 | 4 | #include "Types.h" 5 | 6 | bool Usart_ReadyToTransmit(void); 7 | 8 | #endif // _USARTTRANSMITBUFFERSTATUS_H 9 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestAdcHardware.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "AdcHardware.h" 4 | #include "MockAdcHardwareConfigurator.h" 5 | #include "MockAdcTemperatureSensor.h" 6 | 7 | void setUp(void) 8 | { 9 | } 10 | 11 | void tearDown(void) 12 | { 13 | } 14 | 15 | void testInitShouldDelegateToConfiguratorAndTemperatureSensor(void) 16 | { 17 | Adc_Reset_Expect(); 18 | Adc_ConfigureMode_Expect(); 19 | Adc_EnableTemperatureChannel_Expect(); 20 | Adc_StartTemperatureSensorConversion_Expect(); 21 | 22 | AdcHardware_Init(); 23 | } 24 | 25 | void testGetSampleCompleteShouldReturn_FALSE_WhenTemperatureSensorSampleReadyReturns_FALSE(void) 26 | { 27 | Adc_TemperatureSensorSampleReady_ExpectAndReturn(FALSE); 28 | TEST_ASSERT(!AdcHardware_GetSampleComplete()); 29 | } 30 | 31 | void testGetSampleCompleteShouldReturn_TRUE_WhenTemperatureSensorSampleReadyReturns_TRUE(void) 32 | { 33 | Adc_TemperatureSensorSampleReady_ExpectAndReturn(TRUE); 34 | TEST_ASSERT(AdcHardware_GetSampleComplete()); 35 | } 36 | 37 | void testGetSampleShouldDelegateToAdcTemperatureSensor(void) 38 | { 39 | uint16 sample; 40 | Adc_ReadTemperatureSensor_ExpectAndReturn(847); 41 | 42 | sample = AdcHardware_GetSample(); 43 | TEST_ASSERT_EQUAL(847, sample); 44 | } 45 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestAdcHardwareConfigurator.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "AdcHardwareConfigurator.h" 4 | #include "AT91SAM7X256.h" 5 | #include "ModelConfig.h" 6 | 7 | AT91S_ADC AdcPeripheral; 8 | 9 | void setUp(void) 10 | { 11 | 12 | } 13 | 14 | void tearDown(void) 15 | { 16 | } 17 | 18 | void testResetShouldResetTheAdcConverterPeripheral(void) 19 | { 20 | AT91C_BASE_ADC->ADC_CR = 0; 21 | Adc_Reset(); 22 | TEST_ASSERT_EQUAL(AT91C_ADC_SWRST, AT91C_BASE_ADC->ADC_CR); 23 | } 24 | 25 | void testConfigureModeShouldSetAdcModeRegisterAppropriately(void) 26 | { 27 | uint32 prescaler = (MASTER_CLOCK / (2 * 2000000)) - 1; // 5MHz ADC clock 28 | 29 | AT91C_BASE_ADC->ADC_MR = 0; 30 | 31 | Adc_ConfigureMode(); 32 | 33 | TEST_ASSERT_EQUAL(prescaler, (AT91C_BASE_ADC->ADC_MR & AT91C_ADC_PRESCAL) >> 8); 34 | } 35 | 36 | void testEnableTemperatureChannelShouldEnableTheAppropriateAdcInput(void) 37 | { 38 | AT91C_BASE_ADC->ADC_CHER = 0; 39 | 40 | Adc_EnableTemperatureChannel(); 41 | 42 | TEST_ASSERT_EQUAL(0x1 << 4, AT91C_BASE_ADC->ADC_CHER); 43 | } 44 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestAdcModel.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "AdcModel.h" 4 | #include "MockTaskScheduler.h" 5 | #include "MockTemperatureCalculator.h" 6 | #include "MockTemperatureFilter.h" 7 | 8 | void setUp(void) 9 | { 10 | } 11 | 12 | void tearDown(void) 13 | { 14 | } 15 | 16 | void testDoGetSampleShouldReturn_FALSE_WhenTaskSchedulerReturns_FALSE(void) 17 | { 18 | TaskScheduler_DoAdc_ExpectAndReturn(FALSE); 19 | TEST_ASSERT_EQUAL(FALSE, AdcModel_DoGetSample()); 20 | } 21 | 22 | void testDoGetSampleShouldReturn_TRUE_WhenTaskSchedulerReturns_TRUE(void) 23 | { 24 | TaskScheduler_DoAdc_ExpectAndReturn(TRUE); 25 | TEST_ASSERT_EQUAL(TRUE, AdcModel_DoGetSample()); 26 | } 27 | 28 | void testProcessInputShouldDelegateToTemperatureCalculatorAndPassResultToFilter(void) 29 | { 30 | TemperatureCalculator_Calculate_ExpectAndReturn(21473, 23.5f); 31 | TemperatureFilter_ProcessInput_Expect(23.5f); 32 | AdcModel_ProcessInput(21473); 33 | } 34 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestExecutor.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "Executor.h" 4 | #include "MockModel.h" 5 | #include "MockUsartConductor.h" 6 | #include "MockAdcConductor.h" 7 | #include "MockTimerConductor.h" 8 | #include "MockIntrinsicsWrapper.h" 9 | 10 | void setUp(void) 11 | { 12 | } 13 | 14 | void tearDown(void) 15 | { 16 | } 17 | 18 | void testInitShouldCallInitOfAllConductorsAndTheModel(void) 19 | { 20 | Model_Init_Expect(); 21 | UsartConductor_Init_Expect(); 22 | AdcConductor_Init_Expect(); 23 | TimerConductor_Init_Expect(); 24 | Interrupt_Enable_Expect(); 25 | 26 | Executor_Init(); 27 | } 28 | 29 | void testRunShouldCallRunForEachConductorAndReturnTrueAlways(void) 30 | { 31 | UsartConductor_Run_Expect(); 32 | TimerConductor_Run_Expect(); 33 | AdcConductor_Run_Expect(); 34 | 35 | TEST_ASSERT_EQUAL(TRUE, Executor_Run()); 36 | } 37 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestMain.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "MockExecutor.h" 4 | #include "Main.h" 5 | 6 | void setUp(void) 7 | { 8 | } 9 | 10 | void tearDown(void) 11 | { 12 | } 13 | 14 | void testMainShouldCallExecutorInitAndContinueToCallExecutorRunUntilHalted(void) 15 | { 16 | Executor_Init_Expect(); 17 | Executor_Run_ExpectAndReturn(TRUE); 18 | Executor_Run_ExpectAndReturn(TRUE); 19 | Executor_Run_ExpectAndReturn(TRUE); 20 | Executor_Run_ExpectAndReturn(TRUE); 21 | Executor_Run_ExpectAndReturn(FALSE); 22 | 23 | AppMain(); 24 | } 25 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestModel.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "Model.h" 4 | #include "MockTaskScheduler.h" 5 | #include "MockTemperatureFilter.h" 6 | 7 | void setUp(void) 8 | { 9 | } 10 | 11 | void tearDown(void) 12 | { 13 | } 14 | 15 | void testInitShouldCallSchedulerAndTemperatureFilterInit(void) 16 | { 17 | TaskScheduler_Init_Expect(); 18 | TemperatureFilter_Init_Expect(); 19 | Model_Init(); 20 | } 21 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestTemperatureCalculator.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "TemperatureCalculator.h" 4 | #include 5 | 6 | void setUp(void) 7 | { 8 | } 9 | 10 | void tearDown(void) 11 | { 12 | } 13 | 14 | void testTemperatureCalculatorShouldCalculateTemperatureFromMillivolts(void) 15 | { 16 | float result; 17 | 18 | // Series resistor is 5k Ohms; Reference voltage is 3.0V 19 | // R(t) = A * e^(B*t); R is resistance of thermisor; t is temperature in C 20 | result = TemperatureCalculator_Calculate(1000); 21 | TEST_ASSERT_FLOAT_WITHIN(0.01f, 25.0f, result); 22 | 23 | result = TemperatureCalculator_Calculate(2985); 24 | TEST_ASSERT_FLOAT_WITHIN(0.01f, 68.317f, result); 25 | 26 | result = TemperatureCalculator_Calculate(3); 27 | TEST_ASSERT_FLOAT_WITHIN(0.01f, -19.96f, result); 28 | } 29 | 30 | void testShouldReturnNegativeInfinityWhen_0_millivoltsInput(void) 31 | { 32 | TEST_ASSERT_FLOAT_WITHIN(0.0000001f, -INFINITY, TemperatureCalculator_Calculate(0)); 33 | } 34 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestTimerConductor.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "TimerConductor.h" 4 | #include "MockTimerHardware.h" 5 | #include "MockTimerModel.h" 6 | #include "MockTimerInterruptHandler.h" 7 | 8 | void setUp(void) 9 | { 10 | } 11 | 12 | void tearDown(void) 13 | { 14 | } 15 | 16 | void testInitShouldCallHardwareInit(void) 17 | { 18 | TimerHardware_Init_Expect(); 19 | 20 | TimerConductor_Init(); 21 | } 22 | 23 | void testRunShouldGetSystemTimeAndPassOnToModelForEventScheduling(void) 24 | { 25 | Timer_GetSystemTime_ExpectAndReturn(1230); 26 | TimerModel_UpdateTime_Expect(1230); 27 | TimerConductor_Run(); 28 | 29 | Timer_GetSystemTime_ExpectAndReturn(837460); 30 | TimerModel_UpdateTime_Expect(837460); 31 | TimerConductor_Run(); 32 | } 33 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestTimerHardware.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "TimerHardware.h" 4 | #include "MockTimerConfigurator.h" 5 | 6 | void setUp(void) 7 | { 8 | } 9 | 10 | void tearDown(void) 11 | { 12 | } 13 | 14 | void testInitShouldDelegateAppropriatelyToConfigurator(void) 15 | { 16 | Timer_EnablePeripheralClocks_Expect(); 17 | Timer_Reset_Expect(); 18 | Timer_ConfigureMode_Expect(); 19 | Timer_ConfigurePeriod_Expect(); 20 | Timer_EnableOutputPin_Expect(); 21 | Timer_Enable_Expect(); 22 | Timer_ConfigureInterruptHandler_Expect(); 23 | Timer_Start_Expect(); 24 | 25 | TimerHardware_Init(); 26 | } 27 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestTimerModel.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "TimerModel.h" 4 | #include "MockTaskScheduler.h" 5 | 6 | void setUp(void) 7 | { 8 | } 9 | 10 | void tearDown(void) 11 | { 12 | } 13 | 14 | void testUpdateTimeShouldDelegateToTaskScheduler(void) 15 | { 16 | TaskScheduler_Update_Expect(19387L); 17 | TimerModel_UpdateTime(19387L); 18 | } 19 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "UsartBaudRateRegisterCalculator.h" 4 | 5 | void setUp(void) 6 | { 7 | } 8 | 9 | void tearDown(void) 10 | { 11 | } 12 | 13 | void testCalculateBaudRateRegisterSettingShouldCalculateRegisterSettingAppropriately(void) 14 | { 15 | // BaudRate = MCK / (CD x 16) - per datasheet section 30.6.1.2 "Baud Rate Calculation Example" 16 | TEST_ASSERT_EQUAL(26, UsartModel_CalculateBaudRateRegisterSetting(48000000, 115200)); 17 | TEST_ASSERT_EQUAL(6, UsartModel_CalculateBaudRateRegisterSetting(3686400, 38400)); 18 | TEST_ASSERT_EQUAL(23, UsartModel_CalculateBaudRateRegisterSetting(14318180, 38400)); 19 | TEST_ASSERT_EQUAL(20, UsartModel_CalculateBaudRateRegisterSetting(12000000, 38400)); 20 | TEST_ASSERT_EQUAL(13, UsartModel_CalculateBaudRateRegisterSetting(12000000, 56800)); 21 | } 22 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestUsartConductor.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "UsartConductor.h" 4 | #include "MockUsartModel.h" 5 | #include "MockUsartHardware.h" 6 | #include "MockTaskScheduler.h" 7 | 8 | void setUp(void) 9 | { 10 | } 11 | 12 | void tearDown(void) 13 | { 14 | } 15 | 16 | void testShouldInitializeHardwareWhenInitCalled(void) 17 | { 18 | UsartModel_GetBaudRateRegisterSetting_ExpectAndReturn(4); 19 | UsartModel_GetWakeupMessage_ExpectAndReturn("Hey there!"); 20 | UsartHardware_TransmitString_Expect("Hey there!"); 21 | UsartHardware_Init_Expect(4); 22 | 23 | UsartConductor_Init(); 24 | } 25 | 26 | void testRunShouldNotDoAnythingIfSchedulerSaysItIsNotTimeYet(void) 27 | { 28 | TaskScheduler_DoUsart_ExpectAndReturn(FALSE); 29 | 30 | UsartConductor_Run(); 31 | } 32 | 33 | void testRunShouldGetCurrentTemperatureAndTransmitIfSchedulerSaysItIsTime(void) 34 | { 35 | TaskScheduler_DoUsart_ExpectAndReturn(TRUE); 36 | UsartModel_GetFormattedTemperature_ExpectAndReturn("hey there"); 37 | UsartHardware_TransmitString_Expect("hey there"); 38 | 39 | UsartConductor_Run(); 40 | } 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestUsartHardware.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "UsartHardware.h" 4 | #include "AT91SAM7X256.h" 5 | #include "MockUsartConfigurator.h" 6 | #include "MockUsartPutChar.h" 7 | 8 | void setUp(void) 9 | { 10 | } 11 | 12 | void tearDown(void) 13 | { 14 | } 15 | 16 | void testInitShouldConfigureUsartPeripheralByCallingConfiguratorAppropriately(void) 17 | { 18 | Usart_ConfigureUsartIO_Expect(); 19 | Usart_EnablePeripheralClock_Expect(); 20 | Usart_Reset_Expect(); 21 | Usart_ConfigureMode_Expect(); 22 | Usart_SetBaudRateRegister_Expect(73); 23 | Usart_Enable_Expect(); 24 | 25 | UsartHardware_Init(73); 26 | } 27 | 28 | void testTransmitStringShouldSendDesiredStringOutUsingUsart(void) 29 | { 30 | Usart_PutChar_Expect('h'); 31 | Usart_PutChar_Expect('e'); 32 | Usart_PutChar_Expect('l'); 33 | Usart_PutChar_Expect('l'); 34 | Usart_PutChar_Expect('o'); 35 | 36 | UsartHardware_TransmitString("hello"); 37 | } 38 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestUsartPutChar.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "UsartPutChar.h" 4 | #include "MockUsartTransmitBufferStatus.h" 5 | 6 | AT91S_USART Usart0Peripheral; 7 | 8 | void setUp(void) 9 | { 10 | } 11 | 12 | void tearDown(void) 13 | { 14 | } 15 | 16 | void testPutCharShouldWriteDesiredCharacterToUsartTransmitBuffer(void) 17 | { 18 | AT91C_BASE_US0->US_THR = 0; 19 | 20 | Usart_ReadyToTransmit_ExpectAndReturn(TRUE); 21 | Usart_PutChar('x'); 22 | TEST_ASSERT_EQUAL('x', AT91C_BASE_US0->US_THR); 23 | 24 | Usart_ReadyToTransmit_ExpectAndReturn(TRUE); 25 | Usart_PutChar('1'); 26 | TEST_ASSERT_EQUAL('1', AT91C_BASE_US0->US_THR); 27 | 28 | Usart_ReadyToTransmit_ExpectAndReturn(TRUE); 29 | Usart_PutChar(':'); 30 | TEST_ASSERT_EQUAL(':', AT91C_BASE_US0->US_THR); 31 | } 32 | 33 | void testPutCharShouldWaitUntilReadyToTransmitBeforeLoadingTransmitBufffer(void) 34 | { 35 | AT91C_BASE_US0->US_THR = 0; 36 | 37 | Usart_ReadyToTransmit_ExpectAndReturn(FALSE); 38 | Usart_ReadyToTransmit_ExpectAndReturn(FALSE); 39 | Usart_ReadyToTransmit_ExpectAndReturn(FALSE); 40 | Usart_ReadyToTransmit_ExpectAndReturn(TRUE); 41 | Usart_PutChar('x'); 42 | TEST_ASSERT_EQUAL('x', AT91C_BASE_US0->US_THR); 43 | } 44 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/examples/temp_sensor/test/TestUsartTransmitBufferStatus.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "Types.h" 3 | #include "UsartTransmitBufferStatus.h" 4 | 5 | AT91S_USART Usart0Peripheral; 6 | 7 | void setUp(void) 8 | { 9 | } 10 | 11 | void tearDown(void) 12 | { 13 | } 14 | 15 | void testReadyToTransmitShouldReturnStatusPerTransmitBufferReadyStatus(void) 16 | { 17 | AT91C_BASE_US0->US_CSR = 0; 18 | TEST_ASSERT(!Usart_ReadyToTransmit()); 19 | 20 | AT91C_BASE_US0->US_CSR = AT91C_US_TXRDY; 21 | TEST_ASSERT(Usart_ReadyToTransmit()); 22 | } 23 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/release/build.info: -------------------------------------------------------------------------------- 1 | 216 2 | 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/release/version.info: -------------------------------------------------------------------------------- 1 | 2.4.5 2 | 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/scripts/create_mock.rb: -------------------------------------------------------------------------------- 1 | require "#{ENV['CMOCK_DIR']}/lib/cmock" 2 | 3 | raise "Header file to mock must be specified!" unless ARGV.length >= 1 4 | 5 | mock_out = ENV.fetch('MOCK_OUT', './build/test/mocks') 6 | mock_prefix = ENV.fetch('MOCK_PREFIX', 'mock_') 7 | cmock = CMock.new({:plugins => [:ignore, :return_thru_ptr], :mock_prefix => mock_prefix, :mock_path => mock_out}) 8 | cmock.setup_mocks(ARGV[0]) 9 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/scripts/create_runner.rb: -------------------------------------------------------------------------------- 1 | if ($0 == __FILE__) 2 | 3 | #make sure there is at least one parameter left (the input file) 4 | if ARGV.length < 2 5 | puts ["\nusage: ruby #{__FILE__} input_test_file (output)", 6 | "", 7 | " input_test_file - this is the C file you want to create a runner for", 8 | " output - this is the name of the runner file to generate", 9 | " defaults to (input_test_file)_Runner", 10 | ].join("\n") 11 | exit 1 12 | end 13 | 14 | require "#{ENV['UNITY_DIR']}/auto/generate_test_runner" 15 | 16 | test = ARGV[0] 17 | runner = ARGV[1] 18 | generator = UnityTestRunnerGenerator.new.run(test, runner) 19 | 20 | end 21 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/scripts/test_summary.rb: -------------------------------------------------------------------------------- 1 | 2 | suppress_error = !ARGV.nil? && !ARGV.empty? && (ARGV[0].upcase == "--SILENT") 3 | 4 | begin 5 | require "#{ENV['UNITY_DIR']}/auto/unity_test_summary.rb" 6 | 7 | build_dir = ENV.fetch('BUILD_DIR', './build') 8 | test_build_dir = ENV.fetch('TEST_BUILD_DIR', File.join(build_dir, 'test')) 9 | 10 | results = Dir["#{test_build_dir}/*.testresult"] 11 | parser = UnityTestSummary.new 12 | parser.targets = results 13 | parser.run 14 | puts parser.report 15 | rescue StandardError => e 16 | raise e unless suppress_error 17 | end 18 | 19 | exit(parser.failures) unless suppress_error 20 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/c/TestCMockC.yml: -------------------------------------------------------------------------------- 1 | --- 2 | :files: 3 | - '../src/cmock.c' 4 | - './c/TestCMockC.c' 5 | - './c/TestCMockC_Runner.c' 6 | - '../vendor/unity/src/unity.c' 7 | :options: 8 | - 'TEST' 9 | - 'CMOCK_MEM_STATIC' 10 | - 'CMOCK_MEM_SIZE=128' 11 | - 'CMOCK_MEM_ALIGN=2' 12 | - 'CMOCK_MEM_INDEX_TYPE=int' 13 | 14 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/c/TestCMockCDynamic.yml: -------------------------------------------------------------------------------- 1 | --- 2 | :files: 3 | - '../src/cmock.c' 4 | - './c/TestCMockCDynamic.c' 5 | - './c/TestCMockCDynamic_Runner.c' 6 | - '../vendor/unity/src/unity.c' 7 | :options: 8 | - 'TEST' 9 | - 'CMOCK_MEM_DYNAMIC' 10 | - 'CMOCK_MEM_SIZE=64' 11 | - 'CMOCK_MEM_ALIGN=3' 12 | - 'CMOCK_MEM_INDEX_TYPE=short' 13 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v4/cmock_demo.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\cmock_demo.ewp 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v4/incIAR/lib_AT91SAM7X256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/third_party/cmock/test/iar/iar_v4/incIAR/lib_AT91SAM7X256.h -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v4/settings/cmock_demo.dni: -------------------------------------------------------------------------------- 1 | [JLinkDriver] 2 | WatchCond=_ 0 3 | Watch0=_ 0 "" 0 "" 0 "" 0 "" 0 0 0 0 4 | Watch1=_ 0 "" 0 "" 0 "" 0 "" 0 0 0 0 5 | [DisAssemblyWindow] 6 | NumStates=_ 1 7 | State 1=_ 1 8 | [StackPlugin] 9 | Enabled=1 10 | OverflowWarningsEnabled=1 11 | WarningThreshold=90 12 | SpWarningsEnabled=1 13 | WarnHow=0 14 | UseTrigger=1 15 | TriggerName=main 16 | LimitSize=0 17 | ByteLimit=50 18 | [Log file] 19 | LoggingEnabled=_ 0 20 | LogFile=_ "" 21 | Category=_ 0 22 | [TermIOLog] 23 | LoggingEnabled=_ 0 24 | LogFile=_ "" 25 | [Interrupts] 26 | Enabled=1 27 | Irq0=_ 0 480549 0 480549 0 0 0 100 0 1 "IRQ 1 0x18 CPSR.I" 28 | Count=1 29 | [MemoryMap] 30 | Enabled=0 31 | Base=0 32 | UseAuto=0 33 | TypeViolation=1 34 | UnspecRange=1 35 | ActionState=1 36 | [Disassemble mode] 37 | mode=0 38 | [Breakpoints] 39 | Count=0 40 | [TraceHelper] 41 | Enabled=0 42 | ShowSource=1 43 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v5/cmock_demo.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\cmock_demo.ewp 6 | 7 | 8 | 9 | All 10 | 11 | cmock_demo 12 | Binary 13 | 14 | 15 | cmock_demo 16 | FLASH_Debug 17 | 18 | 19 | cmock_demo 20 | RAM_Debug 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v5/incIAR/lib_AT91SAM7X256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/third_party/cmock/test/iar/iar_v5/incIAR/lib_AT91SAM7X256.h -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X.dbgdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X.dni: -------------------------------------------------------------------------------- 1 | [JLinkDriver] 2 | WatchCond=_ 0 3 | Watch0=_ 0 "" 0 "" 0 "" 0 "" 0 0 0 0 4 | Watch1=_ 0 "" 0 "" 0 "" 0 "" 0 0 0 0 5 | [TermIOLog] 6 | LoggingEnabled=_ 0 7 | LogFile=_ "" 8 | [Log file] 9 | LoggingEnabled=_ 0 10 | LogFile=_ "" 11 | Category=_ 0 12 | [Disassemble mode] 13 | mode=0 14 | [Breakpoints] 15 | Count=0 16 | [TraceHelper] 17 | Enabled=0 18 | ShowSource=1 19 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X_FLASH_Debug.jlink: -------------------------------------------------------------------------------- 1 | [FLASH] 2 | SkipProgOnCRCMatch = 1 3 | VerifyDownload = 1 4 | AllowCaching = 1 5 | EnableFlashDL = 2 6 | Override = 0 7 | Device="ADUC7020X62" 8 | [BREAKPOINTS] 9 | ShowInfoWin = 1 10 | EnableFlashBP = 2 11 | [CPU] 12 | AllowSimulation = 1 13 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v5/settings/cmock_demo.dni: -------------------------------------------------------------------------------- 1 | [JLinkDriver] 2 | WatchCond=_ 0 3 | Watch0=_ 0 "" 0 "" 0 "" 0 "" 0 0 0 0 4 | Watch1=_ 0 "" 0 "" 0 "" 0 "" 0 0 0 0 5 | [DisAssemblyWindow] 6 | NumStates=_ 1 7 | State 1=_ 1 8 | [CodeCoverage] 9 | Enabled=_ 0 10 | [Profiling] 11 | Enabled=0 12 | [StackPlugin] 13 | Enabled=1 14 | OverflowWarningsEnabled=1 15 | WarningThreshold=90 16 | SpWarningsEnabled=1 17 | WarnHow=0 18 | UseTrigger=1 19 | TriggerName=main 20 | LimitSize=0 21 | ByteLimit=50 22 | [Interrupts] 23 | Enabled=1 24 | [MemoryMap] 25 | Enabled=0 26 | Base=0 27 | UseAuto=0 28 | TypeViolation=1 29 | UnspecRange=1 30 | ActionState=1 31 | [Log file] 32 | LoggingEnabled=_ 0 33 | LogFile=_ "" 34 | Category=_ 0 35 | [TermIOLog] 36 | LoggingEnabled=_ 0 37 | LogFile=_ "" 38 | [Disassemble mode] 39 | mode=0 40 | [Breakpoints] 41 | Count=0 42 | [TraceHelper] 43 | Enabled=0 44 | ShowSource=1 45 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v5/settings/cmock_demo_Binary.jlink: -------------------------------------------------------------------------------- 1 | [FLASH] 2 | SkipProgOnCRCMatch = 1 3 | VerifyDownload = 1 4 | AllowCaching = 1 5 | EnableFlashDL = 2 6 | Override = 0 7 | Device="ADUC7020X62" 8 | [BREAKPOINTS] 9 | ShowInfoWin = 1 10 | EnableFlashBP = 2 11 | [CPU] 12 | AllowSimulation = 1 13 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v5/settings/cmock_demo_FLASH_Debug.jlink: -------------------------------------------------------------------------------- 1 | [FLASH] 2 | SkipProgOnCRCMatch = 1 3 | VerifyDownload = 1 4 | AllowCaching = 1 5 | EnableFlashDL = 2 6 | Override = 0 7 | Device="ADUC7020X62" 8 | [BREAKPOINTS] 9 | ShowInfoWin = 1 10 | EnableFlashBP = 2 11 | [CPU] 12 | AllowSimulation = 1 13 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/iar/iar_v5/settings/cmock_demo_RAM_Debug.jlink: -------------------------------------------------------------------------------- 1 | [FLASH] 2 | SkipProgOnCRCMatch = 1 3 | VerifyDownload = 1 4 | AllowCaching = 1 5 | EnableFlashDL = 2 6 | Override = 0 7 | Device="ADUC7020X62" 8 | [BREAKPOINTS] 9 | ShowInfoWin = 1 10 | EnableFlashBP = 2 11 | [CPU] 12 | AllowSimulation = 1 13 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/system/test_compilation/callingconv.h: -------------------------------------------------------------------------------- 1 | /* ========================================== 2 | CMock Project - Automatic Mock Generation for C 3 | Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 4 | [Released under MIT License. Please refer to license.txt for details] 5 | ========================================== */ 6 | 7 | #ifndef __stdcall 8 | #define __stdcall 9 | #endif 10 | 11 | int __stdcall this_uses_calling_conventions(int b); 12 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/system/test_compilation/config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | :cmock: 3 | :plugins: [] 4 | :includes: [] 5 | :mock_path: ./system/generated/ 6 | :mock_prefix: mock_ 7 | :treat_as_void: 8 | - OSEK_TASK 9 | - VOID_TYPE_CRAZINESS 10 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/system/test_interactions/ignore_strict_mock_calling.yml: -------------------------------------------------------------------------------- 1 | --- 2 | :cmock: 3 | :plugins: 4 | - 'ignore' 5 | :fail_on_unexpected_calls: FALSE 6 | 7 | :systest: 8 | :types: | 9 | 10 | :mockable: | 11 | int foo(int a); 12 | void bar(int b); 13 | 14 | :source: 15 | :header: | 16 | int function(int a, int b, int c); 17 | :code: | 18 | int function(int a, int b, int c) 19 | { 20 | bar(b); 21 | return foo(a) + foo(b) + foo(c); 22 | } 23 | 24 | :tests: 25 | :common: | 26 | void setUp(void) {} 27 | void tearDown(void) {} 28 | :units: 29 | - :pass: TRUE 30 | :should: 'With "fail_on_unexpected_calls" disabled, Expect/Ignore/... of bar is NOT required.' 31 | :code: | 32 | test() 33 | { 34 | function(1, 2, 3); 35 | } 36 | 37 | ... 38 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/system/test_interactions/newer_standards_stuff1.yml: -------------------------------------------------------------------------------- 1 | --- 2 | #The purpose of this test is to pull in some standard library stuff from C99 3 | :cmock: 4 | :includes: 5 | - "" 6 | - "" 7 | 8 | :systest: 9 | :types: | 10 | #include 11 | #include 12 | 13 | 14 | :mockable: | 15 | int32_t foo(int32_t a); 16 | 17 | :source: 18 | :header: | 19 | int8_t function_a(void); 20 | 21 | :code: | 22 | int8_t function_a(void) { 23 | return (int8_t)(INT_MIN == foo(INT_MAX)); 24 | } 25 | 26 | :tests: 27 | :common: | 28 | void setUp(void) {} 29 | void tearDown(void) {} 30 | 31 | :units: 32 | - :pass: TRUE 33 | :should: 'handle handle a simple comparison of C99 types which pass' 34 | :code: | 35 | test() 36 | { 37 | foo_ExpectAndReturn(INT_MAX, INT_MIN); 38 | 39 | TEST_ASSERT_TRUE(function_a()); 40 | } 41 | 42 | - :pass: FALSE 43 | :should: 'handle handle a simple comparison of C99 types which fail' 44 | :code: | 45 | test() 46 | { 47 | foo_ExpectAndReturn(INT_MIN, INT_MIN); 48 | 49 | TEST_ASSERT_TRUE(function_a()); 50 | } 51 | 52 | ... 53 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/unit/cmock_config_test.yml: -------------------------------------------------------------------------------- 1 | :cmock: 2 | :plugins: 3 | - 'soda' 4 | - 'pizza' 5 | :treat_externs: :include 6 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/test/unit/cmock_file_writer_test.rb: -------------------------------------------------------------------------------- 1 | # ========================================== 2 | # CMock Project - Automatic Mock Generation for C 3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 4 | # [Released under MIT License. Please refer to license.txt for details] 5 | # ========================================== 6 | 7 | require File.expand_path(File.dirname(__FILE__)) + "/../test_helper" 8 | require File.expand_path(File.dirname(__FILE__)) + '/../../lib/cmock_file_writer' 9 | 10 | describe CMockFileWriter, "Verify CMockFileWriter Module" do 11 | 12 | before do 13 | create_mocks :config 14 | @cmock_file_writer = CMockFileWriter.new(@config) 15 | end 16 | 17 | after do 18 | end 19 | 20 | it "complain if a block was not specified when calling create" do 21 | begin 22 | @cmock_file_writer.create_file("test.txt") 23 | assert false, "Should Have Thrown An Error When Calling Without A Block" 24 | rescue 25 | end 26 | end 27 | end 28 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/vendor/behaviors/Manifest.txt: -------------------------------------------------------------------------------- 1 | Manifest.txt 2 | Rakefile 3 | lib/behaviors.rb 4 | lib/behaviors/reporttask.rb 5 | test/behaviors_tasks_test.rb 6 | test/behaviors_test.rb 7 | test/tasks_test/lib/user.rb 8 | test/tasks_test/Rakefile 9 | test/tasks_test/test/user_test.rb 10 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/vendor/behaviors/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rake' 2 | require 'rubygems' 3 | require 'hoe' 4 | 5 | Hoe.new('behaviors','1.0.3') do |p| 6 | p.author = "Atomic Object LLC" 7 | p.email = "dev@atomicobject.com" 8 | p.url = "http://behaviors.rubyforge.org" 9 | p.summary = "behavior-driven unit test helper" 10 | p.description = <<-EOS 11 | Behaviors allows for Test::Unit test case methods to be defined as 12 | human-readable descriptions of program behavior. It also provides 13 | Rake tasks to list the behaviors of your project. 14 | EOS 15 | p.test_globs = ['test/*_test.rb'] 16 | 17 | p.changes = <<-EOS 18 | EOS 19 | end 20 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/vendor/behaviors/test/tasks_test/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rake' 2 | require 'rake/testtask' 3 | 4 | here = File.expand_path(File.dirname(__FILE__)) 5 | require "#{here}/../../lib/behaviors/reporttask" 6 | 7 | desc 'Default: run unit tests.' 8 | task :default => :test 9 | 10 | Rake::TestTask.new(:test) do |t| 11 | t.libs << "#{here}/../../lib" 12 | t.pattern = 'test/**/*_test.rb' 13 | t.verbose = true 14 | end 15 | 16 | Behaviors::ReportTask.new(:behaviors) do |t| 17 | t.pattern = 'test/**/*_test.rb' 18 | t.html_dir = 'behaviors_doc' 19 | end 20 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/vendor/behaviors/test/tasks_test/lib/user.rb: -------------------------------------------------------------------------------- 1 | class User 2 | end 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/cmock/vendor/behaviors/test/tasks_test/test/user_test.rb: -------------------------------------------------------------------------------- 1 | require 'test/unit' 2 | require 'behaviors' 3 | 4 | require 'user' 5 | 6 | class UserTest < Test::Unit::TestCase 7 | extend Behaviors 8 | 9 | def setup 10 | end 11 | 12 | should "be able set user name and age during construction" 13 | should "be able to get user name and age" 14 | should "be able to ask if a user is an adult" 15 | def test_DELETEME 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/directories.txt: -------------------------------------------------------------------------------- 1 | This file describes the subdirectories found in the /lib/third_party directory 2 | of the Amazon FreeRTOS distribution. 3 | 4 | mcu_vendor: 5 | Contains the vendor supplied device specific driver libraries required to build 6 | target specific demo projects. Organized by vendor. 7 | 8 | All other directories: 9 | Contain the implementation of non device specific libraries required to build 10 | demo projects. -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mbedtls/LICENSE: -------------------------------------------------------------------------------- 1 | Unless specifically indicated otherwise in a file, files are licensed 2 | under the Apache 2.0 license, as can be found in: apache-2.0.txt 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mbedtls/include/mbedtls/net.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file net.h 3 | * 4 | * \brief Deprecated header file that includes net_sockets.h 5 | * 6 | * \deprecated Superseded by mbedtls/net_sockets.h 7 | */ 8 | /* 9 | * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved 10 | * SPDX-License-Identifier: Apache-2.0 11 | * 12 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 13 | * not use this file except in compliance with the License. 14 | * You may obtain a copy of the License at 15 | * 16 | * http://www.apache.org/licenses/LICENSE-2.0 17 | * 18 | * Unless required by applicable law or agreed to in writing, software 19 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 20 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21 | * See the License for the specific language governing permissions and 22 | * limitations under the License. 23 | * 24 | * This file is part of mbed TLS (https://tls.mbed.org) 25 | */ 26 | 27 | #if !defined(MBEDTLS_DEPRECATED_REMOVED) 28 | #include "net_sockets.h" 29 | #if defined(MBEDTLS_DEPRECATED_WARNING) 30 | #warning "Deprecated header file: Superseded by mbedtls/net_sockets.h" 31 | #endif /* MBEDTLS_DEPRECATED_WARNING */ 32 | #endif /* !MBEDTLS_DEPRECATED_REMOVED */ 33 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/MicroZed_hw_platform_0/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | MicroZed_hw_platform_0 4 | Created by SDK v2018.2 5 | 6 | 7 | 8 | 9 | 10 | com.xilinx.sdk.hw.HwProject 11 | 12 | 13 | 14 | 1541648781870 15 | 16 | 6 17 | 18 | org.eclipse.ui.ide.multiFilter 19 | 1.0-name-matches-false-false-*.xml 20 | 21 | 22 | 23 | 1541648781873 24 | 25 | 6 26 | 27 | org.eclipse.ui.ide.multiFilter 28 | 1.0-name-matches-false-false-*.svd 29 | 30 | 31 | 32 | 1541648781875 33 | 34 | 6 35 | 36 | org.eclipse.ui.ide.multiFilter 37 | 1.0-name-matches-false-false-*.hwh 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/MicroZed_hw_platform_0/mz_acc_iiot_wrapper.bit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/third_party/mcu_vendor/xilinx/MicroZed_hw_platform_0/mz_acc_iiot_wrapper.bit -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/MicroZed_hw_platform_0/system.hdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/third_party/mcu_vendor/xilinx/MicroZed_hw_platform_0/system.hdf -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/.cproject: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/.sdkproject: -------------------------------------------------------------------------------- 1 | THIRPARTY=false 2 | HW_PROJECT_REFERENCE=MicroZed_hw_platform_0 3 | PROCESSOR=ps7_cortexa9_0 4 | MSS_FILE=system.mss 5 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/code/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/include/integer.h: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------*/ 2 | /* Integer type definitions for FatFs module */ 3 | /*-------------------------------------------*/ 4 | 5 | #ifndef _FF_INTEGER 6 | #define _FF_INTEGER 7 | 8 | #ifdef _WIN32 /* FatFs development platform */ 9 | 10 | #include 11 | #include 12 | 13 | #else /* Embedded platform */ 14 | 15 | /* This type MUST be 8 bit */ 16 | typedef unsigned char BYTE; 17 | 18 | /* These types MUST be 16 bit */ 19 | typedef short SHORT; 20 | typedef unsigned short WORD; 21 | typedef unsigned short WCHAR; 22 | 23 | /* These types MUST be 16 bit or 32 bit */ 24 | typedef int INT; 25 | typedef unsigned int UINT; 26 | 27 | /* These types MUST be 32 bit */ 28 | typedef long LONG; 29 | typedef unsigned int DWORD; 30 | 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/include/xdebug.h: -------------------------------------------------------------------------------- 1 | #ifndef XDEBUG /* prevent circular inclusions */ 2 | #define XDEBUG /* by using protection macros */ 3 | 4 | #if defined(DEBUG) && !defined(NDEBUG) 5 | 6 | #ifndef XDEBUG_WARNING 7 | #define XDEBUG_WARNING 8 | #warning DEBUG is enabled 9 | #endif 10 | 11 | int printf(const char *format, ...); 12 | 13 | #define XDBG_DEBUG_ERROR 0x00000001U /* error condition messages */ 14 | #define XDBG_DEBUG_GENERAL 0x00000002U /* general debug messages */ 15 | #define XDBG_DEBUG_ALL 0xFFFFFFFFU /* all debugging data */ 16 | 17 | #define xdbg_current_types (XDBG_DEBUG_GENERAL) 18 | 19 | #define xdbg_stmnt(x) x 20 | 21 | #define xdbg_printf(type, ...) (((type) & xdbg_current_types) ? printf (__VA_ARGS__) : 0) 22 | 23 | 24 | #else /* defined(DEBUG) && !defined(NDEBUG) */ 25 | 26 | #define xdbg_stmnt(x) 27 | 28 | #define xdbg_printf(...) 29 | 30 | #endif /* defined(DEBUG) && !defined(NDEBUG) */ 31 | 32 | #endif /* XDEBUG */ 33 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/lib/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/coresightps_dcc_v1_4/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner coresightps_dcc_comp_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling coresightps_dcc" 29 | 30 | coresightps_dcc_comp_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: coresightps_dcc_includes 35 | 36 | coresightps_dcc_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/cpu_cortexa9_v2_6/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | RELEASEDIR=../../../lib 9 | INCLUDEDIR=../../../include 10 | INCLUDES=-I${INCLUDEDIR} 11 | 12 | OUTS = *.o 13 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 14 | LIBSOURCES=*.c 15 | INCLUDEFILES=*.h 16 | 17 | libs: 18 | echo "Compiling cpu_cortexa9" 19 | 20 | .PHONY: include 21 | include: 22 | ${CP} $(INCLUDEFILES) $(INCLUDEDIR) 23 | 24 | clean: 25 | rm -rf ${OBJECTS} 26 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/ddrps_v1_0/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xddrps_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling ddrps" 29 | 30 | xddrps_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xddrps_includes 35 | 36 | xddrps_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/devcfg_v3_5/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xdevcfg_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling devcfg" 29 | 30 | xdevcfg_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xdevcfg_includes 35 | 36 | xdevcfg_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/dmaps_v2_3/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xdmaps_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling dmaps" 29 | 30 | xdmaps_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xdmaps_includes 35 | 36 | xdmaps_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | 42 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/emacps_v3_7/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xemacps_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling emacps" 29 | 30 | xemacps_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xemacps_includes 35 | 36 | xemacps_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/gpiops_v3_3/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xgpiops_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling gpiops" 29 | 30 | xgpiops_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xgpiops_includes 35 | 36 | xgpiops_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/iic_v3_4/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | RELEASEDIR=../../../lib 9 | INCLUDEDIR=../../../include 10 | INCLUDES=-I./. -I${INCLUDEDIR} 11 | 12 | INCLUDEFILES=xiic.h xiic_l.h 13 | LIBSOURCES=*.c 14 | OUTS = *.o 15 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 16 | 17 | libs: 18 | echo "Compiling iic" 19 | $(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $(LIBSOURCES) 20 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OUTS} 21 | make clean 22 | 23 | include: 24 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 25 | 26 | clean: 27 | rm -rf ${OBJECTS} 28 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/qspips_v3_4/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xqspips_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling qspips" 29 | 30 | xqspips_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xqspips_includes 35 | 36 | xqspips_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/scugic_v3_9/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner scugic_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling scugic" 29 | 30 | scugic_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: scugic_includes 35 | 36 | scugic_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/scutimer_v2_1/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner scutimer_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling scutimer" 29 | 30 | scutimer_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: scutimer_includes 35 | 36 | scutimer_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/scuwdt_v2_1/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner scuwdt_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling scuwdt" 29 | 30 | scuwdt_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: scuwdt_includes 35 | 36 | scuwdt_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/sdps_v3_5/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xsdps_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling sdps" 29 | 30 | xsdps_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xsdps_includes 35 | 36 | xsdps_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/spi_v4_4/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | RELEASEDIR=../../../lib 9 | INCLUDEDIR=../../../include 10 | INCLUDES=-I./. -I${INCLUDEDIR} 11 | 12 | INCLUDEFILES=xspi_l.h xspi.h 13 | 14 | LIBSOURCES=*.c 15 | OUTS = *.o 16 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 17 | 18 | libs: 19 | echo "Compiling spi" 20 | $(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $(LIBSOURCES) 21 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} $(OUTS) 22 | make clean 23 | 24 | include: 25 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 26 | 27 | clean: 28 | rm -rf ${OBJECTS} 29 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/spips_v3_1/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xspips_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling spips" 29 | 30 | xspips_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xspips_includes 35 | 36 | xspips_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/config.make: -------------------------------------------------------------------------------- 1 | LIBSOURCES = *.c *.S 2 | PROFILE_ARCH_OBJS = profile_mcount_arm.o 3 | LIBS = standalone_libs 4 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/inbyte.c: -------------------------------------------------------------------------------- 1 | #include "xparameters.h" 2 | #include "xuartps_hw.h" 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | char inbyte(void); 8 | #ifdef __cplusplus 9 | } 10 | #endif 11 | 12 | char inbyte(void) { 13 | return XUartPs_RecvByte(STDIN_BASEADDRESS); 14 | } 15 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/outbyte.c: -------------------------------------------------------------------------------- 1 | #include "xparameters.h" 2 | #include "xuartps_hw.h" 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | void outbyte(char c); 8 | 9 | #ifdef __cplusplus 10 | } 11 | #endif 12 | 13 | void outbyte(char c) { 14 | XUartPs_SendByte(STDOUT_BASEADDRESS, c); 15 | } 16 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/print.c: -------------------------------------------------------------------------------- 1 | /* print.c -- print a string on the output device. 2 | * 3 | * Copyright (c) 1995 Cygnus Support 4 | * 5 | * The authors hereby grant permission to use, copy, modify, distribute, 6 | * and license this software and its documentation for any purpose, provided 7 | * that existing copyright notices are retained in all copies and that this 8 | * notice is included verbatim in any distributions. No written agreement, 9 | * license, or royalty fee is required for any of the authorized uses. 10 | * Modifications to this software may be copyrighted by their authors 11 | * and need not follow the licensing terms described here, provided that 12 | * the new terms are clearly indicated on the first page of each file where 13 | * they apply. 14 | * 15 | */ 16 | 17 | /* 18 | * print -- do a raw print of a string 19 | */ 20 | #include "xil_printf.h" 21 | 22 | void print(const char8 *ptr) 23 | { 24 | #if HYP_GUEST && EL1_NONSECURE && XEN_USE_PV_CONSOLE 25 | XPVXenConsole_Write(ptr); 26 | #else 27 | #ifdef STDOUT_BASEADDRESS 28 | while (*ptr != (char8)0) { 29 | outbyte (*ptr); 30 | ptr++; 31 | } 32 | #else 33 | (void)ptr; 34 | #endif 35 | #endif 36 | } 37 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/xdebug.h: -------------------------------------------------------------------------------- 1 | #ifndef XDEBUG /* prevent circular inclusions */ 2 | #define XDEBUG /* by using protection macros */ 3 | 4 | #if defined(DEBUG) && !defined(NDEBUG) 5 | 6 | #ifndef XDEBUG_WARNING 7 | #define XDEBUG_WARNING 8 | #warning DEBUG is enabled 9 | #endif 10 | 11 | int printf(const char *format, ...); 12 | 13 | #define XDBG_DEBUG_ERROR 0x00000001U /* error condition messages */ 14 | #define XDBG_DEBUG_GENERAL 0x00000002U /* general debug messages */ 15 | #define XDBG_DEBUG_ALL 0xFFFFFFFFU /* all debugging data */ 16 | 17 | #define xdbg_current_types (XDBG_DEBUG_GENERAL) 18 | 19 | #define xdbg_stmnt(x) x 20 | 21 | #define xdbg_printf(type, ...) (((type) & xdbg_current_types) ? printf (__VA_ARGS__) : 0) 22 | 23 | 24 | #else /* defined(DEBUG) && !defined(NDEBUG) */ 25 | 26 | #define xdbg_stmnt(x) 27 | 28 | #define xdbg_printf(...) 29 | 30 | #endif /* defined(DEBUG) && !defined(NDEBUG) */ 31 | 32 | #endif /* XDEBUG */ 33 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/ttcps_v3_6/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner ttcps_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling ttcps" 29 | 30 | ttcps_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: ttcps_includes 35 | 36 | ttcps_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/uartps_v3_6/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xuartps_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling uartps" 29 | 30 | xuartps_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xuartps_includes 35 | 36 | xuartps_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/usbps_v2_4/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xusbps_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling usbps" 29 | 30 | xusbps_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xusbps_includes 35 | 36 | xusbps_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | 42 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/xadcps_v2_2/src/Makefile: -------------------------------------------------------------------------------- 1 | COMPILER= 2 | ARCHIVER= 3 | CP=cp 4 | COMPILER_FLAGS= 5 | EXTRA_COMPILER_FLAGS= 6 | LIB=libxil.a 7 | 8 | CC_FLAGS = $(COMPILER_FLAGS) 9 | ECC_FLAGS = $(EXTRA_COMPILER_FLAGS) 10 | 11 | RELEASEDIR=../../../lib 12 | INCLUDEDIR=../../../include 13 | INCLUDES=-I./. -I${INCLUDEDIR} 14 | 15 | OUTS = *.o 16 | 17 | LIBSOURCES:=*.c 18 | INCLUDEFILES:=*.h 19 | 20 | OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c))) 21 | 22 | libs: banner xadcps_libs clean 23 | 24 | %.o: %.c 25 | ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $< 26 | 27 | banner: 28 | echo "Compiling xadcps" 29 | 30 | xadcps_libs: ${OBJECTS} 31 | $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} 32 | 33 | .PHONY: include 34 | include: xadcps_includes 35 | 36 | xadcps_includes: 37 | ${CP} ${INCLUDEFILES} ${INCLUDEDIR} 38 | 39 | clean: 40 | rm -rf ${OBJECTS} 41 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/xilffs_v3_9/src/include/integer.h: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------*/ 2 | /* Integer type definitions for FatFs module */ 3 | /*-------------------------------------------*/ 4 | 5 | #ifndef _FF_INTEGER 6 | #define _FF_INTEGER 7 | 8 | #ifdef _WIN32 /* FatFs development platform */ 9 | 10 | #include 11 | #include 12 | 13 | #else /* Embedded platform */ 14 | 15 | /* This type MUST be 8 bit */ 16 | typedef unsigned char BYTE; 17 | 18 | /* These types MUST be 16 bit */ 19 | typedef short SHORT; 20 | typedef unsigned short WORD; 21 | typedef unsigned short WCHAR; 22 | 23 | /* These types MUST be 16 bit or 32 bit */ 24 | typedef int INT; 25 | typedef unsigned int UINT; 26 | 27 | /* These types MUST be 32 bit */ 28 | typedef long LONG; 29 | typedef unsigned int DWORD; 30 | 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/xilrsa_v1_5/src/librsa.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/third_party/mcu_vendor/xilinx/aws_bsp/ps7_cortexa9_0/libsrc/xilrsa_v1_5/src/librsa.a -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/fsbl/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | fsbl 4 | Created by SDK v2018.2. aws_bsp - ps7_cortexa9_0 5 | 6 | aws_bsp 7 | 8 | 9 | 10 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 24 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 25 | 26 | 27 | 28 | src/ps7_init.c 29 | 1 30 | PARENT-1-PROJECT_LOC/MicroZed_hw_platform_0/ps7_init.c 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/fsbl/Debug/Xilinx.spec: -------------------------------------------------------------------------------- 1 | *startfile: 2 | crti%O%s crtbegin%O%s 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/fsbl/Debug/objects.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # Automatically-generated file. Do not edit! 3 | ################################################################################ 4 | 5 | USER_OBJS := 6 | 7 | LIBS := -Wl,--start-group,-lxil,-lgcc,-lc,--end-group -Wl,--start-group,-lxilffs,-lxil,-lgcc,-lc,--end-group -Wl,--start-group,-lrsa,-lxil,-lgcc,-lc,--end-group 8 | 9 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/fsbl/Debug/sources.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # Automatically-generated file. Do not edit! 3 | ################################################################################ 4 | 5 | LD_SRCS := 6 | OBJ_SRCS := 7 | S_SRCS := 8 | C_SRCS := 9 | S_UPPER_SRCS := 10 | O_SRCS := 11 | EXECUTABLES := 12 | OBJS := 13 | S_UPPER_DEPS := 14 | C_DEPS := 15 | ELFSIZE := 16 | 17 | # Every subdirectory with source files must be described here 18 | SUBDIRS := \ 19 | src \ 20 | 21 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/mcu_vendor/xilinx/fsbl/src/Xilinx.spec: -------------------------------------------------------------------------------- 1 | *startfile: 2 | crti%O%s crtbegin%O%s 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tinycbor/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Intel Corporation 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tinycrypt/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *~ 3 | *.d 4 | *.exe 5 | *.a 6 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tinycrypt/AUTHORS: -------------------------------------------------------------------------------- 1 | Architect: 2 | Rafael Misoczki 3 | 4 | Open Source Maintainer: 5 | Constanza Heath 6 | Rafael Misoczki 7 | 8 | Contributors: 9 | Constanza Heath 10 | Rafael Misoczki 11 | Flavio Santes 12 | Jarkko Sakkinen 13 | Chris Morrison 14 | Marti Bolivar 15 | Colin Ian King 16 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tinycrypt/Makefile: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # Copyright (C) 2017 by Intel Corporation, All Rights Reserved. 4 | # 5 | # Global Makefile. 6 | # See lib/Makefile and tests/Makefile for further configuration. 7 | # 8 | ################################################################################ 9 | include config.mk 10 | 11 | all: 12 | $(MAKE) -C lib 13 | ifeq ($(ENABLE_TESTS),true) 14 | $(MAKE) -C tests 15 | endif 16 | 17 | clean: 18 | $(MAKE) -C lib clean 19 | $(MAKE) -C tests clean 20 | $(RM) *~ 21 | 22 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tinycrypt/VERSION: -------------------------------------------------------------------------------- 1 | 0.2.8 2 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tinycrypt/config.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # Copyright (C) 2017 by Intel Corporation, All Rights Reserved. 4 | # 5 | # Global configuration Makefile. Included everywhere. 6 | # 7 | ################################################################################ 8 | 9 | # EDIT HERE: 10 | CC:=gcc 11 | CFLAGS:=-Os -std=c99 -Wall -Wextra -D_ISOC99_SOURCE -MMD -I../lib/include/ -I../lib/source/ -I../tests/include/ 12 | vpath %.c ../lib/source/ 13 | ENABLE_TESTS=true 14 | 15 | # override MinGW built-in recipe 16 | %.o: %.c 17 | $(COMPILE.c) $(OUTPUT_OPTION) $< 18 | 19 | ifeq ($(OS),Windows_NT) 20 | DOTEXE:=.exe 21 | endif 22 | 23 | # DO NOT EDIT AFTER THIS POINT: 24 | ifeq ($(ENABLE_TESTS), true) 25 | CFLAGS += -DENABLE_TESTS 26 | else 27 | CFLAGS += -DDISABLE_TESTS 28 | endif 29 | 30 | export CC 31 | export CFLAGS 32 | export VPATH 33 | export ENABLE_TESTS 34 | 35 | ################################################################################ 36 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tinycrypt/lib/Makefile: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # Copyright (C) 2017 by Intel Corporation, All Rights Reserved. 4 | # 5 | # Cryptographic Primitives Makefile. 6 | # 7 | ################################################################################ 8 | 9 | include ../config.mk 10 | 11 | # Edit the OBJS content to add/remove primitives needed from TinyCrypt library: 12 | OBJS:=aes_decrypt.o \ 13 | aes_encrypt.o \ 14 | cbc_mode.o \ 15 | ctr_mode.o \ 16 | ctr_prng.o \ 17 | hmac.o \ 18 | hmac_prng.o \ 19 | sha256.o \ 20 | ecc.o \ 21 | ecc_dh.o \ 22 | ecc_dsa.o \ 23 | ccm_mode.o \ 24 | cmac_mode.o \ 25 | utils.o 26 | 27 | DEPS:=$(OBJS:.o=.d) 28 | 29 | all: libtinycrypt.a 30 | 31 | libtinycrypt.a: $(OBJS) 32 | $(AR) $(ARFLAGS) $@ $^ 33 | 34 | .PHONY: clean 35 | 36 | clean: 37 | -$(RM) *.exe $(OBJS) $(DEPS) *~ libtinycrypt.a 38 | 39 | -include $(DEPS) 40 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tinycrypt/tests/pseudo-random-data.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/third_party/tinycrypt/tests/pseudo-random-data.bin -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tracealyzer_recorder/ReadMe.url: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=http://www.freertos.org/trace 3 | IDList= 4 | [{000214A0-0000-0000-C000-000000000046}] 5 | Prop3=19,2 6 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tracealyzer_recorder/streamports/Jlink_RTT/Readme-Streamport.txt: -------------------------------------------------------------------------------- 1 | Tracealyzer Stream Port for SEGGER J-Link 2 | ----------------------------------------- 3 | 4 | This directory contains a "stream port" for the Tracealyzer recorder library, 5 | i.e., the specific code needed to use a particular interface for streaming a 6 | Tracealyzer RTOS trace. The stream port is defined by a set of macros in 7 | trcStreamingPort.h, found in the "include" directory. 8 | 9 | This particular stream port targets SEGGER J-Link debug probes, using the RTT 10 | interface provided by SEGGER. 11 | 12 | To use this stream port, make sure that include/trcStreamingPort.h is found 13 | by the compiler (i.e., add this folder to your project's include paths) and 14 | add all included source files to your build. Make sure no other versions of 15 | trcStreamingPort.h are included by mistake! 16 | 17 | Note that this stream port also contains SEGGER's RTT driver. 18 | 19 | See also http://percepio.com/2016/10/05/rtos-tracing. 20 | 21 | Percepio AB 22 | www.percepio.com -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/tracealyzer_recorder/streamports/TCPIP/Readme-Streamport.txt: -------------------------------------------------------------------------------- 1 | Tracealyzer Stream Port for TCP/IP (lwIP example) 2 | ------------------------------------------------- 3 | 4 | This directory contains a "stream port" for the Tracealyzer recorder library, 5 | i.e., the specific code needed to use a particular interface for streaming a 6 | Tracealyzer RTOS trace. The stream port is defined by a set of macros in 7 | trcStreamingPort.h, found in the "include" directory. 8 | 9 | This particular stream port targets TCP/IP. This example assumes lwIP but is 10 | easy to modify for other TCP/IP stacks. 11 | 12 | To use this stream port, make sure that include/trcStreamingPort.h is found 13 | by the compiler (i.e., add this folder to your project's include paths) and 14 | add all included source files to your build. Make sure no other versions of 15 | trcStreamingPort.h are included by mistake! 16 | 17 | Note that lwIP is not included, but assumed to exist in the project already. 18 | 19 | See also http://percepio.com/2016/10/05/rtos-tracing. 20 | 21 | Percepio AB 22 | www.percepio.com -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | # These files are text and should be normalized (convert crlf to lf) 4 | *.rb text 5 | *.test text 6 | *.c text 7 | *.cpp text 8 | *.h text 9 | *.txt text 10 | *.yml text 11 | *.s79 text 12 | *.bat text 13 | *.xcl text 14 | *.inc text 15 | *.info text 16 | *.md text 17 | makefile text 18 | rakefile text 19 | 20 | 21 | #These files are binary and should not be normalized 22 | *.doc binary 23 | *.odt binary 24 | *.pdf binary 25 | *.ewd binary 26 | *.eww binary 27 | *.dni binary 28 | *.wsdt binary 29 | *.dbgdt binary 30 | *.mac binary 31 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/sandbox 3 | .DS_Store 4 | examples/example_1/test1.exe 5 | examples/example_1/test2.exe 6 | examples/example_2/all_tests.exe 7 | examples/example_1/test1.out 8 | examples/example_1/test2.out 9 | examples/example_2/all_tests.out 10 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | 3 | matrix: 4 | include: 5 | - os: osx 6 | compiler: clang 7 | osx_image: xcode7.3 8 | - os: linux 9 | dist: trusty 10 | compiler: gcc 11 | 12 | before_install: 13 | - if [ "$TRAVIS_OS_NAME" == "osx" ]; then rvm install 2.1 && rvm use 2.1 && ruby -v; fi 14 | - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install --assume-yes --quiet gcc-multilib; fi 15 | install: 16 | - gem install rspec 17 | - gem install rubocop 18 | script: 19 | - cd test && rake ci 20 | - make -s 21 | - make -s DEBUG=-m32 22 | - cd ../extras/fixture/test && rake ci 23 | - make -s default noStdlibMalloc 24 | - make -s C89 25 | - cd ../../../examples/example_1 && make -s ci 26 | - cd ../example_2 && make -s ci 27 | - cd ../example_3 && rake 28 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/auto/test_file_filter.rb: -------------------------------------------------------------------------------- 1 | # ========================================== 2 | # Unity Project - A Test Framework for C 3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 4 | # [Released under MIT License. Please refer to license.txt for details] 5 | # ========================================== 6 | 7 | require'yaml' 8 | 9 | module RakefileHelpers 10 | class TestFileFilter 11 | def initialize(all_files = false) 12 | @all_files = all_files 13 | 14 | return false unless @all_files 15 | return false unless File.exist?('test_file_filter.yml') 16 | 17 | filters = YAML.load_file('test_file_filter.yml') 18 | @all_files = filters[:all_files] 19 | @only_files = filters[:only_files] 20 | @exclude_files = filters[:exclude_files] 21 | end 22 | 23 | attr_accessor :all_files, :only_files, :exclude_files 24 | end 25 | end 26 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/auto/type_sanitizer.rb: -------------------------------------------------------------------------------- 1 | module TypeSanitizer 2 | def self.sanitize_c_identifier(unsanitized) 3 | # convert filename to valid C identifier by replacing invalid chars with '_' 4 | unsanitized.gsub(/[-\/\\\.\,\s]/, '_') 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/lib/third_party/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/docs/license.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_1/readme.txt: -------------------------------------------------------------------------------- 1 | Example 1 2 | ========= 3 | 4 | Close to the simplest possible example of Unity, using only basic features. 5 | Run make to build & run the example tests. -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_1/src/ProductionCode.c: -------------------------------------------------------------------------------- 1 | 2 | #include "ProductionCode.h" 3 | 4 | int Counter = 0; 5 | int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; /* some obnoxious array to search that is 1-based indexing instead of 0. */ 6 | 7 | /* This function is supposed to search through NumbersToFind and find a particular number. 8 | * If it finds it, the index is returned. Otherwise 0 is returned which sorta makes sense since 9 | * NumbersToFind is indexed from 1. Unfortunately it's broken 10 | * (and should therefore be caught by our tests) */ 11 | int FindFunction_WhichIsBroken(int NumberToFind) 12 | { 13 | int i = 0; 14 | while (i <= 8) /* Notice I should have been in braces */ 15 | i++; 16 | if (NumbersToFind[i] == NumberToFind) /* Yikes! I'm getting run after the loop finishes instead of during it! */ 17 | return i; 18 | return 0; 19 | } 20 | 21 | int FunctionWhichReturnsLocalVariable(void) 22 | { 23 | return Counter; 24 | } 25 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_1/src/ProductionCode.h: -------------------------------------------------------------------------------- 1 | 2 | int FindFunction_WhichIsBroken(int NumberToFind); 3 | int FunctionWhichReturnsLocalVariable(void); 4 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_1/src/ProductionCode2.c: -------------------------------------------------------------------------------- 1 | 2 | #include "ProductionCode2.h" 3 | 4 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction) 5 | { 6 | (void)Poor; 7 | (void)LittleFunction; 8 | /* Since There Are No Tests Yet, This Function Could Be Empty For All We Know. 9 | * Which isn't terribly useful... but at least we put in a TEST_IGNORE so we won't forget */ 10 | return (char*)0; 11 | } 12 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_1/src/ProductionCode2.h: -------------------------------------------------------------------------------- 1 | 2 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction); 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_1/test/TestProductionCode2.c: -------------------------------------------------------------------------------- 1 | 2 | #include "ProductionCode2.h" 3 | #include "unity.h" 4 | 5 | /* These should be ignored because they are commented out in various ways: 6 | #include "whatever.h" 7 | #include "somethingelse.h" 8 | */ 9 | 10 | void setUp(void) 11 | { 12 | } 13 | 14 | void tearDown(void) 15 | { 16 | } 17 | 18 | void test_IgnoredTest(void) 19 | { 20 | TEST_IGNORE_MESSAGE("This Test Was Ignored On Purpose"); 21 | } 22 | 23 | void test_AnotherIgnoredTest(void) 24 | { 25 | TEST_IGNORE_MESSAGE("These Can Be Useful For Leaving Yourself Notes On What You Need To Do Yet"); 26 | } 27 | 28 | void test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented(void) 29 | { 30 | TEST_IGNORE(); /* Like This */ 31 | } 32 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_2/readme.txt: -------------------------------------------------------------------------------- 1 | Example 2 2 | ========= 3 | 4 | Same as the first example, but now using Unity's test fixture to group tests 5 | together. Using the test fixture also makes writing test runners much easier. -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_2/src/ProductionCode.c: -------------------------------------------------------------------------------- 1 | 2 | #include "ProductionCode.h" 3 | 4 | int Counter = 0; 5 | int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; //some obnoxious array to search that is 1-based indexing instead of 0. 6 | 7 | // This function is supposed to search through NumbersToFind and find a particular number. 8 | // If it finds it, the index is returned. Otherwise 0 is returned which sorta makes sense since 9 | // NumbersToFind is indexed from 1. Unfortunately it's broken 10 | // (and should therefore be caught by our tests) 11 | int FindFunction_WhichIsBroken(int NumberToFind) 12 | { 13 | int i = 0; 14 | while (i <= 8) //Notice I should have been in braces 15 | i++; 16 | if (NumbersToFind[i] == NumberToFind) //Yikes! I'm getting run after the loop finishes instead of during it! 17 | return i; 18 | return 0; 19 | } 20 | 21 | int FunctionWhichReturnsLocalVariable(void) 22 | { 23 | return Counter; 24 | } 25 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_2/src/ProductionCode.h: -------------------------------------------------------------------------------- 1 | 2 | int FindFunction_WhichIsBroken(int NumberToFind); 3 | int FunctionWhichReturnsLocalVariable(void); 4 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_2/src/ProductionCode2.c: -------------------------------------------------------------------------------- 1 | 2 | #include "ProductionCode2.h" 3 | 4 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction) 5 | { 6 | (void)Poor; 7 | (void)LittleFunction; 8 | //Since There Are No Tests Yet, This Function Could Be Empty For All We Know. 9 | // Which isn't terribly useful... but at least we put in a TEST_IGNORE so we won't forget 10 | return (char*)0; 11 | } 12 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_2/src/ProductionCode2.h: -------------------------------------------------------------------------------- 1 | 2 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction); 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_2/test/TestProductionCode2.c: -------------------------------------------------------------------------------- 1 | #include "ProductionCode2.h" 2 | #include "unity.h" 3 | #include "unity_fixture.h" 4 | 5 | TEST_GROUP(ProductionCode2); 6 | 7 | /* These should be ignored because they are commented out in various ways: 8 | #include "whatever.h" 9 | */ 10 | //#include "somethingelse.h" 11 | 12 | TEST_SETUP(ProductionCode2) 13 | { 14 | } 15 | 16 | TEST_TEAR_DOWN(ProductionCode2) 17 | { 18 | } 19 | 20 | TEST(ProductionCode2, IgnoredTest) 21 | { 22 | TEST_IGNORE_MESSAGE("This Test Was Ignored On Purpose"); 23 | } 24 | 25 | TEST(ProductionCode2, AnotherIgnoredTest) 26 | { 27 | TEST_IGNORE_MESSAGE("These Can Be Useful For Leaving Yourself Notes On What You Need To Do Yet"); 28 | } 29 | 30 | TEST(ProductionCode2, ThisFunctionHasNotBeenTested_NeedsToBeImplemented) 31 | { 32 | TEST_IGNORE(); //Like This 33 | } 34 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "unity_fixture.h" 3 | 4 | TEST_GROUP_RUNNER(ProductionCode2) 5 | { 6 | RUN_TEST_CASE(ProductionCode2, IgnoredTest); 7 | RUN_TEST_CASE(ProductionCode2, AnotherIgnoredTest); 8 | RUN_TEST_CASE(ProductionCode2, ThisFunctionHasNotBeenTested_NeedsToBeImplemented); 9 | } -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "unity_fixture.h" 3 | 4 | TEST_GROUP_RUNNER(ProductionCode) 5 | { 6 | RUN_TEST_CASE(ProductionCode, FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode); 7 | RUN_TEST_CASE(ProductionCode, FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecauseOurFunctionUnderTestIsBroken); 8 | RUN_TEST_CASE(ProductionCode, FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValue); 9 | RUN_TEST_CASE(ProductionCode, FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValueAgain); 10 | RUN_TEST_CASE(ProductionCode, FunctionWhichReturnsLocalVariable_ShouldReturnCurrentCounter_ButFailsBecauseThisTestIsActuallyFlawed); 11 | } -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_2/test/test_runners/all_tests.c: -------------------------------------------------------------------------------- 1 | #include "unity_fixture.h" 2 | 3 | static void RunAllTests(void) 4 | { 5 | RUN_TEST_GROUP(ProductionCode); 6 | RUN_TEST_GROUP(ProductionCode2); 7 | } 8 | 9 | int main(int argc, const char * argv[]) 10 | { 11 | return UnityMain(argc, argv, RunAllTests); 12 | } 13 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_3/helper/UnityHelper.c: -------------------------------------------------------------------------------- 1 | #include "unity.h" 2 | #include "UnityHelper.h" 3 | #include 4 | #include 5 | 6 | void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line) 7 | { 8 | UNITY_TEST_ASSERT_EQUAL_INT(expected.x, actual.x, line, "Example Struct Failed For Field x"); 9 | UNITY_TEST_ASSERT_EQUAL_INT(expected.y, actual.y, line, "Example Struct Failed For Field y"); 10 | } 11 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_3/helper/UnityHelper.h: -------------------------------------------------------------------------------- 1 | #ifndef _TESTHELPER_H 2 | #define _TESTHELPER_H 3 | 4 | #include "Types.h" 5 | 6 | void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line); 7 | 8 | #define UNITY_TEST_ASSERT_EQUAL_EXAMPLE_STRUCT_T(expected, actual, line, message) AssertEqualExampleStruct(expected, actual, line); 9 | 10 | #define TEST_ASSERT_EQUAL_EXAMPLE_STRUCT_T(expected, actual) UNITY_TEST_ASSERT_EQUAL_EXAMPLE_STRUCT_T(expected, actual, __LINE__, NULL); 11 | 12 | #endif // _TESTHELPER_H 13 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_3/rakefile.rb: -------------------------------------------------------------------------------- 1 | HERE = File.expand_path(File.dirname(__FILE__)) + '/' 2 | UNITY_ROOT = File.expand_path(File.dirname(__FILE__)) + '/../..' 3 | 4 | require 'rake' 5 | require 'rake/clean' 6 | require HERE + 'rakefile_helper' 7 | 8 | TEMP_DIRS = [ 9 | File.join(HERE, 'build') 10 | ].freeze 11 | 12 | TEMP_DIRS.each do |dir| 13 | directory(dir) 14 | CLOBBER.include(dir) 15 | end 16 | 17 | task prepare_for_tests: TEMP_DIRS 18 | 19 | include RakefileHelpers 20 | 21 | # Load default configuration, for now 22 | DEFAULT_CONFIG_FILE = 'target_gcc_32.yml'.freeze 23 | configure_toolchain(DEFAULT_CONFIG_FILE) 24 | 25 | task unit: [:prepare_for_tests] do 26 | run_tests unit_test_files 27 | end 28 | 29 | desc 'Generate test summary' 30 | task :summary do 31 | report_summary 32 | end 33 | 34 | desc 'Build and test Unity' 35 | task all: %i(clean unit summary) 36 | task default: %i(clobber all) 37 | task ci: [:default] 38 | task cruise: [:default] 39 | 40 | desc 'Load configuration' 41 | task :config, :config_file do |_t, args| 42 | configure_toolchain(args[:config_file]) 43 | end 44 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_3/readme.txt: -------------------------------------------------------------------------------- 1 | Example 3 2 | ========= 3 | 4 | This example project gives an example of some passing, ignored, and failing tests. 5 | It's simple and meant for you to look over and get an idea for what all of this stuff does. 6 | 7 | You can build and test using rake. The rake version will let you test with gcc or a couple 8 | versions of IAR. You can tweak the yaml files to get those versions running. 9 | 10 | Ruby is required if you're using the rake version (obviously). This version shows off most of 11 | Unity's advanced features (automatically creating test runners, fancy summaries, etc.) 12 | Without ruby, you have to maintain your own test runners. Do that for a while and you'll learn 13 | why you really want to start using the Ruby tools. 14 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_3/src/ProductionCode.c: -------------------------------------------------------------------------------- 1 | 2 | #include "ProductionCode.h" 3 | 4 | int Counter = 0; 5 | int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; //some obnoxious array to search that is 1-based indexing instead of 0. 6 | 7 | // This function is supposed to search through NumbersToFind and find a particular number. 8 | // If it finds it, the index is returned. Otherwise 0 is returned which sorta makes sense since 9 | // NumbersToFind is indexed from 1. Unfortunately it's broken 10 | // (and should therefore be caught by our tests) 11 | int FindFunction_WhichIsBroken(int NumberToFind) 12 | { 13 | int i = 0; 14 | while (i <= 8) //Notice I should have been in braces 15 | i++; 16 | if (NumbersToFind[i] == NumberToFind) //Yikes! I'm getting run after the loop finishes instead of during it! 17 | return i; 18 | return 0; 19 | } 20 | 21 | int FunctionWhichReturnsLocalVariable(void) 22 | { 23 | return Counter; 24 | } 25 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_3/src/ProductionCode.h: -------------------------------------------------------------------------------- 1 | 2 | int FindFunction_WhichIsBroken(int NumberToFind); 3 | int FunctionWhichReturnsLocalVariable(void); 4 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_3/src/ProductionCode2.c: -------------------------------------------------------------------------------- 1 | 2 | #include "ProductionCode2.h" 3 | 4 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction) 5 | { 6 | (void)Poor; 7 | (void)LittleFunction; 8 | //Since There Are No Tests Yet, This Function Could Be Empty For All We Know. 9 | // Which isn't terribly useful... but at least we put in a TEST_IGNORE so we won't forget 10 | return (char*)0; 11 | } 12 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_3/src/ProductionCode2.h: -------------------------------------------------------------------------------- 1 | 2 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction); 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_3/target_gcc_32.yml: -------------------------------------------------------------------------------- 1 | # Copied from ~Unity/targets/gcc_32.yml 2 | unity_root: &unity_root '../..' 3 | compiler: 4 | path: gcc 5 | source_path: 'src/' 6 | unit_tests_path: &unit_tests_path 'test/' 7 | build_path: &build_path 'build/' 8 | options: 9 | - '-c' 10 | - '-m32' 11 | - '-Wall' 12 | - '-Wno-address' 13 | - '-std=c99' 14 | - '-pedantic' 15 | includes: 16 | prefix: '-I' 17 | items: 18 | - 'src/' 19 | - '../../src/' 20 | - *unit_tests_path 21 | defines: 22 | prefix: '-D' 23 | items: 24 | - UNITY_INCLUDE_DOUBLE 25 | - UNITY_SUPPORT_TEST_CASES 26 | object_files: 27 | prefix: '-o' 28 | extension: '.o' 29 | destination: *build_path 30 | linker: 31 | path: gcc 32 | options: 33 | - -lm 34 | - '-m32' 35 | includes: 36 | prefix: '-I' 37 | object_files: 38 | path: *build_path 39 | extension: '.o' 40 | bin_files: 41 | prefix: '-o' 42 | extension: '.exe' 43 | destination: *build_path 44 | colour: true 45 | :unity: 46 | :plugins: [] 47 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/examples/example_3/test/TestProductionCode2.c: -------------------------------------------------------------------------------- 1 | 2 | #include "ProductionCode2.h" 3 | #include "unity.h" 4 | 5 | /* These should be ignored because they are commented out in various ways: 6 | #include "whatever.h" 7 | */ 8 | //#include "somethingelse.h" 9 | 10 | void setUp(void) 11 | { 12 | } 13 | 14 | void tearDown(void) 15 | { 16 | } 17 | 18 | void test_IgnoredTest(void) 19 | { 20 | TEST_IGNORE_MESSAGE("This Test Was Ignored On Purpose"); 21 | } 22 | 23 | void test_AnotherIgnoredTest(void) 24 | { 25 | TEST_IGNORE_MESSAGE("These Can Be Useful For Leaving Yourself Notes On What You Need To Do Yet"); 26 | } 27 | 28 | void test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented(void) 29 | { 30 | TEST_IGNORE(); //Like This 31 | } 32 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/extras/eclipse/error_parsers.txt: -------------------------------------------------------------------------------- 1 | Eclipse error parsers 2 | ===================== 3 | 4 | These are a godsend for extracting & quickly navigating to 5 | warnings & error messages from console output. Unforunately 6 | I don't know how to write an Eclipse plugin so you'll have 7 | to add them manually. 8 | 9 | To add a console parser to Eclipse, go to Window --> Preferences 10 | --> C/C++ --> Build --> Settings. Click on the 'Error Parsers' 11 | tab and then click the 'Add...' button. See the table below for 12 | the parser fields to add. 13 | 14 | Eclipse will only parse the console output during a build, so 15 | running your unit tests must be part of your build process. 16 | Either add this to your make/rakefile, or add it as a post- 17 | build step in your Eclipse project settings. 18 | 19 | 20 | Unity unit test error parsers 21 | ----------------------------- 22 | Severity Pattern File Line Description 23 | ------------------------------------------------------------------------------- 24 | Error (\.+)(.*?):(\d+):(.*?):FAIL: (.*) $2 $3 $5 25 | Warning (\.+)(.*?):(\d+):(.*?):IGNORE: (.*) $2 $3 $5 26 | Warning (\.+)(.*?):(\d+):(.*?):IGNORE\s*$ $2 $3 Ignored test 27 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/extras/fixture/rakefile.rb: -------------------------------------------------------------------------------- 1 | # ========================================== 2 | # Unity Project - A Test Framework for C 3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 4 | # [Released under MIT License. Please refer to license.txt for details] 5 | # ========================================== 6 | 7 | HERE = File.expand_path(File.dirname(__FILE__)) + '/' 8 | 9 | require 'rake' 10 | require 'rake/clean' 11 | require 'rake/testtask' 12 | require HERE + 'rakefile_helper' 13 | 14 | TEMP_DIRS = [ 15 | File.join(HERE, 'build') 16 | ].freeze 17 | 18 | TEMP_DIRS.each do |dir| 19 | directory(dir) 20 | CLOBBER.include(dir) 21 | end 22 | 23 | task prepare_for_tests: TEMP_DIRS 24 | 25 | include RakefileHelpers 26 | 27 | # Load default configuration, for now 28 | DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'.freeze 29 | configure_toolchain(DEFAULT_CONFIG_FILE) 30 | 31 | task unit: [:prepare_for_tests] do 32 | run_tests 33 | end 34 | 35 | desc 'Build and test Unity Framework' 36 | task all: %i(clean unit) 37 | task default: %i(clobber all) 38 | task ci: %i(no_color default) 39 | task cruise: %i(no_color default) 40 | 41 | desc 'Load configuration' 42 | task :config, :config_file do |_t, args| 43 | configure_toolchain(args[:config_file]) 44 | end 45 | 46 | task :no_color do 47 | $colour_output = false 48 | end 49 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/extras/fixture/readme.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 James Grenning and Contributed to Unity Project 2 | 3 | Unity Project - A Test Framework for C 4 | Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 5 | [Released under MIT License. Please refer to license.txt for details] 6 | 7 | This Framework is an optional add-on to Unity. By including unity_framework.h in place of unity.h, 8 | you may now work with Unity in a manner similar to CppUTest. This framework adds the concepts of 9 | test groups and gives finer control of your tests over the command line. -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/extras/fixture/test/main/AllTests.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 James Grenning and Contributed to Unity Project 2 | * ========================================== 3 | * Unity Project - A Test Framework for C 4 | * Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 5 | * [Released under MIT License. Please refer to license.txt for details] 6 | * ========================================== */ 7 | 8 | #include "unity_fixture.h" 9 | 10 | static void runAllTests(void) 11 | { 12 | RUN_TEST_GROUP(UnityFixture); 13 | RUN_TEST_GROUP(UnityCommandOptions); 14 | RUN_TEST_GROUP(LeakDetection); 15 | RUN_TEST_GROUP(InternalMalloc); 16 | } 17 | 18 | int main(int argc, const char* argv[]) 19 | { 20 | return UnityMain(argc, argv, runAllTests); 21 | } 22 | 23 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/extras/fixture/test/template_fixture_tests.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 James Grenning and Contributed to Unity Project 2 | * ========================================== 3 | * Unity Project - A Test Framework for C 4 | * Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 5 | * [Released under MIT License. Please refer to license.txt for details] 6 | * ========================================== */ 7 | 8 | #include "unity_fixture.h" 9 | 10 | static int data = -1; 11 | 12 | TEST_GROUP(mygroup); 13 | 14 | TEST_SETUP(mygroup) 15 | { 16 | data = 0; 17 | } 18 | 19 | TEST_TEAR_DOWN(mygroup) 20 | { 21 | data = -1; 22 | } 23 | 24 | TEST(mygroup, test1) 25 | { 26 | TEST_ASSERT_EQUAL_INT(0, data); 27 | } 28 | 29 | TEST(mygroup, test2) 30 | { 31 | TEST_ASSERT_EQUAL_INT(0, data); 32 | data = 5; 33 | } 34 | 35 | TEST(mygroup, test3) 36 | { 37 | data = 7; 38 | TEST_ASSERT_EQUAL_INT(7, data); 39 | } 40 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/extras/fixture/test/unity_output_Spy.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 James Grenning and Contributed to Unity Project 2 | * ========================================== 3 | * Unity Project - A Test Framework for C 4 | * Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 5 | * [Released under MIT License. Please refer to license.txt for details] 6 | * ========================================== */ 7 | 8 | #ifndef D_unity_output_Spy_H 9 | #define D_unity_output_Spy_H 10 | 11 | void UnityOutputCharSpy_Create(int s); 12 | void UnityOutputCharSpy_Destroy(void); 13 | void UnityOutputCharSpy_OutputChar(int c); 14 | const char * UnityOutputCharSpy_Get(void); 15 | void UnityOutputCharSpy_Enable(int enable); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/release/build.info: -------------------------------------------------------------------------------- 1 | 121 2 | 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/release/version.info: -------------------------------------------------------------------------------- 1 | 2.4.2 2 | 3 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/test/expectdata/testsample_head1.h: -------------------------------------------------------------------------------- 1 | /* AUTOGENERATED FILE. DO NOT EDIT. */ 2 | #ifndef _TESTSAMPLE_HEAD1_H 3 | #define _TESTSAMPLE_HEAD1_H 4 | 5 | #include "unity.h" 6 | #include "funky.h" 7 | #include "stanky.h" 8 | #include 9 | 10 | void test_TheFirstThingToTest(void); 11 | void test_TheSecondThingToTest(void); 12 | void test_TheThirdThingToTest(void); 13 | void test_TheFourthThingToTest(void); 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/test/expectdata/testsample_mock_head1.h: -------------------------------------------------------------------------------- 1 | /* AUTOGENERATED FILE. DO NOT EDIT. */ 2 | #ifndef _TESTSAMPLE_MOCK_HEAD1_H 3 | #define _TESTSAMPLE_MOCK_HEAD1_H 4 | 5 | #include "unity.h" 6 | #include "cmock.h" 7 | #include "funky.h" 8 | #include 9 | 10 | void test_TheFirstThingToTest(void); 11 | void test_TheSecondThingToTest(void); 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/test/targets/gcc_32.yml: -------------------------------------------------------------------------------- 1 | compiler: 2 | path: gcc 3 | source_path: '../src/' 4 | unit_tests_path: &unit_tests_path 'tests/' 5 | build_path: &build_path 'build/' 6 | options: 7 | - '-c' 8 | - '-m32' 9 | - '-Wall' 10 | - '-Wno-address' 11 | - '-std=c99' 12 | - '-pedantic' 13 | includes: 14 | prefix: '-I' 15 | items: 16 | - 'src/' 17 | - '../src/' 18 | - 'testdata/' 19 | - *unit_tests_path 20 | defines: 21 | prefix: '-D' 22 | items: 23 | - UNITY_EXCLUDE_STDINT_H 24 | - UNITY_EXCLUDE_LIMITS_H 25 | - UNITY_INCLUDE_DOUBLE 26 | - UNITY_SUPPORT_TEST_CASES 27 | - UNITY_INT_WIDTH=32 28 | - UNITY_LONG_WIDTH=32 29 | object_files: 30 | prefix: '-o' 31 | extension: '.o' 32 | destination: *build_path 33 | linker: 34 | path: gcc 35 | options: 36 | - -lm 37 | - '-m32' 38 | includes: 39 | prefix: '-I' 40 | object_files: 41 | path: *build_path 42 | extension: '.o' 43 | bin_files: 44 | prefix: '-o' 45 | extension: '.exe' 46 | destination: *build_path 47 | colour: true 48 | :unity: 49 | :plugins: [] 50 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/test/targets/gcc_64.yml: -------------------------------------------------------------------------------- 1 | compiler: 2 | path: gcc 3 | source_path: '../src/' 4 | unit_tests_path: &unit_tests_path 'tests/' 5 | build_path: &build_path 'build/' 6 | options: 7 | - '-c' 8 | - '-m64' 9 | - '-Wall' 10 | - '-Wno-address' 11 | - '-std=c99' 12 | - '-pedantic' 13 | includes: 14 | prefix: '-I' 15 | items: 16 | - 'src/' 17 | - '../src/' 18 | - 'testdata/' 19 | - *unit_tests_path 20 | defines: 21 | prefix: '-D' 22 | items: 23 | - UNITY_EXCLUDE_STDINT_H 24 | - UNITY_EXCLUDE_LIMITS_H 25 | - UNITY_INCLUDE_DOUBLE 26 | - UNITY_SUPPORT_TEST_CASES 27 | - UNITY_SUPPORT_64 28 | - UNITY_INT_WIDTH=32 29 | - UNITY_LONG_WIDTH=64 30 | object_files: 31 | prefix: '-o' 32 | extension: '.o' 33 | destination: *build_path 34 | linker: 35 | path: gcc 36 | options: 37 | - -lm 38 | - '-m64' 39 | includes: 40 | prefix: '-I' 41 | object_files: 42 | path: *build_path 43 | extension: '.o' 44 | bin_files: 45 | prefix: '-o' 46 | extension: '.exe' 47 | destination: *build_path 48 | colour: true 49 | :unity: 50 | :plugins: [] 51 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/test/targets/gcc_auto_limits.yml: -------------------------------------------------------------------------------- 1 | compiler: 2 | path: gcc 3 | source_path: '../src/' 4 | unit_tests_path: &unit_tests_path 'tests/' 5 | build_path: &build_path 'build/' 6 | options: 7 | - '-c' 8 | - '-m64' 9 | - '-Wall' 10 | - '-Wno-address' 11 | - '-std=c99' 12 | - '-pedantic' 13 | includes: 14 | prefix: '-I' 15 | items: 16 | - 'src/' 17 | - '../src/' 18 | - 'testdata/' 19 | - *unit_tests_path 20 | defines: 21 | prefix: '-D' 22 | items: 23 | - UNITY_EXCLUDE_STDINT_H 24 | - UNITY_INCLUDE_DOUBLE 25 | - UNITY_SUPPORT_TEST_CASES 26 | - UNITY_SUPPORT_64 27 | object_files: 28 | prefix: '-o' 29 | extension: '.o' 30 | destination: *build_path 31 | linker: 32 | path: gcc 33 | options: 34 | - -lm 35 | - '-m64' 36 | includes: 37 | prefix: '-I' 38 | object_files: 39 | path: *build_path 40 | extension: '.o' 41 | bin_files: 42 | prefix: '-o' 43 | extension: '.exe' 44 | destination: *build_path 45 | colour: true 46 | :unity: 47 | :plugins: [] 48 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/test/targets/gcc_manual_math.yml: -------------------------------------------------------------------------------- 1 | compiler: 2 | path: gcc 3 | source_path: '../src/' 4 | unit_tests_path: &unit_tests_path 'tests/' 5 | build_path: &build_path 'build/' 6 | options: 7 | - '-c' 8 | - '-m64' 9 | - '-Wall' 10 | - '-Wno-address' 11 | - '-std=c99' 12 | - '-pedantic' 13 | includes: 14 | prefix: '-I' 15 | items: 16 | - 'src/' 17 | - '../src/' 18 | - 'testdata/' 19 | - *unit_tests_path 20 | defines: 21 | prefix: '-D' 22 | items: 23 | - UNITY_EXCLUDE_MATH_H 24 | - UNITY_INCLUDE_DOUBLE 25 | - UNITY_SUPPORT_TEST_CASES 26 | - UNITY_SUPPORT_64 27 | object_files: 28 | prefix: '-o' 29 | extension: '.o' 30 | destination: *build_path 31 | linker: 32 | path: gcc 33 | options: 34 | - -lm 35 | - '-m64' 36 | includes: 37 | prefix: '-I' 38 | object_files: 39 | path: *build_path 40 | extension: '.o' 41 | bin_files: 42 | prefix: '-o' 43 | extension: '.exe' 44 | destination: *build_path 45 | colour: true 46 | :unity: 47 | :plugins: [] 48 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/test/testdata/CException.h: -------------------------------------------------------------------------------- 1 | #ifndef CEXCEPTION_H 2 | #define CEXCEPTION_H 3 | 4 | #define CEXCEPTION_BEING_USED 1 5 | 6 | #define CEXCEPTION_NONE 0 7 | #define CEXCEPTION_T int e = 1; (void) 8 | #define Try if (e) 9 | #define Catch(a) if (!a) 10 | 11 | #endif //CEXCEPTION_H 12 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/test/testdata/Defs.h: -------------------------------------------------------------------------------- 1 | #ifndef DEF_H 2 | #define DEF_H 3 | 4 | #define EXTERN_DECL 5 | 6 | extern int CounterSuiteSetup; 7 | 8 | #endif //DEF_H 9 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/test/testdata/cmock.h: -------------------------------------------------------------------------------- 1 | #ifndef CMOCK_H 2 | #define CMOCK_H 3 | 4 | int CMockMemFreeFinalCounter = 0; 5 | int mockMock_Init_Counter = 0; 6 | int mockMock_Verify_Counter = 0; 7 | int mockMock_Destroy_Counter = 0; 8 | 9 | void CMock_Guts_MemFreeFinal(void) { CMockMemFreeFinalCounter++; } 10 | void mockMock_Init(void) { mockMock_Init_Counter++; } 11 | void mockMock_Verify(void) { mockMock_Verify_Counter++; } 12 | void mockMock_Destroy(void) { mockMock_Destroy_Counter++; } 13 | 14 | #endif //CMOCK_H 15 | -------------------------------------------------------------------------------- /zynq7k_demo/lib/third_party/unity/test/testdata/mockMock.h: -------------------------------------------------------------------------------- 1 | #ifndef MOCK_MOCK_H 2 | #define MOCK_MOCK_H 3 | 4 | extern int mockMock_Init_Counter; 5 | extern int mockMock_Verify_Counter; 6 | extern int mockMock_Destroy_Counter; 7 | extern int CMockMemFreeFinalCounter; 8 | 9 | void mockMock_Init(void); 10 | void mockMock_Verify(void); 11 | void mockMock_Destroy(void); 12 | 13 | #endif //MOCK_MOCK_H 14 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/AFQP Developer Guide - Board Qualification Errata.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/AFQP Developer Guide - Board Qualification Errata.pdf -------------------------------------------------------------------------------- /zynq7k_demo/tests/Amazon FreeRTOS Qualification Program Developer Guide.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/Amazon FreeRTOS Qualification Program Developer Guide.pdf -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/describeStreamResponse.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/describeStreamResponse.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/ecdsa-sha256-signer.crt.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBXDCCAQOgAwIBAgIJAPMhJT8l0C6AMAoGCCqGSM49BAMCMCExHzAdBgNVBAMM 3 | FnRlc3Rfc2lnbmVyQGFtYXpvbi5jb20wHhcNMTgwNjI3MjAwNDQyWhcNMTkwNjI3 4 | MjAwNDQyWjAhMR8wHQYDVQQDDBZ0ZXN0X3NpZ25lckBhbWF6b24uY29tMFkwEwYH 5 | KoZIzj0CAQYIKoZIzj0DAQcDQgAEyza/tGLVbVxhL41iYtC8D6tGEvAHu498gNtq 6 | DtPsKaoR3t5xQx+6zdWiCi32fgFT2vkeVAmX3pf/Gl8nIP48ZqMkMCIwCwYDVR0P 7 | BAQDAgeAMBMGA1UdJQQMMAoGCCsGAQUFBwMDMAoGCCqGSM49BAMCA0cAMEQCIDkf 8 | 83Oq8sOXhSyJCWAN63gc4vp9//RFCXh/hUXPYcTWAiBgmQ5JV2MZH01Upi2lMflN 9 | YLbC+lYscwcSlB2tECUbJA== 10 | -----END CERTIFICATE----- 11 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/ecdsa-sha256-signer.key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgbSN6VQs+XiLbUR+J 3 | dLDPuxcyNCaDAuhZ3/cpkGL2C0ahRANCAATLNr+0YtVtXGEvjWJi0LwPq0YS8Ae7 4 | j3yA22oO0+wpqhHe3nFDH7rN1aIKLfZ+AVPa+R5UCZfel/8aXycg/jxm 5 | -----END PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_0.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_0.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_1.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_1.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_10.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_10.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_11.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_11.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_12.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_12.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_13.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_13.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_14.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_14.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_15.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_15.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_2.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_2.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_3.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_3.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_4.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_4.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_5.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_5.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_6.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_6.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_7.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_7.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_8.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_8.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/getStreamResponse_9.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/getStreamResponse_9.cbor -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/payload.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rpcme/aws-cloud-and-xilinx-workshop/a85d16f20ebfd0d3e8a33e1dfe351be6596ed464/zynq7k_demo/tests/common/ota/test_files/payload.bin -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/rsa-sha1-signer.crt.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDPDCCAiSgAwIBAgIBATANBgkqhkiG9w0BAQUFADB8MQswCQYDVQQGEwJJTDEP 3 | MA0GA1UECAwGU2hhcm9uMRAwDgYDVQQHDAdSYWFuYW5hMR8wHQYDVQQKDBZUZXhh 4 | cyBJbnN0cnVtZW50cyBJbmMuMQwwCgYDVQQLDANSTkQxGzAZBgNVBAMMEmR1bW15 5 | LXJvb3QtY2EtY2VydDAeFw0xODA2MjcxOTI4NTNaFw0xOTA2MjcxOTI4NTNaMCEx 6 | HzAdBgNVBAMMFnRlc3Rfc2lnbmVyQGFtYXpvbi5jb20wggEiMA0GCSqGSIb3DQEB 7 | AQUAA4IBDwAwggEKAoIBAQC5craIexo46oq3OTj+3fLz17MCtw/icXku8sJ16el0 8 | 29Cibq4u8bdJeDnGlc42UySw0UlodWnzd5I52tXoXcQZs++m6uQ3JvvRHFXpNuV6 9 | Cyo//AdQ2MoqdKK8/pZqu4X71/xXHcIMBb3kS1RSkunJB65mPuPOfjcem6IXDtRk 10 | E346aN6wMfeIlmwOoFK4RBoWse459ELB5aq0tSwUmHv7UcyHYQf4Cxkz5HjWfx0y 11 | NYKCR4tPoudjg8E9R6uqik7DFlqrijNW2XdXS67d/cVToDJFn1SnYcHStARAoZUK 12 | gP0JwXTapO31QThi9q+q63FETBcnEQ29rfmeN1/pBOI/AgMBAAGjJDAiMAsGA1Ud 13 | DwQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzANBgkqhkiG9w0BAQUFAAOCAQEA 14 | W29xvDV66B7NYAOSqXIG11JH+Pk2GFzZl5gNehkcDPPMHumBRNHHZqVAO4mah3Ej 15 | StqWmTXnIs5YKX9Ro7ch3NfKHMt4/JFvR7v9VolVIVwZZB+AQU1BD8OAGlHNEq28 16 | TbOdkpdv9Q69W4TVsqXAkVhONekLkEJQTZyhW7db28nb/LizftfN4ps+uuE2Xl9c 17 | YHmgWb/xqi9NIcsyQL08urJVCnyGuLQgj+GfitELFsCfc3ohhacNENsXupRIOz08 18 | NCa9WuCyk5uwoo6mn6JIErBMLqLTBcs82vq9d7WIFHf4QpgTs2FuelY/Hyw7HRFo 19 | Ml3tXnR4B4lqeJy/BP6/GA== 20 | -----END CERTIFICATE----- 21 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/rsa-sha256-signer.crt.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIC6TCCAdGgAwIBAgIJAJmG5mbNWlukMA0GCSqGSIb3DQEBCwUAMCExHzAdBgNV 3 | BAMMFnRlc3Rfc2lnbmVyQGFtYXpvbi5jb20wHhcNMTgwNjI3MjAwMDIyWhcNMTkw 4 | NjI3MjAwMDIyWjAhMR8wHQYDVQQDDBZ0ZXN0X3NpZ25lckBhbWF6b24uY29tMIIB 5 | IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt8SVb/B4pRHAsxtK5Xcm1iBK 6 | BIpiUc/ovUPzhGVlvkeZJfV2hrHc8PJx+XMyxp/MQGI1nr0AfHKkmAbisfU15/ta 7 | foY1D9Skomlp+QKCK4UvJCKRl/vgdgKtZ6+vEls4tguBmt0pwQsEhNP2TDUA47uq 8 | n7wcvgEwrrDLa9cmP7bfxRbVTWCKdchllOnRgLc05lQpRGxyMaB8zsgmx27AJlJI 9 | rXFmnSiOKKGo6Di9/UQTLTzC+t6YfajMSpq+Fe+td7hv/vSsZT+5yLSpJDwmHTp5 10 | 66AljEEv0vfcJ72dStacEoOKM/qX4dfQfQOF3nyeP6ofgakc+zEjncQPCoCLUQID 11 | AQABoyQwIjALBgNVHQ8EBAMCB4AwEwYDVR0lBAwwCgYIKwYBBQUHAwMwDQYJKoZI 12 | hvcNAQELBQADggEBAHjgDAj+U4SpHIaxfvKuNxxPiGnyUSWyXS2h5HiPixL85psS 13 | k5hvbZaFJwRICSX1dU9EAf2sQN+s2MCLKPnm8vzKWLkyEUzWScr7C/mVXw8cEmdI 14 | rd3uzsN4IThHxHiwhPXu2IjjoIjSXLHcTKyZR2uHaifXbVEEwmUimg/49of02eIa 15 | ouLySI/+zcLgNFtTklRdSUxxGVK9y47ufiVb+sErzfDBpYx7CwZg0d+wPgfbuYE2 16 | 8GMrCwFUbsFGMvhscPwG51rFLNonWh+ThZIwHrBwnVXmsDXayBlr6wCA50zGfBQb 17 | SXVRXIv/SKpj1k1slnf9IJLfArH6F0Ctjcef/Aw= 18 | -----END CERTIFICATE----- 19 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/common/ota/test_files/rsasigner.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIC6TCCAdGgAwIBAgIJAOqQJdWUFnoVMA0GCSqGSIb3DQEBBQUAMCExHzAdBgNV 3 | BAMMFnRlc3Rfc2lnbmVyQGFtYXpvbi5jb20wHhcNMTcxMTAzMjI0MDA0WhcNMTgx 4 | MTAzMjI0MDA0WjAhMR8wHQYDVQQDDBZ0ZXN0X3NpZ25lckBhbWF6b24uY29tMIIB 5 | IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArgCfxgXBykjdm+MBFg9O0IDj 6 | wCWDYMXtzA6A/kXIL7W6LuokKPZizJlV2NrZTdwqTfAx8W35F2hEBw2FYZwJn8SN 7 | Sdk3XPGYeiM8EnnmEY/ljlPjMcx9wBghhuVb1Lau2J0kG4U9vDDqTO/4cT0FtCN1 8 | 9KRbyBjz2C3rEmCID8qAAfr9c1HUuhwJTfIuMzqu3urSLsbnSaGRW0nvPEWhnIQw 9 | PuzsGITvjjqpZA7W64qgM4DITPtEZs4lgBUVbrivrkSZk9hjPk1qjHRJSWrbuJTA 10 | pPV5rdH4chkXd+q5PxECajF1FgPaRFWmz5kTZululNKJcBFFig0WHbZ4hTjQ4wID 11 | AQABoyQwIjALBgNVHQ8EBAMCB4AwEwYDVR0lBAwwCgYIKwYBBQUHAwMwDQYJKoZI 12 | hvcNAQEFBQADggEBAGI70SXBSoUYsbMHrtFd5kzCxHaB6l8sdjSZxrc6Yjy3pJcG 13 | chhv4zjuK4IW0jWk12O73ewWbLjkvCvgsw53SvNQ/L70H4PM5fDhFmpshNaT13Wg 14 | FZyPpaNxxTB/xSZbnCHR63JCOcDgQSv3MyVP2FSvkv4mKSxKxhE1Nwk4e3ZF4eY9 15 | gQnHGq5VLJyVmLZflyvfxGPaRMl8yEXZb7C3wpT30vSQjRHEFicmHHV0tBv8lqyC 16 | Rv5ibQWUlYyk4A5L8Z8HVAi7eRcjalEvHY2JnmDcmlSYDRej9ux8CwSFBC/FzU11 17 | G1nWaPLiijwD+M3Ys54b9uBFcmAYNl92hNJQG1E= 18 | -----END CERTIFICATE----- 19 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/.gitignore: -------------------------------------------------------------------------------- 1 | Packages -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/common/application_code/xilinx_code/hr_gettime.c: -------------------------------------------------------------------------------- 1 | /* Scheduler includes. */ 2 | #include "FreeRTOS.h" 3 | 4 | /* Xilinx includes. */ 5 | #include "xparameters.h" 6 | #include "xtime_l.h" 7 | #include "xscugic.h" 8 | 9 | 10 | //#define XPAR_CPU_CORTEXA9_0_CPU_CLK_FREQ_HZ 666666687 11 | // 12 | ///* Global Timer is always clocked at half of the CPU frequency */ 13 | #define COUNTS_PER_USECOND ( XPAR_CPU_CORTEXA9_CORE_CLOCK_FREQ_HZ / ( 2 * 1000000 ) ) 14 | // 666666687 / (2*1000000) = 333.3333435 15 | 16 | 17 | void init_timer( int xTimer ) 18 | { 19 | ( void ) xTimer; 20 | } 21 | 22 | unsigned long long ullGetHighResolutionTime( void ) 23 | { 24 | XTime tCur; 25 | 26 | XTime_GetTime( &tCur ); 27 | tCur /= COUNTS_PER_USECOND; 28 | 29 | return tCur; 30 | } 31 | 32 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/common/application_code/xilinx_code/hr_gettime.h: -------------------------------------------------------------------------------- 1 | #ifndef HR_GETTIME_H 2 | 3 | #define HR_GETTIME_H 4 | 5 | void init_timer( int xTimer ); 6 | 7 | /* Start-up the high-resolution timer. */ 8 | void vStartHighResolutionTimer( void ); 9 | 10 | /* Get the current time measured in uS. */ 11 | unsigned long long ullGetHighResolutionTime( void ); 12 | 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/common/application_code/xilinx_code/platform_config.h: -------------------------------------------------------------------------------- 1 | #ifndef __PLATFORM_CONFIG_H_ 2 | #define __PLATFORM_CONFIG_H_ 3 | 4 | #define STDOUT_IS_PS7_UART 5 | #define UART_DEVICE_ID 0 6 | #endif 7 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/common/application_code/xilinx_code/uncached_memory.h: -------------------------------------------------------------------------------- 1 | /* 2 | * uncached_memory.h 3 | * 4 | * This module will declare 1 MB of memory and switch off the caching for it. 5 | * 6 | * pucGetUncachedMemory( ulSize ) returns a trunc of this memory with a length 7 | * rounded up to a multiple of 4 KB 8 | * 9 | * ucIsCachedMemory( pucBuffer ) returns non-zero if a given pointer is NOT 10 | * within the range of the 1 MB non-cached memory. 11 | * 12 | */ 13 | 14 | #ifndef UNCACHEMEMORY_H 15 | 16 | #define UNCACHEMEMORY_H 17 | 18 | uint8_t *pucGetUncachedMemory( uint32_t ulSize ); 19 | 20 | uint8_t ucIsCachedMemory( const uint8_t *pucBuffer ); 21 | 22 | #endif /* UNCACHEMEMORY_H */ 23 | 24 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/xsdk/.gitignore: -------------------------------------------------------------------------------- 1 | SDK.log 2 | .metadata 3 | RemoteSystemsTempFiles 4 | .sdk -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/xsdk/README.md: -------------------------------------------------------------------------------- 1 | ## File Information 2 | 3 | ### reset.tcl 4 | * This file is used to send commands to xsct to connect to the Microzed development board through JTAG and reset and run 5 | the current application that is in flash. 6 | * Run command: 7 | ```xsct reset.tcl``` 8 | 9 | ### aws_tests/bootimage/aws_tests.bif 10 | * Used to create BOOT.bin for booting and running the aws_tests application on the Microzed development board from flash. 11 | * We create BOOT.bin with the current working directory as the AFR_ROOT with the commands: 12 | ```bootgen -image tests/xilinx/microzed/xsdk/aws_tests.bif -o i tests/xilinx/microzed/xsdk/BOOT.bin``` 13 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/xsdk/aws_tests.bif: -------------------------------------------------------------------------------- 1 | //arch = zynq; split = false; format = BIN 2 | the_ROM_image: 3 | { 4 | [bootloader]lib/third_party/mcu_vendor/xilinx/fsbl/Debug/fsbl.elf 5 | tests/xilinx/microzed/xsdk/aws_tests/Debug/aws_tests.elf 6 | } -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/xsdk/aws_tests/.gitignore: -------------------------------------------------------------------------------- 1 | Debug -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/xsdk/aws_tests/src/README.txt: -------------------------------------------------------------------------------- 1 | Empty application. Add your own sources. 2 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/xsdk/aws_tests/src/Xilinx.spec: -------------------------------------------------------------------------------- 1 | *startfile: 2 | crti%O%s crtbegin%O%s 3 | -------------------------------------------------------------------------------- /zynq7k_demo/tests/xilinx/microzed/xsdk/reset.tcl: -------------------------------------------------------------------------------- 1 | # Connect to the device 2 | connect 3 | # List available targets for debug. 4 | targets 5 | # Select the APU target 6 | target 1 7 | # Reset the device 8 | rst 9 | # Begin running the flashed image 10 | con --------------------------------------------------------------------------------