| 
									
										
										
										
											2024-02-23 13:18:52 +07:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * The MIT License (MIT) | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Copyright (c) 2023 Ha Thach (tinyusb.org) | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Permission is hereby granted, free of charge, to any person obtaining a copy | 
					
						
							|  |  |  |  * of this software and associated documentation files (the "Software"), to deal | 
					
						
							|  |  |  |  * in the Software without restriction, including without limitation the rights | 
					
						
							|  |  |  |  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | 
					
						
							|  |  |  |  * copies of the Software, and to permit persons to whom the Software is | 
					
						
							|  |  |  |  * furnished to do so, subject to the following conditions: | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * The above copyright notice and this permission notice shall be included in | 
					
						
							|  |  |  |  * all copies or substantial portions of the Software. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 
					
						
							|  |  |  |  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 
					
						
							|  |  |  |  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | 
					
						
							|  |  |  |  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 
					
						
							|  |  |  |  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 
					
						
							|  |  |  |  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | 
					
						
							|  |  |  |  * THE SOFTWARE. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-27 09:11:09 +07:00
										 |  |  | /* metadata:
 | 
					
						
							|  |  |  |    name: Freedom K64F | 
					
						
							|  |  |  |    url: https://www.nxp.com/design/design-center/development-boards-and-designs/general-purpose-mcus/freedom-development-platform-for-kinetis-k64-k63-and-k24-mcus:FRDM-K64F
 | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-23 13:18:52 +07:00
										 |  |  | #ifndef BOARD_H
 | 
					
						
							|  |  |  | #define BOARD_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //--------------------------------------------------------------------+
 | 
					
						
							|  |  |  | // MACRO TYPEDEF CONSTANT ENUM DECLARATION
 | 
					
						
							|  |  |  | //--------------------------------------------------------------------+
 | 
					
						
							|  |  |  | // LED
 | 
					
						
							|  |  |  | #define LED_PORT              BOARD_LED_RED_GPIO
 | 
					
						
							|  |  |  | #define LED_PIN               BOARD_LED_RED_GPIO_PIN
 | 
					
						
							|  |  |  | #define LED_STATE_ON          0
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Button
 | 
					
						
							|  |  |  | #define BUTTON_PORT           BOARD_SW2_GPIO
 | 
					
						
							|  |  |  | #define BUTTON_PIN            BOARD_SW2_GPIO_PIN
 | 
					
						
							|  |  |  | #define BUTTON_STATE_ACTIVE   0
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // UART
 | 
					
						
							|  |  |  | #define UART_DEV              UART0
 | 
					
						
							|  |  |  | #define UART_CLOCK            CLOCK_GetFreq(UART0_CLK_SRC)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 |