qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

board.h (964B)


      1 /*
      2     ChibiOS - Copyright (C) 2020 Codetector <codetector@codetector.cn>
      3 
      4     Licensed under the Apache License, Version 2.0 (the "License");
      5     you may not use this file except in compliance with the License.
      6     You may obtain a copy of the License at
      7 
      8         http://www.apache.org/licenses/LICENSE-2.0
      9 
     10     Unless required by applicable law or agreed to in writing, software
     11     distributed under the License is distributed on an "AS IS" BASIS,
     12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13     See the License for the specific language governing permissions and
     14     limitations under the License.
     15 */
     16 
     17 #pragma once
     18 /*
     19  * Setup for Anne Pro 2 board.
     20  */
     21 
     22 /*
     23  * Board identifier.
     24  */
     25 #define BOARD_NAME "Anne Pro 2"
     26 
     27 #define HT32F52342
     28 
     29 #define FLASH_SIZE (0x10000 - 0x4000)  // 64kB - 16kB
     30 
     31 #if !defined(_FROM_ASM_)
     32 #ifdef __cplusplus
     33 extern "C" {
     34 #endif
     35 void boardInit(void);
     36 #ifdef __cplusplus
     37 }
     38 #endif
     39 #endif /* _FROM_ASM_ */