repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/Core/Include/core_cm1.h | null | null | null | null | null | null | C | 2026-05-04T19:09:34.737076 | /**************************************************************************//**
* @file core_cm1.h
* @brief CMSIS Cortex-M1 Core Peripheral Access Layer Header File
* @version V1.1.0
* @date 04. April 2023
******************************************************************************/
/*
* Copyright (... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/Core/Include/core_cm0plus.h | null | null | null | null | null | null | C | 2026-05-04T19:09:34.738154 | /**************************************************************************//**
* @file core_cm0plus.h
* @brief CMSIS Cortex-M0+ Core Peripheral Access Layer Header File
* @version V5.1.0
* @date 04. April 2023
******************************************************************************/
/*
* Copyri... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/Core/Include/core_sc000.h | null | null | null | null | null | null | C | 2026-05-04T19:09:34.745981 | /**************************************************************************//**
* @file core_sc000.h
* @brief CMSIS SC000 Core Peripheral Access Layer Header File
* @version V5.1.0
* @date 04. April 2023
******************************************************************************/
/*
* Copyright (c)... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/Core/Include/mpu_armv7.h | null | null | null | null | null | null | C | 2026-05-04T19:09:34.819860 | /******************************************************************************
* @file mpu_armv7.h
* @brief CMSIS MPU API for Armv7-M MPU
* @version V5.1.2
* @date 25. May 2020
******************************************************************************/
/*
* Copyright (c) 2017-2020 Arm Limited. Al... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/Core/Include/mpu_armv8.h | null | null | null | null | null | null | C | 2026-05-04T19:09:34.820955 | /******************************************************************************
* @file mpu_armv8.h
* @brief CMSIS MPU API for Armv8-M and Armv8.1-M MPU
* @version V5.9.0
* @date 11. April 2023
******************************************************************************/
/*
* Copyright (c) 2017-2022... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Include/CV_Report.h | null | null | null | null | null | null | C | 2026-05-04T19:09:34.839332 | /*-----------------------------------------------------------------------------
* Name: CV_Report.h
* Purpose: Report statistics and layout header
*----------------------------------------------------------------------------
* Copyright (c) 2017 ARM Limited. All rights reserved.
*-----... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Include/CV_Framework.h | null | null | null | null | null | null | C | 2026-05-04T19:09:34.859404 | /*-----------------------------------------------------------------------------
* Name: CV_Framework.h
* Purpose: Framework header
*----------------------------------------------------------------------------
* Copyright (c) 2017 ARM Limited. All rights reserved.
*---------------------... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/Core/Include/pmu_armv8.h | null | null | null | null | null | null | C | 2026-05-04T19:09:34.860481 | /******************************************************************************
* @file pmu_armv8.h
* @brief CMSIS PMU API for Armv8.1-M PMU
* @version V1.0.1
* @date 15. April 2020
******************************************************************************/
/*
* Copyright (c) 2020 Arm Limited. All... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/Core/Include/pac_armv81.h | null | null | null | null | null | null | C | 2026-05-04T19:09:34.956167 | /******************************************************************************
* @file pac_armv81.h
* @brief CMSIS PAC key functions for Armv8.1-M PAC extension
* @version V1.0.0
* @date 23. March 2022
******************************************************************************/
/*
* Copyright (c) ... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Include/CV_Typedefs.h | null | null | null | null | null | null | C | 2026-05-04T19:09:34.997898 | /*-----------------------------------------------------------------------------
* Name: CV_Typedefs.h
* Purpose: Test framework filetypes and structures description
*----------------------------------------------------------------------------
* Copyright (c) 2017 - 2018 Arm Limited. All ... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Include/cmsis_cv.h | null | null | null | null | null | null | C | 2026-05-04T19:09:35.366150 | /*-----------------------------------------------------------------------------
* Name: cmsis_cv.h
* Purpose: cmsis_cv header
*----------------------------------------------------------------------------
* Copyright (c) 2017 - 2021 Arm Limited. All rights reserved.
*--------------------... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/App/Bootloader_Cortex-M/bootloader.c | null | null | null | null | null | null | C | 2026-05-04T19:09:35.387657 | /*
* Copyright (c) 2013-2016 ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICEN... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/App/Validation_Cortex-A/main.c | null | null | null | null | null | null | C | 2026-05-04T19:09:35.415252 | /*
* Copyright (C) 2022 ARM Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/l... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/mem_ARMCA5.h | null | null | null | null | null | null | C | 2026-05-04T19:09:35.416281 | /**************************************************************************//**
* @file mem_ARMCA5.h
* @brief Memory base and size definitions (used in scatter file)
* @version V1.1.0
* @date 15. May 2019
*
* @note
*
******************************************************************************/
/*
... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/App/Validation_Cortex-M/main.c | null | null | null | null | null | null | C | 2026-05-04T19:09:35.447514 | /*
* Copyright (C) 2022 ARM Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/l... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/mmu_ARMCA5.c | null | null | null | null | null | null | C | 2026-05-04T19:09:35.504386 | /**************************************************************************//**
* @file mmu_ARMCA5.c
* @brief MMU Configuration for ARM Cortex-A5 Device Series
* @version V1.2.0
* @date 15. May 2019
*
* @note
*
******************************************************************************/
/*
* Cop... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.c | null | null | null | null | null | null | C | 2026-05-04T19:09:35.521386 | /******************************************************************************
* @file startup_ARMCA5.c
* @brief CMSIS Device System Source File for Arm Cortex-A5 Device Series
* @version V1.0.1
* @date 10. January 2021
******************************************************************************/
/*... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/system_ARMCA5.c | null | null | null | null | null | null | C | 2026-05-04T19:09:35.527076 | /******************************************************************************
* @file system_ARMCA5.c
* @brief CMSIS Device System Source File for Arm Cortex-A5 Device Series
* @version V1.0.1
* @date 13. February 2019
*
* @note
*
*******************************************************************... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/system_ARMCA5.h | null | null | null | null | null | null | C | 2026-05-04T19:09:35.616797 | /******************************************************************************
* @file system_ARMCA5.h
* @brief CMSIS Device System Header File for Arm Cortex-A5 Device Series
* @version V1.00
* @date 10. January 2018
*
* @note
*
*********************************************************************... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA7/RTE/Device/ARMCA7/mem_ARMCA7.h | null | null | null | null | null | null | C | 2026-05-04T19:09:35.633806 | /**************************************************************************//**
* @file mem_ARMCA7.h
* @brief Memory base and size definitions (used in scatter file)
* @version V1.1.0
* @date 15. May 2019
*
* @note
*
******************************************************************************/
/*
... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA7/RTE/Device/ARMCA7/startup_ARMCA7.c | null | null | null | null | null | null | C | 2026-05-04T19:09:35.980159 | /******************************************************************************
* @file startup_ARMCA7.c
* @brief CMSIS Device System Source File for Arm Cortex-A7 Device Series
* @version V1.0.1
* @date 10. January 2021
******************************************************************************/
/*... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA7/RTE/Device/ARMCA7/mmu_ARMCA7.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.012733 | /**************************************************************************//**
* @file mmu_ARMCA7.c
* @brief MMU Configuration for Arm Cortex-A7 Device Series
* @version V1.2.0
* @date 15. May 2019
*
* @note
*
******************************************************************************/
/*
* Cop... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA7/RTE/Device/ARMCA7/system_ARMCA7.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.082078 | /******************************************************************************
* @file system_ARMCA7.c
* @brief CMSIS Device System Source File for Arm Cortex-A7 Device Series
* @version V1.0.1
* @date 13. February 2019
*
* @note
*
*******************************************************************... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA7/RTE/Device/ARMCA7/system_ARMCA7.h | null | null | null | null | null | null | C | 2026-05-04T19:09:36.091331 | /******************************************************************************
* @file system_ARMCA7.h
* @brief CMSIS Device System Header File for Arm Cortex-A7 Device Series
* @version V1.00
* @date 10. January 2018
*
* @note
*
*********************************************************************... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/mem_ARMCA9.h | null | null | null | null | null | null | C | 2026-05-04T19:09:36.091930 | /**************************************************************************//**
* @file mem_ARMCA9.h
* @brief Memory base and size definitions (used in scatter file)
* @version V1.1.0
* @date 15. May 2019
*
* @note
*
******************************************************************************/
/*
... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/mmu_ARMCA9.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.111700 | /**************************************************************************//**
* @file mmu_ARMCA9.c
* @brief MMU Configuration for Arm Cortex-A9 Device Series
* @version V1.2.0
* @date 15. May 2019
*
* @note
*
******************************************************************************/
/*
* Cop... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/startup_ARMCA9.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.190023 | /******************************************************************************
* @file startup_ARMCA9.c
* @brief CMSIS Device System Source File for Arm Cortex-A9 Device Series
* @version V1.0.1
* @date 10. January 2021
******************************************************************************/
/*... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/system_ARMCA9.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.194580 | /******************************************************************************
* @file system_ARMCA9.c
* @brief CMSIS Device System Source File for Arm Cortex-A9 Device Series
* @version V1.0.1
* @date 13. February 2019
*
* @note
*
*******************************************************************... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/system_ARMCA9.h | null | null | null | null | null | null | C | 2026-05-04T19:09:36.247971 | /******************************************************************************
* @file system_ARMCA9.h
* @brief CMSIS Device System Header File for Arm Cortex-A9 Device Series
* @version V1.00
* @date 10. January 2018
*
* @note
*
*********************************************************************... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CM0/RTE/Device/ARMCM0/startup_ARMCM0.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.277256 | /******************************************************************************
* @file startup_ARMCM0.c
* @brief CMSIS-Core(M) Device Startup File for a Cortex-M0 Device
* @version V2.0.3
* @date 31. March 2020
******************************************************************************/
/*
* Copyr... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CM0/RTE/Device/ARMCM0/system_ARMCM0.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.638568 | /**************************************************************************//**
* @file system_ARMCM0.c
* @brief CMSIS Device System Source File for
* ARMCM0 Device
* @version V1.0.0
* @date 09. July 2018
******************************************************************************/
/*
* C... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CM23/RTE/Device/ARMCM23/system_ARMCM23.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.665138 | /**************************************************************************//**
* @file system_ARMCM23.c
* @brief CMSIS Device System Source File for
* ARMCM23 Device
* @version V1.0.1
* @date 15. November 2019
******************************************************************************/
/... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CM0plus/RTE/Device/ARMCM0P/startup_ARMCM0plus.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.689671 | /******************************************************************************
* @file startup_ARMCM0plus.c
* @brief CMSIS-Core(M) Device Startup File for a Cortex-M0+ Device
* @version V2.0.3
* @date 31. March 2020
******************************************************************************/
/*
* ... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CM23/RTE/Device/ARMCM23/startup_ARMCM23.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.723339 | /******************************************************************************
* @file startup_ARMCM23.c
* @brief CMSIS-Core Device Startup File for a Cortex-M23 Device
* @version V2.1.0
* @date 16. December 2020
******************************************************************************/
/*
* Cop... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CM23NS/RTE/Device/ARMCM23_TZ/startup_ARMCM23.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.724097 | /******************************************************************************
* @file startup_ARMCM23.c
* @brief CMSIS-Core Device Startup File for a Cortex-M23 Device
* @version V2.1.0
* @date 16. December 2020
******************************************************************************/
/*
* Cop... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CM0plus/RTE/Device/ARMCM0P/system_ARMCM0plus.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.744324 | /**************************************************************************//**
* @file system_ARMCM0plus.c
* @brief CMSIS Device System Source File for
* ARMCM0plus Device
* @version V1.0.1
* @date 05. September 2022
**************************************************************************... |
ARM-software/CMSIS_5 | https://github.com/ARM-software/CMSIS_5 | null | null | null | null | 1,590 | null | null | apache-2.0 | null | null | null | null | null | null | null | CMSIS/CoreValidation/Layer/Target/CM23NS/RTE/Device/ARMCM23_TZ/system_ARMCM23.c | null | null | null | null | null | null | C | 2026-05-04T19:09:36.802901 | /**************************************************************************//**
* @file system_ARMCM23.c
* @brief CMSIS Device System Source File for
* ARMCM23 Device
* @version V1.0.1
* @date 15. November 2019
******************************************************************************/
/... |
tmikolov/word2vec | https://github.com/tmikolov/word2vec | null | null | null | null | 1,585 | null | null | apache-2.0 | null | null | null | null | null | null | null | word-analogy.c | null | null | null | null | null | null | C | 2026-05-04T19:09:44.070651 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
tmikolov/word2vec | https://github.com/tmikolov/word2vec | null | null | null | null | 1,585 | null | null | apache-2.0 | null | null | null | null | null | null | null | word2phrase.c | null | null | null | null | null | null | C | 2026-05-04T19:09:44.071656 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
tmikolov/word2vec | https://github.com/tmikolov/word2vec | null | null | null | null | 1,585 | null | null | apache-2.0 | null | null | null | null | null | null | null | word2vec.c | null | null | null | null | null | null | C | 2026-05-04T19:09:44.072994 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
tmikolov/word2vec | https://github.com/tmikolov/word2vec | null | null | null | null | 1,585 | null | null | apache-2.0 | null | null | null | null | null | null | null | compute-accuracy.c | null | null | null | null | null | null | C | 2026-05-04T19:09:44.074078 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
tmikolov/word2vec | https://github.com/tmikolov/word2vec | null | null | null | null | 1,585 | null | null | apache-2.0 | null | null | null | null | null | null | null | distance.c | null | null | null | null | null | null | C | 2026-05-04T19:09:44.074662 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_pwm.c | null | null | null | null | null | null | C | 2026-05-04T19:09:46.552879 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_pwm.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_flash.c | null | null | null | null | null | null | C | 2026-05-04T19:09:46.572686 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_flash.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* ... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/RVMSIS/core_riscv.c | null | null | null | null | null | null | C | 2026-05-04T19:09:46.582148 | /********************************** (C) COPYRIGHT *******************************
* File Name : core_riscv.c
* Author : WCH
* Version : V1.1.0
* Date : 2021/06/06
* Description : RISC-V Core Peripheral Access Layer Source File
***************************... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_spi0.c | null | null | null | null | null | null | C | 2026-05-04T19:09:46.589699 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_SPI0.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* C... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_adc.c | null | null | null | null | null | null | C | 2026-05-04T19:09:46.590524 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_adc.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_clk.c | null | null | null | null | null | null | C | 2026-05-04T19:09:46.598813 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_clk.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/RVMSIS/core_riscv.h | null | null | null | null | null | null | C | 2026-05-04T19:09:46.600427 | /********************************** (C) COPYRIGHT *******************************
* File Name : core_riscv.h
* Author : WCH
* Version : V1.0.1
* Date : 2021/10/28
* Description : CH583 RISC-V Core Peripheral Access Layer Header File
*********************... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_i2c.c | null | null | null | null | null | null | C | 2026-05-04T19:09:46.601638 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_i2c.c
* Author : WCH
* Version : V1.0
* Date : 2021/03/15
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_pwr.c | null | null | null | null | null | null | C | 2026-05-04T19:09:46.609526 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_pwr.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_gpio.c | null | null | null | null | null | null | C | 2026-05-04T19:09:46.610216 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_gpio.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* C... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_timer0.c | null | null | null | null | null | null | C | 2026-05-04T19:09:47.659075 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_timer0.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
*... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_spi1.c | null | null | null | null | null | null | C | 2026-05-04T19:09:47.663255 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_SPI1.c
* Author : WCH
* Version : V1.0
* Date : 2018/12/15
* Description
*********************************************************************************
* C... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_uart1.c | null | null | null | null | null | null | C | 2026-05-04T19:09:47.863777 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_uart1.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* ... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_timer1.c | null | null | null | null | null | null | C | 2026-05-04T19:09:47.864345 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_timer1.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
*... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_uart2.c | null | null | null | null | null | null | C | 2026-05-04T19:09:47.877273 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_uart2.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* ... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_timer3.c | null | null | null | null | null | null | C | 2026-05-04T19:09:48.506331 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_timer3.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
*... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_timer2.c | null | null | null | null | null | null | C | 2026-05-04T19:09:48.513329 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_timer2.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
*... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_uart3.c | null | null | null | null | null | null | C | 2026-05-04T19:09:48.519163 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_uart3.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* ... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_uart0.c | null | null | null | null | null | null | C | 2026-05-04T19:09:48.520253 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_uart0.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* ... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_sys.c | null | null | null | null | null | null | C | 2026-05-04T19:09:48.708752 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_SYS.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_usb2dev.c | null | null | null | null | null | null | C | 2026-05-04T19:09:49.558577 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_usb2dev.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_usb2hostBase.c | null | null | null | null | null | null | C | 2026-05-04T19:09:49.563246 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_usbhost.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_common.h | null | null | null | null | null | null | C | 2026-05-04T19:09:49.941055 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_common.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
*... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_adc.h | null | null | null | null | null | null | C | 2026-05-04T19:09:49.947684 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_adc.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_gpio.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.165130 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_gpio.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* C... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_pwm.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.277116 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_pwm.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_clk.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.282827 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_clk.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_flash.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.315834 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_flash.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* ... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_i2c.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.329173 |
#ifndef __CH58x_I2C_H__
#define __CH58x_I2C_H__
#ifdef __cplusplus
extern "C" {
#endif
/* I2C_transfer_direction */
#define I2C_Direction_Transmitter ((uint8_t)0x00)
#define I2C_Direction_Receiver ((uint8_t)0x01)
/* I2C ADD0 mask */
#define OADDR1_ADD0_Set ((uint16_t)0x0001)
#d... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_pwr.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.579682 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_pwr.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_spi.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.609102 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_SPI.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_sys.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.841046 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_SYS.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* Co... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_timer.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.936771 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_timer.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* ... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_uart.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.949012 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_uart.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
* C... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/CH58x_usbhost.h | null | null | null | null | null | null | C | 2026-05-04T19:09:50.963551 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH57x_usbhost.h
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/inc/ISP583.h | null | null | null | null | null | null | C | 2026-05-04T19:09:51.007487 | /* CH583 Flash-ROM & Data-Flash */
/* Website: http://wch.cn */
/* Email: tech@wch.cn */
/* Author: W.ch 2020.06 */
/* V1.0 FlashROM library for USER/BOOT */
/* for the target in USER code area on the chip divided into USER code area and BOOT area */
/* 用于具有用户代码区和引导区的芯片、操作目标为用户代码区的情况,
... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/animation.c | null | null | null | null | null | null | C | 2026-05-04T19:09:51.238646 | #include <stdlib.h>
#include "xbm.h"
#include "leddrv.h"
#include "bmlist.h"
#include "debug.h"
#define ANI_ANIMATION_STEPS (5) // steps
#define ANI_FIXED_STEPS (LED_COLS) // steps
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
#define ALIGN(x, range) (((x % (rang... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/animation.h | null | null | null | null | null | null | C | 2026-05-04T19:09:51.268266 | #ifndef __ANIMATION_H__
#define __ANIMATION_H__
#include <stdint.h>
#include "xbm.h"
int ani_xbm_next_frame(xbm_t *xbm, uint16_t *fb, int col, int row);
int ani_xbm_scroll_up(xbm_t *xbm, int vh, uint16_t *fb, int col, int row);
int ani_xbm_scrollup_pad( xbm_t *xbm, int vh, int pt, int pb,
uint16_t *fb, int col, ... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ble/common.h | null | null | null | null | null | null | C | 2026-05-04T19:09:51.504302 | /**
* This file contain high-level data structures for differents BLE chip.
*
*/
#ifndef __BLE_H__
#define __BLE_H__
#include <stdint.h>
#include <stddef.h>
typedef struct {
uint8_t *bytes;
int size;
} byte_t;
typedef struct {
byte_t val; // Values
uint8_t props; // Properties //TODO: add e... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ble/profile.h | null | null | null | null | null | null | C | 2026-05-04T19:09:51.581297 | #ifndef __BLE_UART_SERVICE_H__
#define __BLE_UART_SERVICE_H__
int legacy_registerService();
int devInfo_registerService();
int batt_registerService();
int ng_registerService();
bStatus_t ng_notify(uint8_t *pValue, uint8_t len);
#endif /* __BLE_UART_SERVICE_H__ */
|
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ble/peripheral.c | null | null | null | null | null | null | C | 2026-05-04T19:09:51.582671 | #include "CH58xBLE_LIB.h"
#include "setup.h"
#include "../config.h"
#define ADV_UUID (0xFEE0)
static uint8 taskid = INVALID_TASK_ID;
typedef struct
{
uint16 connHandle; // Connection handle of current connection
uint16 connInterval;
uint16 connSlaveLatency;
uint16 connTimeout;
} peripheralConnIt... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ble/profile/batt.c | null | null | null | null | null | null | C | 2026-05-04T19:09:51.628898 | #include "utils.h"
#include "../../power.h"
static const uint16_t ServiceUUID = 0x180F;
static const gattAttrType_t service = {2, (uint8_t *)&ServiceUUID};
static const uint16_t battLv_CharUUID = 0x2A19;
static uint8 battLv_CharProps = GATT_PROP_READ;
static uint8 battLv_Val[1];
static gattAttribute_t at... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ble/profile/devinfo.c | null | null | null | null | null | null | C | 2026-05-04T19:09:51.666321 | #include "../common.h"
#include "utils.h"
// TODO: Automatic assign these on build
static const uint8_t systemId_val[] = {0, 0, 0, 0, 0, 0, 0, 0};
static const uint16_t systemId_UUID = SYSTEM_ID_UUID;
#ifdef USBC_VERSION
#define USBC_VER_PREFIX "(C) "
#define USBC_VER_SUFIX "-C"
#else
#define USBC_VER... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ble/profile/ng.c | null | null | null | null | null | null | C | 2026-05-04T19:09:51.879268 | #include "utils.h"
#include "CH583SFR.h"
#include "../../power.h"
#include "../../ngctrl.h"
#include "../../debug.h"
static const uint16_t ServiceUUID = 0xF055;
static const gattAttrType_t service = {2, (uint8_t *)&ServiceUUID};
static const uint16_t TxCharUUID = 0xF056;
static uint8_t TxCharProps = GAT... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ble/profile/legacy.c | null | null | null | null | null | null | C | 2026-05-04T19:09:51.908671 | #include "utils.h"
#include "../../legacyctrl.h"
static const uint16_t ServiceUUID = 0xFEE0;
static const gattAttrType_t service = {2, (uint8_t *)&ServiceUUID};
static const uint16_t RxCharUUID = 0xFEE1;
static uint8 RxCharProps = GATT_PROP_WRITE;
static uint8 RxCharVal[16];
static gattAttribute_t attr_t... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ble/profile/utils.h | null | null | null | null | null | null | C | 2026-05-04T19:09:52.154080 | #ifndef __UTILS_H__
#define __UTILS_H__
#include "CH58xBLE_LIB.h"
#define ATTR_DECLAR(uuid, uuid_size, permissions, val) \
{ \
{(uuid_size), (uint8_t *)(uuid)}, \
(permissions), \
0, \
(uint8_t *)(val) \
}
// Characteristic Declaration
#define CHAR_DECLAR(properties) \
ATTR_DECLAR(charac... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ble/setup.c | null | null | null | null | null | null | C | 2026-05-04T19:09:52.254587 | #include <memory.h>
#include <stdlib.h>
#include "setup.h"
#include "CH58xBLE_LIB.h"
#include "CH58x_common.h"
#ifndef BLE_BUFF_LEN
// MTU = 64 but clients should request new MTU, otherwise default will be 23
#define BLE_BUFF_LEN (64 + 4)
#endif
#ifndef BLE_TX_NUM_EVENT
#define BLE_TX_NUM_EVENT ... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_usbhostBase.c | null | null | null | null | null | null | C | 2026-05-04T19:09:53.635804 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_usbhost.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_usbhostClass.c | null | null | null | null | null | null | C | 2026-05-04T19:09:53.657264 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_usbhost.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
... |
fossasia/badgemagic-firmware | https://github.com/fossasia/badgemagic-firmware | null | null | null | null | 1,580 | null | null | apache-2.0 | null | null | null | null | null | null | null | CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_usb2hostClass.c | null | null | null | null | null | null | C | 2026-05-04T19:09:53.660709 | /********************************** (C) COPYRIGHT *******************************
* File Name : CH58x_usbhost.c
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
* Description
*********************************************************************************
... |
fossasia/pslab-firmware | https://github.com/fossasia/pslab-firmware | null | null | null | null | 1,574 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/commands.h | null | null | null | null | null | null | C | 2026-05-04T19:09:58.636880 | /**
* @file commands.h
* @brief Command handling.
*
*/
#ifndef COMMANDS_H
#define COMMANDS_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Number of commands in each command group.
*
* This is used to set the dimensions of the command table, and to sanitize
* received commands.
*/
#define NUM_PRIMARY... |
fossasia/pslab-firmware | https://github.com/fossasia/pslab-firmware | null | null | null | null | 1,574 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/helpers/buffer.c | null | null | null | null | null | null | C | 2026-05-04T19:09:58.640060 | #include <string.h>
#include "../bus/uart/uart.h"
#include "../commands.h"
#include "../registers/system/pin_manager.h"
#include "buffer.h"
// Space in memory to store data.
uint16_t volatile __attribute__((section(".adc_buffer"), far)) BUFFER[BUFFER_SIZE];
response_t BUFFER_Retrieve(void) {
uint16_t volatil... |
fossasia/pslab-firmware | https://github.com/fossasia/pslab-firmware | null | null | null | null | 1,574 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/commands.c | null | null | null | null | null | null | C | 2026-05-04T19:09:58.649130 | #include "commands.h"
#include "sdcard/sdcard.h"
#include "bus/i2c/i2c.h"
#include "bus/uart/uart.h"
#include "bus/spi/spi.h"
#include "helpers/buffer.h"
#include "helpers/debug.h"
#include "helpers/device.h"
#include "helpers/interval.h"
#include "helpers/light.h"
#include "helpers/rtc.h"
#include "instruments/logican... |
fossasia/pslab-firmware | https://github.com/fossasia/pslab-firmware | null | null | null | null | 1,574 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bus/i2c/i2c.h | null | null | null | null | null | null | C | 2026-05-04T19:09:58.667317 | #ifndef _I2C_H
#define _I2C_H
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <xc.h>
#include "../../commands.h"
#define SLAVE_I2C_GENERIC_RETRY_MAX 100
#define SLAVE_I2C_GENERIC_DEVICE_TIMEOUT 50
#define I2C_ENABLE_INTERRUPTS true
#define I2C_DISABLE_INTERRU... |
fossasia/pslab-firmware | https://github.com/fossasia/pslab-firmware | null | null | null | null | 1,574 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bus/spi/spi.c | null | null | null | null | null | null | C | 2026-05-04T19:09:58.675168 | #include <stdint.h>
#include <stdlib.h>
#include <xc.h>
#include "../../commands.h"
#include "../uart/uart.h"
#include "spi.h"
/*********/
/* Types */
/*********/
/// @brief Aggregate of values to write to mux control pins.
struct MuxInput
{
uint16_t RA10; ///< Mux pin S0.
uint16_t RA7; ///< Mux pin S1.
... |
fossasia/pslab-firmware | https://github.com/fossasia/pslab-firmware | null | null | null | null | 1,574 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bus/uart/uart.c | null | null | null | null | null | null | C | 2026-05-04T19:09:58.763236 | #include <xc.h>
#include "uart.h"
#include "../../helpers/delay.h"
#include "../../commands.h"
#include "../../registers/system/watchdog.h"
/**********/
/* Macros */
/**********/
#define UART_READ_TIMEOUT (FCY / 10UL) // 100 ms
/**************/
/* Interrupts */
/**************/
/**
* @brief Move incoming data on U... |
fossasia/pslab-firmware | https://github.com/fossasia/pslab-firmware | null | null | null | null | 1,574 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/boot/boot_config.h | null | null | null | null | null | null | C | 2026-05-04T19:09:58.783297 | #ifndef BOOT_CONFIG_H
#define BOOT_CONFIG_H
#define BOOT_CONFIG_PROGRAMMABLE_ADDRESS_LOW 0x1800
#define BOOT_CONFIG_PROGRAMMABLE_ADDRESS_HIGH 0x2A7FE
#define BOOT_CONFIG_VERIFICATION_APPLICATION_HEADER_SIZE 0
#define BOOT_CONFIG_APPLICATION_IMAGE_APPLICATION_HEADER_ADDRESS (BOOT_CONFIG_PROGRAMMABLE_ADDRESS_LOW)
#d... |
fossasia/pslab-firmware | https://github.com/fossasia/pslab-firmware | null | null | null | null | 1,574 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bus/uart/uart.h | null | null | null | null | null | null | C | 2026-05-04T19:09:58.902372 | #ifndef _UART_H
#define _UART_H
#include <stdbool.h>
#include <stdint.h>
#include "../../commands.h"
/**
* @brief Identifier for UART1 or UART2.
*/
typedef enum
{
U1SELECT,
U2SELECT,
} EUxSelect;
/**
* @brief Initialization function that sets up the UARTx driver for use.
*
* This function initializes the se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.