Skip to content

Commit 4ec7617

Browse files
committed
Initial import
0 parents  commit 4ec7617

21 files changed

+1610
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.prc

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
TOOLCHAIN ?= /home/vaskas/Code/palmdev_V3/buildtools/toolchain/bin
2+
SDK ?= /home/vaskas/Code/palmdev_V3/buildtools/palm-os-sdk-master/sdk-5r3/include
3+
PILRC = /home/vaskas/Code/palmdev_V3/buildtools/pilrc3_3_unofficial/bin/pilrc
4+
CC = $(TOOLCHAIN)/m68k-none-elf-gcc
5+
LD = $(TOOLCHAIN)/m68k-none-elf-gcc
6+
OBJCOPY = $(TOOLCHAIN)/m68k-none-elf-objcopy
7+
COMMON = -Wno-multichar -funsafe-math-optimizations -Os -m68000 -mno-align-int -mpcrel -fpic -fshort-enums -mshort
8+
WARN = -Wsign-compare -Wextra -Wall -Werror -Wno-unused-parameter -Wno-old-style-declaration -Wno-unused-function -Wno-unused-variable -Wno-error=cpp -Wno-error=switch
9+
LKR = linker.lkr
10+
CCFLAGS = $(LTO) $(WARN) $(COMMON) -I. -ffunction-sections -fdata-sections
11+
LDFLAGS = $(LTO) $(WARN) $(COMMON) -Wl,--gc-sections -Wl,-T $(LKR)
12+
SRCS = Src/PIMSync.c Src/Main.c
13+
RCP = Rsc/PIMSync_Rsc.rcp
14+
RSC = Src/
15+
OBJS = $(patsubst %.S,%.o,$(patsubst %.c,%.o,$(SRCS)))
16+
TARGET = PIMSync
17+
CREATOR = LXMX
18+
TYPE = appl
19+
20+
#add PalmOS SDK
21+
INCS += -isystem$(SDK)
22+
INCS += -isystem$(SDK)/Core
23+
INCS += -isystem$(SDK)/Core/Hardware
24+
INCS += -isystem$(SDK)/Core/System
25+
INCS += -isystem$(SDK)/Core/UI
26+
INCS += -isystem$(SDK)/Dynamic
27+
INCS += -isystem$(SDK)/Libraries
28+
INCS += -isystem$(SDK)/Libraries/PalmOSGlue
29+
INCS += -isystem$(SDK)/Extensions
30+
INCS += -isystem$(SDK)/Extensions/ExpansionMgr
31+
32+
33+
34+
$(TARGET).prc: code0001.bin
35+
$(PILRC) -ro -o $(TARGET).prc -creator $(CREATOR) -type $(TYPE) -name $(TARGET) -I $(RSC) $(RCP) && rm code0001.bin
36+
37+
%.bin: %.elf
38+
$(OBJCOPY) -O binary $< $@ -j.vec -j.text -j.rodata
39+
40+
%.elf: $(OBJS)
41+
$(LD) -o $@ $(LDFLAGS) $^
42+
43+
%.o : %.c Makefile
44+
$(CC) $(CCFLAGS) $(INCS) -c $< -o $@
45+
46+
clean:
47+
rm -rf $(OBJS) $(NAME).elf
48+
49+
.PHONY: clean

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# PIMSync
2+
3+
This simple Palm OS app allows you to export the built-in Memo Pad, Date Book, Address and To Do List databases to the memory card at the `/PIMSync` location - or import them back, replacing the RAM databases.
4+
5+
## Workflow
6+
7+
The above makes sense if you are using J-Pilot on your desktop, and don't want to use a cable to sync your device.
8+
9+
J-Pilot operates on the very same `MemoDB.pdb`, `ToDoDB.pdb`, `DatebookDB.pdb`, `AddressDB.pdb` files you have on your Palm. Which means you can edit the records, then save them back to the device.
10+
11+
## Thanks
12+
13+
* Alexander Pruss for [MyInstall](https://www.pruss.mobi/dl/) with its VFS code.
14+
* Otávio P. ([Tavisco](https://github.com/Tavisco)) for the UI code example in his Palm Portfolio app.
15+
* [FileCaddy](http://filecaddy.sourceforge.net/) authors for more VFS code.

Rsc/PIMSync_Rsc.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* pilrc generated file. Do not edit!*/
2+
#define AboutVersionLabel 1022
3+
#define AboutDescriptionLabel 1021
4+
#define AboutOKButton 1020
5+
#define AboutForm 1019
6+
#define DEBUG_ALERT 1018
7+
#define DELETE_ALERT 1017
8+
#define MainHelpButton 1016
9+
#define MainFromSDSubtitleLabel 1015
10+
#define MainFromSDTitleLabel 1014
11+
#define MainFromSDButton 1013
12+
#define MainToSDSubtitleLabel 1012
13+
#define MainToSDTitleLabel 1011
14+
#define MainToSDButton 1010
15+
#define MainSubtitleLabel 1009
16+
#define MainTitleLabel 1008
17+
#define MainForm 1007
18+
#define RomIncompatibleAlert 1006
19+
#define OptionsAbout 1005
20+
#define MainMenuBar 1004
21+
#define ToSDBitmapFamily 1003
22+
#define FromSDBitmapFamily 1002
23+
#define PIMSyncBitmapFamily 1001

Rsc/PIMSync_Rsc.rcp

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
// PIMSync_Rsc.rcp
2+
//
3+
// PilRC-format resources for PIMSync
4+
//
5+
// Generated by the CodeWarrior for Palm OS V9 application wizard
6+
7+
DATA "code" ID 1 "code0001.bin"
8+
GENERATEHEADER "Rsc/PIMSync_Rsc.h"
9+
10+
APPLICATIONICONNAME ID 1000 "PIMSync"
11+
VERSION ID 1 "0.1"
12+
13+
RESETAUTOID 1000
14+
15+
BITMAPFAMILY ID PIMSyncBitmapFamily "Rsc/about-2.bmp" "" "" "Rsc/about-8.bmp"
16+
BITMAPFAMILY ID FromSDBitmapFamily "Rsc/fromsd-1.bmp" "" "" "Rsc/fromsd-8.bmp" TRANSPARENT 0 0 0 TRANSPARENTINDEX 210
17+
BITMAPFAMILY ID ToSDBitmapFamily "Rsc/tosd-1.bmp" "" "" "Rsc/tosd-8.bmp" TRANSPARENT 0 0 0 TRANSPARENTINDEX 210
18+
19+
ICONFAMILYEX
20+
BEGIN
21+
BITMAP "Rsc/icon-lg-1.bmp" BPP 1
22+
BITMAP "Rsc/icon-lg-8.bmp" BPP 8 TRANSPARENTINDEX 210 COMPRESS
23+
END
24+
25+
SMALLICONFAMILYEX
26+
BEGIN
27+
BITMAP "Rsc/icon-sm-1.bmp" BPP 1
28+
BITMAP "Rsc/icon-sm-8.bmp" BPP 8 TRANSPARENTINDEX 210 COMPRESS
29+
END
30+
31+
MENU ID MainMenuBar
32+
BEGIN
33+
PULLDOWN "Options"
34+
BEGIN
35+
MENUITEM "About" ID OptionsAbout
36+
END
37+
38+
END
39+
40+
ALERT ID RomIncompatibleAlert
41+
DEFAULTBUTTON 0
42+
ERROR
43+
BEGIN
44+
TITLE "System Incompatible"
45+
MESSAGE "System Version 4.0 or greater is required to run this application."
46+
BUTTONS "OK"
47+
END
48+
49+
FORM ID MainForm AT (0 0 160 160)
50+
NOSAVEBEHIND NOFRAME
51+
MENUID MainMenuBar
52+
BEGIN
53+
TITLE "PIMSync"
54+
LABEL "Sync your PIM files" ID MainTitleLabel AT (18 18) FONT 2
55+
LABEL "Choose sync direction" ID MainSubtitleLabel AT (25 34)
56+
57+
BUTTON "" ID MainToSDButton AT (6 57 26 26) GRAPHICAL BITMAPID ToSDBitmapFamily SELECTEDBITMAPID ToSDBitmapFamily
58+
LABEL "To SD" ID MainToSDTitleLabel AT (38 56) FONT 1
59+
LABEL "Overwrite files on SD" ID MainToSDSubtitleLabel AT (38 67)
60+
61+
BUTTON "" ID MainFromSDButton AT (10 97 22 22) GRAPHICAL BITMAPID FromSDBitmapFamily SELECTEDBITMAPID FromSDBitmapFamily
62+
LABEL "From SD" ID MainFromSDTitleLabel AT (38 95) FONT 1
63+
LABEL "Overwrite files in RAM" ID MainFromSDSubtitleLabel AT (38 105)
64+
65+
BUTTON "Help" ID MainHelpButton AT (2 146 AUTO AUTO)
66+
END
67+
68+
ALERT ID DELETE_ALERT
69+
WARNING
70+
BEGIN
71+
TITLE "Confirm"
72+
MESSAGE "This will overwrite all the memos, todos, addresses and datebook records! Proceed?"
73+
BUTTONS "Yes" "No"
74+
END
75+
76+
ALERT ID DEBUG_ALERT
77+
CONFIRMATION
78+
BEGIN
79+
TITLE "Debug"
80+
MESSAGE "^1"
81+
BUTTONS "Close"
82+
END
83+
84+
FORM ID AboutForm AT (2 2 156 156)
85+
SAVEBEHIND FRAME MODAL
86+
DEFAULTBTNID AboutOKButton
87+
BEGIN
88+
TITLE "Help"
89+
BUTTON "OK" ID AboutOKButton AT (55 142 40 12)
90+
FORMBITMAP AT (50 86) BITMAP PIMSyncBitmapFamily
91+
LABEL "PIMSync allows you to use the SD\rcard to transfer the memo, address\rbook, todo and datebook databases\rfrom your Palm OS device and back.\rYou can use this workflow with\rprograms like J-Pilot on the PC." ID AboutDescriptionLabel AT (5 16)
92+
LABEL "V: 0.1" ID AboutVersionLabel AT (132 145)
93+
END
94+

Rsc/about-2.bmp

478 Bytes
Binary file not shown.

Rsc/about-8.bmp

7.97 KB
Binary file not shown.

Rsc/fromsd-1.bmp

718 Bytes
Binary file not shown.

Rsc/fromsd-8.bmp

1.39 KB
Binary file not shown.

0 commit comments

Comments
 (0)