-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from YuzukiHD/dev
v0.4.0.2
- Loading branch information
Showing
61 changed files
with
1,812 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ set(APP_COMMON_SOURCE | |
${CMAKE_CURRENT_SOURCE_DIR}/head.c | ||
) | ||
|
||
add_subdirectory(hello_world) | ||
add_subdirectory(app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
board/avaota-cam/hello_world/CMakeLists.txt → board/avaota-f1/app/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# SPDX-License-Identifier: GPL-2.0+ | ||
|
||
add_syterkit_app(helloworld | ||
add_syterkit_app(app | ||
main.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
Lst/ | ||
Obj/ | ||
cdkws.mk | ||
avaota_cam.modify.bat | ||
avaota_cam.mk | ||
avaota_f1.modify.bat | ||
avaota_f1.mk | ||
.cache | ||
.cdk |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
SET PATH=%Systemroot%\System32;%PATH% | ||
forfiles.exe -P "%1" -M %2 -C "cmd /c echo %1/%2 is modified at: @fdate @ftime" | findstr modified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
board/avaota-cam/cdk/avaota_cam.cdkws → board/avaota-f1/cdk/avaota_f1.cdkws
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CDK_Workspace Name="Avaota CAM" Database="LanguageSever" DoubleClick="Yes"> | ||
<CDK_Workspace Name="Avaota F1" Database="LanguageSever" DoubleClick="Yes"> | ||
<DefaultPackPath>$(CDKWS)\__workspace_pack__</DefaultPackPath> | ||
<Project Name="avaota_cam" Path="avaota_cam.cdkproj" RootPath="" Active="Yes"/> | ||
<Project Name="avaota_f1" Path="avaota_f1.cdkproj" RootPath="" Active="Yes"/> | ||
<BuildMatrix> | ||
<WorkspaceConfiguration Name="Debug" Selected="yes"> | ||
<Environment/> | ||
<Project Name="avaota_cam" ConfigName="BuildSet"/> | ||
<Project Name="avaota_f1" ConfigName="BuildSet"/> | ||
</WorkspaceConfiguration> | ||
</BuildMatrix> | ||
</CDK_Workspace> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* SPDX-License-Identifier: GPL-2.0+ */ | ||
|
||
#ifndef __BYTEORDER_H__ | ||
#define __BYTEORDER_H__ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include <types.h> | ||
|
||
static inline u16_t __swab16(u16_t x) { | ||
return ((x << 8) | (x >> 8)); | ||
} | ||
|
||
static inline u32_t __swab32(u32_t x) { | ||
return ((x << 24) | (x >> 24) | | ||
((x & (u32_t) 0x0000ff00UL) << 8) | | ||
((x & (u32_t) 0x00ff0000UL) >> 8)); | ||
} | ||
|
||
static inline u64_t __swab64(u64_t x) { | ||
return ((x << 56) | (x >> 56) | | ||
((x & (u64_t) 0x000000000000ff00ULL) << 40) | | ||
((x & (u64_t) 0x0000000000ff0000ULL) << 24) | | ||
((x & (u64_t) 0x00000000ff000000ULL) << 8) | | ||
((x & (u64_t) 0x000000ff00000000ULL) >> 8) | | ||
((x & (u64_t) 0x0000ff0000000000ULL) >> 24) | | ||
((x & (u64_t) 0x00ff000000000000ULL) >> 40)); | ||
} | ||
|
||
/* | ||
* swap bytes bizarrely. | ||
* swahw32 - swap 16-bit half-words in a 32-bit word | ||
*/ | ||
static inline u32_t __swahw32(u32_t x) { | ||
return (((x & (u32_t) 0x0000ffffUL) << 16) | ((x & (u32_t) 0xffff0000UL) >> 16)); | ||
} | ||
|
||
/* | ||
* swap bytes bizarrely. | ||
* swahb32 - swap 8-bit halves of each 16-bit half-word in a 32-bit word | ||
*/ | ||
static inline u32_t __swahb32(u32_t x) { | ||
return (((x & (u32_t) 0x00ff00ffUL) << 8) | ((x & (u32_t) 0xff00ff00UL) >> 8)); | ||
} | ||
|
||
#if (BYTE_ORDER == BIG_ENDIAN) | ||
#define cpu_to_le64(x) (__swab64((u64_t) (x))) | ||
#define le64_to_cpu(x) (__swab64((u64_t) (x))) | ||
#define cpu_to_le32(x) (__swab32((u32_t) (x))) | ||
#define le32_to_cpu(x) (__swab32((u32_t) (x))) | ||
#define cpu_to_le16(x) (__swab16((u16_t) (x))) | ||
#define le16_to_cpu(x) (__swab16((u16_t) (x))) | ||
#define cpu_to_be64(x) ((u64_t) (x)) | ||
#define be64_to_cpu(x) ((u64_t) (x)) | ||
#define cpu_to_be32(x) ((u32_t) (x)) | ||
#define be32_to_cpu(x) ((u32_t) (x)) | ||
#define cpu_to_be16(x) ((u16_t) (x)) | ||
#define be16_to_cpu(x) ((u16_t) (x)) | ||
#else | ||
#define cpu_to_le64(x) ((u64_t) (x)) | ||
#define le64_to_cpu(x) ((u64_t) (x)) | ||
#define cpu_to_le32(x) ((u32_t) (x)) | ||
#define le32_to_cpu(x) ((u32_t) (x)) | ||
#define cpu_to_le16(x) ((u16_t) (x)) | ||
#define le16_to_cpu(x) ((u16_t) (x)) | ||
#define cpu_to_be64(x) (__swab64((u64_t) (x))) | ||
#define be64_to_cpu(x) (__swab64((u64_t) (x))) | ||
#define cpu_to_be32(x) (__swab32((u32_t) (x))) | ||
#define be32_to_cpu(x) (__swab32((u32_t) (x))) | ||
#define cpu_to_be16(x) (__swab16((u16_t) (x))) | ||
#define be16_to_cpu(x) (__swab16((u16_t) (x))) | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __BYTEORDER_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* SPDX-License-Identifier: GPL-2.0+ */ | ||
|
||
#ifndef __ENDIAN_H__ | ||
#define __ENDIAN_H__ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define LITTLE_ENDIAN (0x1234) | ||
#define BIG_ENDIAN (0x4321) | ||
|
||
#if (!defined(__LITTLE_ENDIAN) && !defined(__BIG_ENDIAN)) | ||
#define __LITTLE_ENDIAN | ||
#endif | ||
|
||
#if defined(__LITTLE_ENDIAN) | ||
#define BYTE_ORDER LITTLE_ENDIAN | ||
#elif defined(__BIG_ENDIAN) | ||
#define BYTE_ORDER BIG_ENDIAN | ||
#else | ||
#error "Unknown byte order!" | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __ENDIAN_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.